Page 1 of 2

NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 9:25 am
by dlukinski
Hello XI support

We are trying to use NPRE checks for Windows 2008R2 from this page: http://sites.box293.com/nagios/guides/c ... interfaces
- they use to work with 0.3.9 clients, but refuse to do so for 0.4.3 client and 'Intel(R) PRO/1000 MT Network Connection' adapter as follows down below:

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.102.34.14 -t 30 -c CheckCounter -a 'Counter:Bytes Received/sec=\\Network Interface\(Intel\(R\) PRO/1000 MT Network Connection\)\\Bytes Received/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.

This must be a syntax issue, only not sure what is it exactly?
Please help

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 1:26 pm
by lmiltchev
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.102.34.14 -t 30 -c CheckCounter -a 'Counter:Bytes Received/sec=\\Network Interface\(Intel\(R\) PRO/1000 MT Network Connection\)\\Bytes Received/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.
Testing from the CCM may tail due to escaping issues but the check itself may work just fine. Have you tried testing from the command line?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.102.34.14 -t 30 -c CheckCounter -a 'Counter:Bytes Received/sec=\Network Interface(Intel(R) PRO/1000 MT Network Connection)\Bytes Received/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 1:50 pm
by dlukinski
lmiltchev wrote:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.102.34.14 -t 30 -c CheckCounter -a 'Counter:Bytes Received/sec=\\Network Interface\(Intel\(R\) PRO/1000 MT Network Connection\)\\Bytes Received/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.
Testing from the CCM may tail due to escaping issues but the check itself may work just fine. Have you tried testing from the command line?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.102.34.14 -t 30 -c CheckCounter -a 'Counter:Bytes Received/sec=\Network Interface(Intel(R) PRO/1000 MT Network Connection)\Bytes Received/Sec' ShowAll MaxWarn=786432000 MaxCrit=943718400
------------------------------------------------------------------
Reviewed few more times and it started to work (strange that Adapter name on the server doe snot match one in the command (on exactly), yet it works.

if I make it name shown in Networks - stops working :-\

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 2:19 pm
by rkennedy
Just to clarify - is this working for you now then over the CLI?

When you have it setup as a check in Nagios, is it returning the proper result?

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 3:22 pm
by dlukinski
rkennedy wrote:Just to clarify - is this working for you now then over the CLI?

When you have it setup as a check in Nagios, is it returning the proper result?
Yes it does (only that NIC name does not exactly match one on the server)

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 3:46 pm
by rkennedy
This would be because of how Counter's work, not too sure exactly why they're not lining up though.

Can you show us what the NIC is called on your Windows machine?

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 3:50 pm
by dlukinski
rkennedy wrote:This would be because of how Counter's work, not too sure exactly why they're not lining up though.

Can you show us what the NIC is called on your Windows machine?
Here it is (attached)

This one would work, but our other common NICs would be Broadband once (so wondering how to work around naming in future or where to check for it (WMI?)

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 3:56 pm
by rkennedy
It looks like the Network Connections screen is blanked out, can you upload the screenshot again?

Can you also run this from command prompt, and post the output?

Code: Select all

netsh interface show interface

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 4:02 pm
by dlukinski
rkennedy wrote:It looks like the Network Connections screen is blanked out, can you upload the screenshot again?

Can you also run this from command prompt, and post the output?

Code: Select all

netsh interface show interface
Here it is (sorry)

Re: NRPE Failed to poll counter: PdhCollectQueryData

Posted: Thu Apr 07, 2016 4:19 pm
by rkennedy
It looks to be lining up fine, (Network Interface(Intel(R) PRO/1000 MT Network Connection)) - I'm failing to see what isn't correlating as it should. Could you provide more information?