NRPE Failed to poll counter: PdhCollectQueryData
NRPE Failed to poll counter: PdhCollectQueryData
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
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
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?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.
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=943718400Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE Failed to poll counter: PdhCollectQueryData
------------------------------------------------------------------lmiltchev wrote: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?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.
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
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?
When you have it setup as a check in Nagios, is it returning the proper result?
Former Nagios Employee
Re: NRPE Failed to poll counter: PdhCollectQueryData
Yes it does (only that NIC name does not exactly match one on the server)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?
Re: NRPE Failed to poll counter: PdhCollectQueryData
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?
Can you show us what the NIC is called on your Windows machine?
Former Nagios Employee
Re: NRPE Failed to poll counter: PdhCollectQueryData
Here it is (attached)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?
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.
Re: NRPE Failed to poll counter: PdhCollectQueryData
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?
Can you also run this from command prompt, and post the output?
Code: Select all
netsh interface show interface
Former Nagios Employee
Re: NRPE Failed to poll counter: PdhCollectQueryData
Here it is (sorry)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
You do not have the required permissions to view the files attached to this post.
Re: NRPE Failed to poll counter: PdhCollectQueryData
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