Problem with nsclient check when upgrading to Nagios 2.02b

Andreas Ericsson ae at op5.se
Wed Mar 2 10:58:35 CET 2005


Tong Young wrote:
> This check works in 1.2 but not in 2.0x.  An extra $ gets added to the
> end of the line which makes my check invalid.  Has anyone experienced
> this or know how to fix it?  The error I get back is:
> 
> MSSQL$STGLISTING01$: Unknown
> 

This has to do with some weird macro parsing in 2.0. I believe it has 
been fixed in the latest and greatest. Get it from CVS and re-compile.

> Here are my related configs:
> 
> # 'check_nt_service' command definition
> define command{
>         command_name    check_nt_service
>         command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
> SERVICESTATE -l $ARG1$ $ARG2$
>         }
> 
> # stglist01 - SQL
> define service{
>         use                             stage-service
>         host_name                       stglisting01
>         service_description             Service SQL
>         check_command
> check_nt_service!MSSQL\$STGLISTING01!-d SHOWALL
>         normal_check_interval           1
>         max_check_attempts              1
>         }
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
> _______________________________________________
> 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
> 

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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