i am working on nagios and using Nrpe for my remote host now i am trying check_swap plugin
I am getting connection refused error in nagios web browser.
error:Connection refused by host and it is in critical state.
The most obvious thing to check would be to verify NRPE is actually running.
ps -ef |grep nrpe
If it is then run "lsof -p <pid of nrpe>" to see what port it is LISTENing on. The default port is 5666. (You could run lsof -i: 5666 to verify it is running if you didn't change port.)
If it is up and running then issue is likely firewall of some sort.
Check to see if iptables and/or SELinux is running on the Nagios host or the NRPE host.
If SELinux is running I'd suggest you disable it as it hard to configure so that is what most people do.
For iptables you can temporarily turn off iptables. If it works with iptables off then you know iptables is the problem.
Of course it may be a physical firewall/router between your Nagios host and your NRPE host. If so you need to look at opening it up for the port you're using.
|All times are GMT -5. The time now is 10:30 AM.|