NS Client Error Failed to get PDH Value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

NS Client Error Failed to get PDH Value

Post by toleolu »

This is a brand new physical install of Server 2008, never saw this error before, looking online indicates this error has something to do with the performance counters in Windows being jacked up. When I run the command to reset the performance counters (lodctr.exe /R) Windows throws this error:

"Error: Unable to rebuild performance counter setting from system backup store, error code is 5."

Digging into that error I found the lodctr commands to backup the original /S:Backup_Original.ini then do a restore R:PerfStringBackup.ini and that throws this error:
"Error: Unable to restore performance counter setting from backup file C:\Windows\System32\PerfStringBackup.ini, error code is 5".

In addition to the PDH Value issue, it's also having problems with"
Capture.JPG
Short of having the guy go back and wipe that drive and start from scratch on the OS install, does any have any suggestions?
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NS Client Error Failed to get PDH Value

Post by lmiltchev »

Did you run "lodctr.exe /R" as administrator?
Be sure to check out our Knowledgebase for helpful articles and solutions!
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: NS Client Error Failed to get PDH Value

Post by toleolu »

Crap!!!

Ran successfully as local admin, but did not fix the problem.

Thanks
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NS Client Error Failed to get PDH Value

Post by Box293 »

Is your problem now resolved?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: NS Client Error Failed to get PDH Value

Post by toleolu »

No, I ran the reset as admin, it ran successfully, but it did not fix the problem with the three services.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: NS Client Error Failed to get PDH Value

Post by tgriep »

Could you post how the service checks are configured so we can review them?
Be sure to check out our Knowledgebase for helpful articles and solutions!
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: NS Client Error Failed to get PDH Value

Post by toleolu »

Just the standard CPU check from the Windows Server Monitoring Wizard:

define service {
host_name webterm2.hhsc.org
service_description CPU Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!nagios!CPULOAD!-l 5,90,95
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts cmasteller,lchong,ryamamoto
contact_groups CDC Help Desk
_xiwizard windowsserver
register 1
}

Is this what you were talking about, or did you need something else?

Mahalo
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: NS Client Error Failed to get PDH Value

Post by toleolu »

I'm going to sit down with the guy who installed the OS on this server (he's new) and blow it away and reinstall it.

Never saw this problem with a basic Nagios config on a Windows server so I'm wondering what else might be lurking in the background that might jump up and bite us when this box goes into production.

I'll post the results when we're done.

Mahalo
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NS Client Error Failed to get PDH Value

Post by abrist »

Great, thanks for the update.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: NS Client Error Failed to get PDH Value

Post by Fred Kroeger »

Are you using nsclient++ as the NRPE agent?
I've had similar issues with a Win2008 Exchange server where the check_pdh command is failing.
I'm still in the process of proving my solution, but indications so far has been that the there is a problem with nsclient.
I have upgraded a server to the latest version 0.4.3.x and the check_pdh command appears to be working correctly now

Regards... Fred
Locked