Hello
I am monitoring a server which has started to give the following error in Nagios "NSClient - ERROR: No performance data from command: check_cpu" which has only just started, the server has been monitored for several months with no issue. I have also checked the logs for nsclient on the local machine and i am getting
error:c:\source\master\modules\CheckSystem\pdh_thread.cpp:350: Failed to get Mutex for: cpu
error:c:\source\master\modules\CheckSystem\pdh_thread.cpp:365: Failed to get Mutex for: metrics
i have stopped and restarted NSClient and i have rebuilt the monitor, still i ma getting this error can you assist please
NSClient Version 0.5.0.62 Platform x64bit
CPULOAD failing with no Performance Data being returned
-
btsmnagios
- Posts: 49
- Joined: Tue Mar 07, 2017 9:19 am
Re: CPULOAD failing with no Performance Data being returned
Is the box doing something really resource intensive at the time of the error, like backups, etc? What is the load on the server? According to Michael Medin (the developer of NSClient++) the issue may be related to timeouts on "busy" systems. See the thread below. It references much older version of NSClient++ but the issue may be still present in 0.5.0.62.
https://forums.nsclient.org/t/nsclient- ... start/2606
I would recommend posting your question on the NSClient++ support forum as well to see if they have a possible solution. NSClient++ is not developed or maintained by Nagios.
Is the NSClient++ service stopped when you see the error? Does the error go away when you restart the service? You may try modifying the nsclient windows service to restart at all times when it detects the service is stopped.
Type "services.msc" in run or start search field, and hit "Enter". Right click on nsclient service and select properties. Go to the Recovery tab and set all failure blocks to restart the service and restart service after to 0 or 1 minute.
https://forums.nsclient.org/t/nsclient- ... start/2606
I would recommend posting your question on the NSClient++ support forum as well to see if they have a possible solution. NSClient++ is not developed or maintained by Nagios.
Is the NSClient++ service stopped when you see the error? Does the error go away when you restart the service? You may try modifying the nsclient windows service to restart at all times when it detects the service is stopped.
Type "services.msc" in run or start search field, and hit "Enter". Right click on nsclient service and select properties. Go to the Recovery tab and set all failure blocks to restart the service and restart service after to 0 or 1 minute.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
btsmnagios
- Posts: 49
- Joined: Tue Mar 07, 2017 9:19 am
Re: CPULOAD failing with no Performance Data being returned
you can close this now a reboot of the server resolved the issue, thanks