NRPE Failed to poll counter: PdhCollectQueryData

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

NRPE Failed to poll counter: PdhCollectQueryData

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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 :-\
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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?)
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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)
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Failed to poll counter: PdhCollectQueryData

Post 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?
Former Nagios Employee
Locked