NCSA Service check question

Brandon Vanderberg brandon_vanderberg at yahoo.com
Thu Nov 15 23:08:51 CET 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071115/6207c592/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