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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

The command from the documentation just enabled the NRPE server on the remote host. It does not set the IP address so just run it as shown.

Code: Select all

nscp settings --activate-module NRPEServer --add-defaults
Be sure to check out our Knowledgebase for helpful articles and solutions!
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 »

You typed --active-module not --activate-module as well and followed by an IP address. It appears you did not follow the guide.

If you need to start again:

http://sites.box293.com/nagios/guides/n ... t-ini-file


If you follow the guides step by step you shouldn't have any problems (copy and paste saves spelling mistakes).
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 »

Thanks very much for Box293, I complete this operation :
http://sites.box293.com/nagios/guides/n ... dows/0-4-x
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 »

Did it resolve your original problem?
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 »

I want to ask Why me recreate a nsclient.ini File ?

When I finish install NSclient software, the nsclient.ini file is exist in C:\Program Files\NSClient++ folder .
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 »

Sometimes people manually edit the file and make changes that are not vaild and cause more problems trying to troubleshoot issues. When you start fresh, it makes things simpler.

Is your original problem resolved?
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 »

When I finish install the NSCP-0.4.1.105-Win32.msi on nagios client.
The picture 68 show the config of the services.cfg
The picture 67 show the status of the Drive.
Attachments
68.png
67.png
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:When I finish install the NSCP-0.4.1.105-Win32.msi on nagios client.
The picture 68 show the config of the services.cfg
The picture 67 show the status of the Drive.
Did you make sure that your Nagios server is allowed to talk to your remote box running NSClient? You can used allowed hosts = to make sure they are allowed to talk.

snippet from my working nsclient.ini:

Code: Select all

[/settings/default]

; PASSWORD - Password used to authenticate against server
password = supergoodpassword

; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges.
allowed hosts = 192.168.4.67, 192.168.4.11
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 »

The nagios server is 10.134.40.139
The nagios client is 10.245.36.32
The file nsclient.ini show the configure, please look at the picture 12.
Attachments
12.png
12.png (9.26 KiB) Viewed 2785 times
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 »

Can you please post your entire nsclient.ini file
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked