(No output on stdout) stderr:

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.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

(No output on stdout) stderr:

Post by deepshikha20 »

Hi ,

I have configured few remote server but am getting below error for the services on the web interface.

(No output on stdout) stderr:

I have checked the nsclient.log and error is

2014-12-13 03:57:34: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:139: Failed to query performance counters: PdhCollectQueryData failed: : -2147481643: No data to return.


2014-12-13 03:57:34: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:139: Failed to query performance counters: PdhCollectQueryData failed: : -2147481643: No data to return.


2014-12-13 03:57:35: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:139: Failed to query performance counters: PdhCollectQueryData failed: : -2147481643: No data to return.


Please help !
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: (No output on stdout) stderr:

Post by Box293 »

I suspect you're using NSClient 0.4.2.

0.4.2 has some bugs that cause these types of issues.

Try 0.4.1 or 0.3.9 and let us know if that fixes your problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

The version which i am using is NSCP-0.4.1.73-x64 .

Let me know if i need to use the 0.3.9 one ?

Thanks.

Regards,
Deepshikha
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: (No output on stdout) stderr:

Post by Box293 »

Great then we know it's not 0.4.2 causing the issue.

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.

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.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

it didn't fix it. The issue still remains the same.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: (No output on stdout) stderr:

Post by Box293 »

Can you post the config of the services that are having problem so we can test them.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

Hi,

Please find the attached as requested.

Thanks.

Regards,
Deepshikha
Attachments
commands.cfg.txt
commands.cfg
(8.1 KiB) Downloaded 816 times
windows.cfg.txt
windows.cfg
(7.6 KiB) Downloaded 643 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: (No output on stdout) stderr:

Post by slansing »

I don't actually see any performance counter checks specifically, though your normal checks are likely querying the counters at some point, what services are failing in the XI web interface?
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

Hi,

Please find the attached screenshot which gives you a clear picture about the error i am facing.

Thanks.

Regards,
Deepshikha
Attachments
services.JPG
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: (No output on stdout) stderr:

Post by sreinhardt »

Can you post your nagios.cfg and resources.cfg files please? It looks like you are not appending a path to the commands, and so nagios may not know where to look for them.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked