Page 1 of 3

NSClient - ERROR: PDH Collection thread not running.

Posted: Sun Sep 06, 2015 5:25 am
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 ?

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

Posted: Sun Sep 06, 2015 10:17 pm
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?

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

Posted: Mon Sep 07, 2015 1:05 am
by wangyu
The version of NSClient is 0.2.7

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

Posted: Mon Sep 07, 2015 2:07 am
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

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

Posted: Tue Sep 08, 2015 1:43 am
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 ?

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

Posted: Tue Sep 08, 2015 4:33 pm
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.

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

Posted: Tue Sep 08, 2015 7:28 pm
by wangyu
I can't uninstall it via control panel ,because the nsclient-0.2.7 is not exist in the control panel

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

Posted: Tue Sep 08, 2015 7:53 pm
by Box293
Does this work?

Code: Select all

nsclient++ /uninstall

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

Posted: Wed Sep 09, 2015 12:32 am
by wangyu
It's OK ,thanks very much !

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

Posted: Wed Sep 09, 2015 1:14 am
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 ?