Check_nt services - $ in service name

Chris Hammond chris at tac.esi.net
Thu Jun 10 21:30:18 CEST 2004


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
> > > > 
> > > 
> 
-- 
Chris Hammond <chris at tac.esi.net>



-------------------------------------------------------
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