<div>its been a while since I looked at that issue, But </div>
<div> </div>
<div>I thought $$ works?  (my test sever is down so I cannot test)</div>
<div> </div>
<div>Sometimes having the command definition like such helps:</div>
<div>command_line    $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l '$ARG1$' -d SHOWALL</div>
<div> </div>
<div>then you do not need to worry about loosing the ' between the  command and the definition,</div>
<div> </div>
<div>but my test server is down so I cannot test these options.</div>
<div> </div>
<div>Tony (Author of NC_Net)<br><br></div>
<div class="gmail_quote">On Nov 15, 2007 5:08 PM, Brandon Vanderberg <<a href="mailto:brandon_vanderberg@yahoo.com">brandon_vanderberg@yahoo.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">
<div>Hi all, quick question here that I hope is appropriate for this list. </div>
<div> </div>
<div>I'm querying a Windows box w/ NSClient for services using check_nt -v SERVICESTATE -l (list of services). </div>
<div>One of the services I'm checking has a dollar sign ($) in its name. This causes the check to barf. </div>
<div> </div>
<div>A standard check runs fine when surrouded by ' : </div>
<div> /usr/lib/nagios/plugins/check_nt -H host.blah.blah -v SERVICESTATE -l 'MSSQL$VITALSQLEXPRESS'<br>All services are running</div>
<div> </div>
<div>But using the same in my services.cfg with either  '  ` or " doesn't have the desired effect. </div>
<div> </div>
<div>Here's my checkcommand.cfg entry if it's helpful.</div>
<div><br>define command{<br>        command_name    check_nt_service<br>        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l $ARG1$ -d SHOWALL<br></div>
<div>Any ideas? Renaming the service really isn't an option and though I can monitor the process, I'd really rather not. </div>
<div> </div>
<div>Regards and thanks in advance,</div>
<div> </div>
<div>B Vanderberg</div></div></div><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2005.<br>
<a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</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></blockquote></div><br>