Check result from check_mssql.pl returns "null" from nagios, but OK from shell ??

Marc Powell marc at ena.com
Thu Jul 30 00:08:34 CEST 2009


On Jul 29, 2009, at 4:33 PM, Mirza Dedic wrote:

> The check_mssql.pl is from the op5 dev team as per the start of the  
> file:
>
> # License: GPL
> # Copyright (c) 2005-2008 op5 AB
> # Author: op5 dev team <dev at op5.com>
> #
> # For direct contact with any of the op5 developers send a mail to
> # dev at op5.com
> # Discussions are directed to the mailing list op5-users at op5.com,
> # see http://lists.op5.com/mailman/listinfo/op5-users
>
> My Command/Service definition is:
>
> define command{
>        command_name    van-sql01_DB_Test
>        command_line    $USER1$/check_mssql -H van-sql01 -U USER  -P  
> PASSWD -o -D Test
> }

Does using a FQDN for -H help here?  Also try changing the command  
line to capture standard out --

command_line    $USER1$/check_mssql -H van-sql01.somedomain.com -U  
USER  -P PASSWD -o -D Test 2>&1
or
command_line    $USER1$/check_mssql -H van-sql01.somedomain.com -U  
USER  -P PASSWD -o -D Test 2>/tmp/error.log

--
Marc


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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