<html>
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on 12:18:57 Wednesday, 29 June 2011 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.3638fb19-7976-4a08-85e5-ee69e19531a3 {
MARGIN: 0cm 0cm 0pt
}
LI.3638fb19-7976-4a08-85e5-ee69e19531a3 {
MARGIN: 0cm 0cm 0pt
}
DIV.3638fb19-7976-4a08-85e5-ee69e19531a3 {
MARGIN: 0cm 0cm 0pt
}
TABLE.3638fb19-7976-4a08-85e5-ee69e19531a3Table {
MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
page: Section1
}
</style>
<meta name="GENERATOR" content="MSHTML 8.00.6001.19019">
</head>
<body>
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"></p>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011">I am trying to monitor multiple volumes on a NetApp system. The format of the command requires a hostname:volumename format. I want to reduce my commands/service definitions
to a minimum. My initial thought was to have a generic service definition, that gets more specific with a sub definition. When the command is run, it seems like it is not passing the custom variable, but rather leaving a single $ behind where the variable
ought to be.</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011"></span></font></font></font> </div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011">Any ideas on</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011">1) fixing my syntax?</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011">2) Doing this somehow easier?</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011"></span></font></font></font> </div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011"></span></font></font></font> </div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011"><font size="3"><font color="#000000"><font face="Times New Roman">NAF UNKNOWN - No Snapmirror with source or destination "myhostname:$" found! </font></font></font></span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011"></span></font></font></font> </div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="660440919-29062011"> </span>define service{<br>
name NA_SnapMirror<br>
check_command netapp_snapmirror<br>
use GenericService_Core<br>
normal_check_interval 1000<br>
max_check_attempts 300<br>
register 0<br>
contact_groups CoreServers<br>
}</font></font></font></div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><font color="#0000ff" size="2" face="Arial">define service {<br>
use NA_SnapMirror<br>
_navolume <span class="660440919-29062011">myvolumename</span><br>
service_description SnapMirror_groups<br>
hosts <span class="660440919-29062011">myhostname</span><br>
}</font></div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><font color="#0000ff" size="2" face="Arial">define command{<br>
command_name netapp_snapmirror<br>
command_line $USER1$/check_naf.py -H $HOSTADDRESS$ -C $USER8$ snapmirror,$HOSTNAME$:$_SERVICEnavolume$,$USER25$<br>
}</font></div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<p></p>
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"> </p>
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"></p>
<hr id="HR1">
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"><font size="1">For more information about
<strong>Lewis and Roca LLP</strong>, please go to </font><a title="Lewis and Roca LLP's Website" href="http://www.lewisandroca.com/" target="_blank"><strong><font size="1">www.lewisandroca.com</font></strong></a>.</p>
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"><span style="font-size:xx-small; ">
<table style="font-size: xx-small" cellspacing="0" cellpadding="0" class="3638fb19-7976-4a08-85e5-ee69e19531a3Table">
<tbody>
<tr height="0">
<td>Phoenix (602)262-5311</td>
<td> </td>
<td>Minden (775)586-9500</td>
</tr>
<tr height="0">
<td>Tucson (520)622-2090</td>
<td> </td>
<td>Albuquerque (505)764-5400</td>
</tr>
<tr height="0">
<td>Las Vegas (702)949-8200</td>
<td> </td>
<td>Silicon Valley (650)391-1380</td>
</tr>
<tr height="0">
<td>Reno (775)823-2900</td>
<td> </td>
<td></td>
</tr>
</tbody>
</table>
</span></p>
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"><font size="1"> This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible
for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying
to the sender of this E-Mail by return E-Mail or by telephone. </font></p>
<p class="3638fb19-7976-4a08-85e5-ee69e19531a3"><font size="1"> In accordance with Internal Revenue Service Circular 230, we advise you that if this email contains any tax advice, such tax advice was not intended or written to be used, and it cannot be used,
by any taxpayer for the purpose of avoiding penalties that may be imposed on the taxpayer.</font></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</body>
</html>