check_nt and MSSQL$SQLEXPRESS
Ben O'Hara
bohara at gmail.com
Wed Nov 29 15:57:50 CET 2006
Anyone else managed to get nagios to check the state of the
"MSSQL$SQLEXPRESS" service?
Obviously the $ in the middle of it doesnt help, but ive tried
escaping it, and in quotes etc and nagios always appears to tag
another $ onto the end when it gets run hence im getting back
MSSQL$SQLEXPRESS$: Unknown
Ive got the following defined
define command{
command_name check_nt_services
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v
SERVICESTATE -l $ARG1$
}
define service{
use active-service
host_name lds_buildxp
service_description SQL Server 2005 Process
contact_groups winadmins
check_command check_nt_services!MSSQL\$SQLEXPRESS
}
Ive even tried
define command{
command_name check_nt_sqlexpress
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v
SERVICESTATE -l MSSQL\$EXPRESS
}
with various methods of quoting, escaping etc and still get the same error!
Any ideas?
Cheers
Ben
--
"A Scientist will earn a living by taking a really difficult problem
and spends many years solving it, an engineer earns a living by
finding really difficult problems and side stepping them"
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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