Page 1 of 1
PDHCollector.cpp:215
Posted: Wed Dec 02, 2015 4:49 pm
by Equintana
HI,
I´m deploying windows 2008r2 nsclient 0.3.9.328 64 bits and only ping check works.
Why? This error is shown
Error:
2015-12-02 22:42:28: error:modules\CheckSystem\PDHCollector.cpp:215: Failed to query performance counters: PdhCollectQueryData failed: : No data to return. (800007D5)
2015-12-02 22:42:29: error:modules\CheckSystem\PDHCollector.cpp:215: Failed to query performance counters: PdhCollectQueryData failed: : No data to return. (800007D5)
Any idea?
Regards
Re: PDHCollector.cpp:215
Posted: Wed Dec 02, 2015 4:55 pm
by hsmith
Have you tried with a more modern version of NSClient?
Re: PDHCollector.cpp:215
Posted: Wed Dec 02, 2015 5:05 pm
by Equintana
Hi,
Yes..0.4.3 64 bits.
Re: PDHCollector.cpp:215
Posted: Wed Dec 02, 2015 5:11 pm
by hsmith
Have you tried posting on the
NSclient forums? NSClient is not our product, so we only provide limited support for it. What happens when you try to do a check from the Nagios command line? Can you post your NSClient.ini here for us to review? What version of Nagios are you using?
Re: PDHCollector.cpp:215
Posted: Wed Dec 02, 2015 7:31 pm
by Box293
It sounds like the performance counters on the Windows box need fixing.
From the windows box run:
After that restart the NSClient++ service.
Re: PDHCollector.cpp:215
Posted: Thu Dec 03, 2015 1:16 pm
by Equintana
HI,
After ran lodctr /R
I can see at debug file:
2015-12-03 19:16:20: debug:modules\CheckSystem\PDHCollector.cpp:130: Found countername: CPU: \Processor(_total)\% Processor Time
2015-12-03 19:16:20: debug:modules\CheckSystem\PDHCollector.cpp:131: Found countername: UPTIME: \System\System Up Time
2015-12-03 19:16:20: debug:modules\CheckSystem\PDHCollector.cpp:132: Found countername: MCL: \Memory\Commit Limit
2015-12-03 19:16:20: debug:modules\CheckSystem\PDHCollector.cpp:133: Found countername: MCB: \Memory\Committed Bytes
2015-12-03 19:16:20: debug:include\Socket.h:683: Bound to: 0.0.0.0:5666
2015-12-03 19:16:20: debug:include\Socket.h:683: Bound to: 0.0.0.0:12489
But at nagios console:
172.30.0.33
View service status details for this host
CPU Usage
Critical 8d 19h 18m 9s 5/5 2015-12-03 19:15:42 CRITICAL - Socket timeout after 10 seconds
Drive C: Disk Usage
Critical 8d 19h 17m 39s 5/5 2015-12-03 19:11:35 CRITICAL - Socket timeout after 10 seconds
Memory Usage
Critical 8d 19h 16m 58s 5/5 2015-12-03 19:11:28 CRITICAL - Socket timeout after 10 seconds
Ping
Ok 8d 19h 16m 31s 1/5 2015-12-03 19:12:00 OK - 172.30.0.33: rta 1.127ms, lost 0%
Uptime
Critical 8d 19h 15m 46s 5/5 2015-12-03 19:12:21 CRITICAL - Socket timeout after 10 seconds
Re: PDHCollector.cpp:215
Posted: Thu Dec 03, 2015 2:13 pm
by rkennedy
From the Nagios machine, can you attempt to run a check against NSClient over the command line and post the result?
You could also try adding the -t 30 to the end of one of the checks to give it a bit more time then 10 seconds - this could help as well.
Re: PDHCollector.cpp:215
Posted: Thu Dec 03, 2015 5:49 pm
by Box293
Can you also post your NSC.ini file please.