NSClient++ Help (#1) - Rebuild Counters (#78) - Message List
Just encase anyone has the same problem as I did: I was getting "No data recieved from host" in Nagios using CPU check. Ran nsclient++ /test it was saying it couldn't find the performance counters: e \PDHCollector.cpp(116) Failed to open performance counters: \Memory\Commit Limit: PdhAddCounter? failed: -1073738824: The specified object is not found on the system.
Ran nsclient++ CheckSystem listpdh got a strange output mostly numbers: \3514\3542 \2170(_Global_)\2172
Ran performance monitor, it showed the same numbers when I tried to add a counter. The default counters were missing on startup. It seems the performance counter files were corrupted.
After some reasearch I found an easy way to rebuild the performance counter files on windows 2003: lodctr /R (R must be capitol) It can be done in windows 2000, but its a manual process. After this I restarted the service and the performance counters worked fine.







