Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup Nagios and nsclient++ on a number of my Windows servers. They are all in the same subnet so no routing or firewall stuff is taking place in between the endpoints, and I have verified that the firewalls on the servers are not causing trouble. The problem is that the scheduled checks sometimes fail with "connection refused" and sometimes work! It is a frustrating problem to resolve because I do not know what to look for.

One place I did look is in the nsclient++ logs, where I am seeing this recurring error:

...\trunk\modules\CheckSystem\PDHCollector.cpp:148: Failed to query performance counters: \238...

This sounds promising, but I couldn't find much on Google about this error as it pertains to NSClient++

share|improve this question
For better response, try posting on the Nagios board. – mdpc Oct 23 '12 at 20:47
@mdpc, thanks for the advice - what Nagios board are you referring to? – tacos_tacos_tacos Oct 23 '12 at 20:47
I might try first. – mdpc Oct 23 '12 at 20:50
have you checked if the nagios server is having timeouts on pings, are other service checks not based on nsclient like snmp or others causing problems? – user142760 Oct 25 '12 at 18:34
up vote 0 down vote accepted

Do you get any response from your windows server if you run this command on your nagios server?

./check_nrpe -H <nsclient++ server ip>

You should also check if your nagios server is in the allowed host under Settings.

allowed_hosts=[ nagios server ip]

This config file should be found under your installation file on your windows server named nsc.ini

If you need further help, read up the NSClient wiki found here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.