[Nagiosplug-help] check_mssql

teh cleaner tehcleaner at gmail.com
Wed Jun 29 12:14:42 CEST 2005

Running the script from the command line works great, but when I run
the following in nagios:

# 'check_mssql.sh' command definition
define command{
       command_name    check_mssql
/usr/local/nagios/nagios-plugins-1.4/contrib/check_mssql.sh $HOSTNAME$

# Service definition
define service{
       use                             generic-service         ; Name
of service template to use

       host_name                       schqasr01
       service_description             SQL monitor
       is_volatile                     0
	 check_period			24x7
       max_check_attempts              3
       normal_check_interval           5
       retry_check_interval            1
       contact_groups                  nt-admins,database-admins
       notification_interval		   120
	 notification_period             24x7
       notification_options            w,u,c,r
       check_command 			   check_mssql

This is what I get in my log file:

/usr/local/nagios/nagios-plugins-1.4/contrib/check_mssql.sh: line 68:
-S: command not found

More information about the Help mailing list