NCSA Service check question

Anthony Montibello amontibello at gmail.com
Fri Nov 16 01:12:25 CET 2007


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 <brandon_vanderberg at yahoo.com>
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
> Nagios-users at lists.sourceforge.net
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071115/17f103ed/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list