I've installed NRPE and SNMP on some server as I'd like to monitor this server with Nagios.
I have a few checks which are already running properly and I get the output as intended.
Today, I've installed the
check_ifstatus Nagios command in order to monitor the state of the network interfaces cards on one of my
check_ifstatus locally on the server I get the relevant information correctly:
[root@dbr4 nagios]# /usr/lib64/nagios/plugins/check_ifstatus -H localhost OK: host 'localhost', interfaces up: 4, down: 0, dormant: 0, excluded: 0, unused: 0 |up=4,down=0,dormant=0,excluded=0,unused=0 [root@dbr4 nagios]#
but when I run the command from my Nagios server I get the following error:
[root@monitorvm ~]# /usr/lib64/nagios/plugins/check_ifstatus -H amadbr4 CRITICAL: No response from remote host 'dbr4' for 22.214.171.124.126.96.36.199.1.8 with snmp version 1 [root@monitorvm ~]#
Does it mean I have to enable snmp on the server I want to check? Is there a way to use NRPE in order to run this check? SELINUX is disabled on all machines.