<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-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">$$ didn't work for me, but changing the command worked like a charm. </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">Thanks so much!</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">Regards</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">Brandon<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Brandon Vanderberg <brandon_vanderberg@yahoo.com><BR>To: Anthony Montibello <amontibello@gmail.com><BR>Cc: nagios-users@lists.sourceforge.net<BR>Sent: Thursday, November 15, 2007 4:34:30 PM<BR>Subject: Re: [Nagios-users] NCSA Service check question<BR><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif">That looks good. I'll test it tomorrow. <BR><BR>Thanks!<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- 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 href="mailto:brandon_vanderberg@yahoo.com" target=_blank rel=nofollow ymailto="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: rgb(204,204,204) 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 rel=nofollow>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" target=_blank rel=nofollow ymailto="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 rel=nofollow>https://lists.sourceforge.net/lists/listinfo/nagios-users </A><BR>::: Plea
 se 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><!-- kill -->
<DIV><BR><BR>-----Inline Attachment Follows-----<BR><BR>_______________________________________________<BR>Nagios-users mailing list<BR><A href="mailto:Nagios-users@lists.sourceforge.net" ymailto="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</DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div></body></html>