<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;">That looks good. I'll test it tomorrow. <br><br>Thanks!<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Anthony Montibello <amontibello@gmail.com><br>To: Brandon Vanderberg <brandon_vanderberg@yahoo.com><br>Cc: nagios-users@lists.sourceforge.net<br>Sent: Thursday, November 15, 2007 4:12:25 PM<br>Subject: Re: [Nagios-users] NCSA Service check question<br><br><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 rel="nofollow" ymailto="mailto:brandon_vanderberg@yahoo.com" target="_blank" href="mailto:brandon_vanderberg@yahoo.com">brandon_vanderberg@yahoo.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<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 rel="nofollow" target="_blank" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________<br>Nagios-users mailing list
<br><a rel="nofollow" ymailto="mailto:Nagios-users@lists.sourceforge.net" target="_blank" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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>
</div><br></div></div></body></html>