James - have you tried putting double slashes in the Opsview service definition:

"\\Web Service(_Total)\\Current Connections" - I had a similar thing with file 
sizes have to be stored as D:\\MDBDATA\\priv1.edb etc

Matt

From: [email protected] 
[mailto:[email protected]] On Behalf Of James Whittington
Sent: 26 October 2010 18:26
To: Opsview Users
Subject: [opsview-users] Having issues checking counter in Win08 server

I am trying to create a Service check to check web connections on my Windows 
2008 web servers.
I check service state through Opsview Agent/nsclient++ already on the same 
server so I figured checking some counters would be pretty easy.

This command works properly as user nagios from the Opsview monitoring node 
doing the polling:
./check_nrpe -H xxx.xxx.xxx.xxx -c nsc_checkcounter -a '"\Web 
Service(_Total)\Current Connections" MaxWarn=100 MaxCrit=300 ShowAll'

"OK: \Web Service(_Total)\Current Connections: 1|'\Web Service(_Total)\Current 
Connections'=1;100;300;"

The service definition I created in Opsview looks like this:
check_nrpe -H $HOSTADDRESS$ -c nsc_checkcounter -a '"\Web 
Service(_Total)\Current Connections" MaxWarn=100 MaxCrit=300 ShowAll'



This is the error that appears in Opsview:
ERROR: Web Service(_Total)Current Connections: PdhAddCounter failed: 
-1073738816: Unable to parse the counter path. Check the format and syntax of 
the specified path.

I figure others out there has come across this previously (maybe something 
needs to be escaped?) so I figured I'd post it to the group.


James Whittington
VC3, Inc.


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

Reply via email to