On 31 Aug 2009, at 14:15, Kevin Grant wrote:

I'm running version 3.1.0 of opsview. I'm trying to use nsc_checkservicestate to check the status of a windows service. I'm able to execute a service check via command line and it reports "CRITICAL" correctly, but when opsview executes the check, it reports "OK". Is this because the service contains special characters for a name? The service is named MSSQL$MICROSOFT##SSEE

Here are 2 examples, first one being the command line check and the 2nd being the OPSVIEW check:

Example1:
nag...@opsview:/usr/local/nagios/libexec$ ./check_nrpe -H 10.1.1.55 - c nsc_checkservicestate -a 'ShowAll MSSQL$MICROSOFT##SSEE=started'
CRITICAL: MSSQL$MICROSOFT##SSEE: stopped (critical)


Example2:
OK: MSSQL$MICROSOFT##SSEE: stopped


If I run this same test on another windows service that doesn't contain special characters in the name, it reports correctly.

Try changing the Opsview args value to $$ instead of just $. I think this is a problem in core Nagios' interpretation of macros.

Ton

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to