NSClient - ERROR: PDH Collection thread not running.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
wangyu
Posts: 41
Joined: Tue Aug 25, 2015 2:41 am

NSClient - ERROR: PDH Collection thread not running.

Post by wangyu »

When I use nagios server monitor a Windows server.

The status of check-cpuload , check-memory ,check-runtime are unknown
NSClient - ERROR: PDH Collection thread not running.

Please look at the picture 35.

What's the wrong with this problem ?
How can I solve this problem ?
Attachments
35.png
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NSClient - ERROR: PDH Collection thread not running.

Post by Box293 »

It sounds like the performance counters on the Windows box need fixing.

From the windows box run:

Code: Select all

lodctr /R


After that restart the NSClient++ service.

If that doesn't fix it, what version of NSClient++ is running on this server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
wangyu
Posts: 41
Joined: Tue Aug 25, 2015 2:41 am

Re: NSClient - ERROR: PDH Collection thread not running.

Post by wangyu »

The version of NSClient is 0.2.7
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NSClient - ERROR: PDH Collection thread not running.

Post by Box293 »

Was your problem fixed with my command?

You need to upgrade, I've been using Nagios since 2009 and I've never used the 2.x versions.

I would uninstall, delete any existing NSClient++ directories and install from scratch.

Here's a guide:
http://sites.box293.com/nagios/guides/n ... dows/0-4-x
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
wangyu
Posts: 41
Joined: Tue Aug 25, 2015 2:41 am

Re: NSClient - ERROR: PDH Collection thread not running.

Post by wangyu »

The Step I install NSClient-0.2.7 is :
##################################################
C:> cd /D C:\NSClient++

C:\NSClient++>nsclient++ /install

C:\NSClient++>nsclient++ SysTray

C:\NSClient++>nsclient++ /start
###################################################

How could I uninstall nsclient-0.2.7? also uninstall it from services.msc ?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NSClient - ERROR: PDH Collection thread not running.

Post by hsmith »

wangyu wrote:The Step I install NSClient-0.2.7 is :
##################################################
C:> cd /D C:\NSClient++

C:\NSClient++>nsclient++ /install

C:\NSClient++>nsclient++ SysTray

C:\NSClient++>nsclient++ /start
###################################################

How could I uninstall nsclient-0.2.7? also uninstall it from services.msc ?
You're not able to uninstall it via control panel? That's how I've always done it.
Former Nagios Employee.
me.
wangyu
Posts: 41
Joined: Tue Aug 25, 2015 2:41 am

Re: NSClient - ERROR: PDH Collection thread not running.

Post by wangyu »

I can't uninstall it via control panel ,because the nsclient-0.2.7 is not exist in the control panel
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NSClient - ERROR: PDH Collection thread not running.

Post by Box293 »

Does this work?

Code: Select all

nsclient++ /uninstall
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
wangyu
Posts: 41
Joined: Tue Aug 25, 2015 2:41 am

Re: NSClient - ERROR: PDH Collection thread not running.

Post by wangyu »

It's OK ,thanks very much !
wangyu
Posts: 41
Joined: Tue Aug 25, 2015 2:41 am

Re: NSClient - ERROR: PDH Collection thread not running.

Post by wangyu »

I install NSCP-0.4.1.105-Win32 on nagios client .
The IP of the nagios client is 10.245.36.32
The IP of the nagios server is 10.134.40.139
When I input this command on nagios client ,please see picture 53.
Whether the command I input is wrong ?

The picture 52 show the method box293 use how to configure NSCP-0.4.1.105-Win32 .
The question is the three step :
######################################################################################
Type nscp settings --activate-module NRPEServer --add-defaults and press Enter
This may prompt you for permission
Type nscp settings --path /settings/NRPE/server --key "allow arguments" --set true and press Enter
This may prompt you for permission
Type nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true and press Enter
#######################################################################################

According to my understand ,the NRPEServer is nagios client ,so I replace the NRPEServer to 10.245.36.32
The Picture 53 show I input.
But it not execute successful ,so Box293 ,please tell me how could I input the command realation to the three step.
The NRPEServer is nagios client ? or The NRPEServer is nagios server ?
Attachments
53.png
53.png (7.85 KiB) Viewed 3575 times
52.png
52.png (9.7 KiB) Viewed 3575 times
Locked