[Nagiosplug-help] check_mssql

Andreas Ericsson ae at op5.se
Fri Jul 1 06:11:43 CEST 2005


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

check_mssql.sh is a contributed plugin of questionable quality and 
coding practices. I wouldn't hold my breath on getting it to work.

> 
> # 'check_mssql.sh' command definition
> define command{
>        command_name    check_mssql
>        command_line   
> /usr/local/nagios/nagios-plugins-1.4/contrib/check_mssql.sh $HOSTNAME$
> $USER3$ $USER4$ $USER5$
>        }
> 

I suppose the user macros are all properly defined? If not, you should 
see to that first.

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

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Help mailing list