Check_nt services - $ in service name

jeff vier jeff.vier at tradingtechnologies.com
Thu Jun 10 21:35:45 CEST 2004


okay.

Not sure why that would be - it's giving you that as the return value?

One thing I notice is that you have a space after your ! in your
check_command def.  I don't think that it'd like that.

I don't think this will do it, but *occasionally* in Unixland, things
like to be double escaped when being 'passed' like it is here.
So you could try
check_command           check_nt_service!MSSQL\\$BKUPEXEC
But I'd be surprised if that did it :)

You might also try defining another command and setting the -l
to MSSQL\$BKUPEXEC (or maybe just MSSQL$BKUPEXEC) explicitly instead of
using the ARG1 macro.

On Thu, 2004-06-10 at 15:30 -0400, Chris Hammond wrote:
> Ok, now it is giving me this;
> 
> MSSQL$BKUPEXEC$
> 
> #'check_nt_service' command definition
> define command{
> 	command_name	check_nt_service
> 	command_line	/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -p
> 1248 -v SERVICESTATE -d SHOWALL -l $ARG1$
> 	}
> 
> check_command		check_nt_service! MSSQL\$BKUPEXEC
> 
> Thanks
> Chris
> 
> On Thu, 2004-06-10 at 14:08 -0500, jeff vier wrote:
> > It's \$ (that's why I put that in there :))
> > 
> > So, you'd say MSSQL\$BKUPEXEC
> > 
> > On Thu, 2004-06-10 at 15:02 -0400, Chris Hammond wrote:
> > > Thanks for the reply Jeff but no I didn't.  I'm not sure of the proper
> > > syntax for doing that but will go look it up now.
> > > 
> > > Thanks
> > > Chris
> > > 
> > > On Thu, 2004-06-10 at 13:02 -0500, jeff vier wrote:
> > > > Have you tried escaping it? (\$)?
> > > > 
> > > > On Thu, 2004-06-10 at 11:34 -0400, Chris Hammond wrote:
> > > > > I am trying to check a service named MSSQL$BKUPEXEC.  Even with double
> > > > > quotes around it, it still only sees it as MSSQL$.  Is there something
> > > > > else I need to do??
> > > > > 
> > > > > Thanks
> > > > > Chris
> > > > > 
> > > > 
> > 



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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