[Nagiosplug-help] check_mssql

teh cleaner tehcleaner at gmail.com
Tue Jul 5 07:46:20 CEST 2005


The user macros are properly defined and tested with other macros. 
Does anyone have any success with this script.

On 7/1/05, Andreas Ericsson <ae at op5.se> wrote:
> 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
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>




More information about the Help mailing list