Skip to content
Advertisement

Nagios – Connection refused & Socket timeout

I need to monitor windows services(like CPU load, memory usage etc.), so I have installed Nagios monitoring tool. The installation is complete and ‘check_nt’ plugin is also installed. Upto this no error is there, but while executing scripts with agent NSClient++ ‘Connection refused by host’ error still persists.

JavaScript

I have verified that nagios is working correctly, as under.

JavaScript

M new to nagios, thanks in advance 🙂

Advertisement

Answer

The connection is getting blocked either by a firewall or your Nagios server is not in the nsc.ini file in the “allowed hosts” field. Make sure that port is open on your windows firewall, as well as any other net filters in between your Nagios server and your client.

Advertisement