Matt, "James - have you tried putting double slashes in the Opsview service definition:" I'm pretty sure I tested that as well, but at the time I was under a major time crunch to get this thing in place. For the short term I just added it as a custom command in NSC.ini on the Windows server.
So that line would look like this: web_curr_conn=inject CheckCounter "Counter:connections=\Web Service(_Total)\Current Connections" ShowAll MaxWarn=40 MaxCrit=100 With service check looking like this: check_nrpe -H $HOSTADDRESS$ -c nsc_checkcounter -c web_curr_conn -a ShowAll It worked but I like to keep the remote servers Opsview agents as generic as I can so folks don't have to know to add custom lines as new servers are monitored. If I get it solved I'll be sure to post the solution. James From: [email protected] [mailto:[email protected]] On Behalf Of Matt White Sent: Thursday, October 28, 2010 3:03 AM To: Opsview Users Subject: Re: [opsview-users] Having issues checking counter in Win08 server 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
