Nagios monitoring of a windows server showing UNKNOWN & ERROR: Could not get data for 5m perhaps we don't collect data this far back?
Searching the internet suggests running
lodctr.
Run a query to find if any performance counters are disabled using
lodctr /Q
In my case I found that PerfOS was Disabled. To Enable I ran
lodctr /Q:PerfOS
Rebuilding the performance counters using
lodctr /R
The symptom still wasn't going away, then modified the nsclient.ini to output trace debug statements and then ran
nscp test
to see how the incoming requests were being handled. It turns out that there is a 32bit and 64bit version of lodctr that I needed to rebuild. Once that was completed a resync of the performance counters cleared everything up.
c:\Users\Larry>cd c:\windows\system32
c:\Windows\System32>lodctr /R
Info: Successfully rebuilt performance counter setting from system backup store
c:\Windows\System32>cd c:\windows\sysWOW64
c:\Windows\SysWOW64>lodctr /R
Info: Successfully rebuilt performance counter setting from system backup store
c:\Windows\SysWOW64>WINMGMT.EXE /RESYNCPERF
No comments:
Post a Comment