<div>I actually define the following Service configs to help deal with these issues.</div>
<div><span lang="EN">
<p>define command{</p>
<p>command_name check_nt_l</p>
<p>command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v $ARG1$ -l "$ARG2$"</p>
<p>}</p></span></div>
<div><br>THen I use the following for the service definition.</div>
<div><span lang="EN">
<p>check_nt_l!SERVICESTATE !Act\! Scheduler</p>
<p> </p>
<p>I have not tested in NSClinet++, but have tested this configuration through NC_NEt.</p>
<p>The primary problem was the ! in the service definition was Tokenizing the parameter into differerent $ARGX$</p>
<p>All nagios plugins would have this same issue,Another common issue is the $ where using $$ usually works.</p>
<p> </p>
<p>TOny (Author of NC_NEt)</p></span><br></div>
<div class="gmail_quote">On Fri, Jun 27, 2008 at 8:24 AM, Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><br>On Jun 27, 2008, at 6:42 AM, Christopher Falk wrote:<br><br>> Problem resolved.<br>><br>> What I just ended up doing is creating a new command,<br>> check_act_scheduler identical to the check_nt_service command<br>
> definition, and hard-coding 'Act! Scheduler' instead of $ARG1$. That<br>> took care of it.<br><br></div>New feature in 3.x --<br><br><a href="http://nagios.sourceforge.net/docs/3_0/whatsnew.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/whatsnew.html</a><br>
<br>Escaped command arguments - You can now pass bang (!) characters in<br>your command arguments by escaping them with a backslash (\). If you<br>need to include backslashes in your command arguments, they should<br>also be escaped with a backslash.<br>
<br>--<br><font color="#888888">Marc<br></font>
<div>
<div></div>
<div class="Wj3C7c"><br>-------------------------------------------------------------------------<br>Check out the new SourceForge.net Marketplace.<br>It's the best place to buy or sell services for<br>just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></div></div></blockquote></div><br>