CPU Utilisation gives an error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

CPU Utilisation gives an error

Post by RIDS_I2MP »

Hi Team,

We are getting the below error when we try to monitor CPU utilization on a windows server.

NSClient - ERROR: Could not get data for 5 perhaps we don't collect data this far back?

Other parameters monitored on this server work fine except for this, please suggest.
Thanks & Regards,
I2MP Team.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CPU Utilisation gives an error

Post by Box293 »

Try rebuilding the performance counters on the windows host:

Code: Select all

lodctr /R
After doing restart the NSClient++ service.

Does this fix your problem?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CPU Utilisation gives an error

Post by RIDS_I2MP »

Hi Team,

Could you please provide a document or point us to the Microsoft link which details the process. Our Admin team needs this to proceed further with this activity
Thanks & Regards,
I2MP Team.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: CPU Utilisation gives an error

Post by WillemDH »

http://support2.microsoft.com/kb/2554336

Code: Select all

Rebuilding all performance counters including extensible and third-party counters


To rebuild all Performance counters including extensible and third-party counters, type the following commands at an Administrative command prompt. Press ENTER after each command.

Rebuilding the counters:
     cd c:\windows\system32
     lodctr /R
     cd c:\windows\sysWOW64
     lodctr /R

Resyncing the counters with Windows Management Instrumentation (WMI):
     WINMGMT.EXE /RESYNCPERF

Stop and restart the Performance Logs and Alerts service. 
Stop and restart the Windows Management Instrumentation service.

Create a new Data Collector Set (do not use an existing Data Collector Set).
Grtz
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CPU Utilisation gives an error

Post by tmcdonald »

Thank you, Willem.

RIDS_I2MP, please let us know if you need further assistance.
Former Nagios employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CPU Utilisation gives an error

Post by RIDS_I2MP »

Hi,

We did run this this afternoon, however it is still the same...!! Can you let us know if we need to look for a specific counter in perfmon and the settings it should have.
Thanks & Regards,
I2MP Team.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: CPU Utilisation gives an error

Post by WillemDH »

Can you give us the complete command you are using? Go to the service in CCM and Test, then paste output here. Do you use checkcpu http://www.nsclient.org/nscp/wiki/CheckSystem/checkCPU or use performance counters?
What version of NSClient++? You could consider posting a thread here: http://www.nsclient.org/forums/ to see if some NSClient power user / developer might have seen this before.

Grtz
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CPU Utilisation gives an error

Post by lmiltchev »

@RIDS_I2MP

Did you restart the NSClient++ service after rebuilding the Windows performance counters?
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CPU Utilisation gives an error

Post by RIDS_I2MP »

It works post the service restart. Please close this as solved.
Thanks & Regards,
I2MP Team.
Locked