1

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++

tacos_tacos_tacos
  • 3,220
  • 16
  • 58
  • 97

1 Answers1

0

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.

[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

quanta
  • 50,327
  • 19
  • 152
  • 213
Anonymous
  • 74
  • 6