$$ didn't work for me, but changing the command worked like a charm. 
Thanks so much!

Regards

Brandon


----- Original Message ----
From: Brandon Vanderberg <[EMAIL PROTECTED]>
To: Anthony Montibello <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Thursday, November 15, 2007 4:34:30 PM
Subject: Re: [Nagios-users] NCSA Service check question


That looks good. I'll test it tomorrow. 

Thanks!


----- Original Message ----
From: Anthony Montibello <[EMAIL PROTECTED]>
To: Brandon Vanderberg <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Thursday, November 15, 2007 4:12:25 PM
Subject: Re: [Nagios-users] NCSA Service check question


its been a while since I looked at that issue, But 
 
I thought $$ works?  (my test sever is down so I cannot test)
 
Sometimes having the command definition like such helps:
command_line    $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l '$ARG1$' 
-d SHOWALL
 
then you do not need to worry about loosing the ' between the  command and the 
definition,
 
but my test server is down so I cannot test these options.
 
Tony (Author of NC_Net)


On Nov 15, 2007 5:08 PM, Brandon Vanderberg <[EMAIL PROTECTED]> wrote:

Hi all, quick question here that I hope is appropriate for this list. 
 
I'm querying a Windows box w/ NSClient for services using check_nt -v 
SERVICESTATE -l (list of services). 
One of the services I'm checking has a dollar sign ($) in its name. This causes 
the check to barf. 
 
A standard check runs fine when surrouded by ' : 
 /usr/lib/nagios/plugins/check_nt -H host.blah.blah -v SERVICESTATE -l 
'MSSQL$VITALSQLEXPRESS'
All services are running
 
But using the same in my services.cfg with either  '  ` or " doesn't have the 
desired effect. 
 
Here's my checkcommand.cfg entry if it's helpful.

define command{
        command_name    check_nt_service
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -l 
$ARG1$ -d SHOWALL

Any ideas? Renaming the service really isn't an option and though I can monitor 
the process, I'd really rather not. 
 
Regards and thanks in advance,
 
B Vanderberg

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list 
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users 
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null







-----Inline Attachment Follows-----

_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to