Error checkin a windows service
Tedman Eng
teng at dataway.com
Fri Oct 15 19:13:39 CEST 2004
This is in the documentation. You need to escape the dollar sign.
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#command
command_line: This directive is used to define what is actually executed by
Nagios when the command is used for service or host checks, notifications,
or event handlers. Before the command line is executed, all valid macros are
replaced with their respective values. See the documentation on macros for
determining when you can use different macros. Note that the command line is
not surrounded in quotes. Also, if you want to pass a dollar sign ($) on the
command line, you have to escape it with another dollar sign.
-----Original Message-----
From: Marco Scalas [mailto:mascalas at it.tiscali.com]
Sent: Friday, October 15, 2004 7:53 AM
To: Nagios-User
Subject: [Nagios-users] Error checkin a windows service
Hi all!! :)
I have a little problem with Nagios monitoring: if i run from command
line ./check_nt -H 10.8.6.156 -p 1248 - v SERVICESTATE -l 'MSSQL$DBWSS'
the result is "All services are running" but when i go to the status
page in the Nagios web interface i see a error message that says "
MSSQL$DBWSS$: Unknown"
I don't know why Nagios append a $ synbol to the name of the service and
return this error.
This is the comman from the checkcommand file:
define command{
command_name check_nt_dblms
command_line $USER1$/check_nt -p 1248 -H $HOSTADDRESS$ -v
SERVICESTATE -l 'MSSQL$DBLMS'
}
Can anyone help me please?
Thanks in advance
Marco
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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