Recently in the heartbeat monitoring, the Nagios server-side alert prompt: Nrpe:command ' check_heartbeat ' not defined
However, the Nagios client/usr/local/nagios/libexec/check_nrpe-h 192.168.3.211-c Check_heartbeat are able to perform normally, and a lot of information is found in the following situations:
1.nagios Client nrpe.cfg configuration file command is incorrectly written
2.nagios client libexec without this command
None of mine is the above two cases, check the/var/log/message reported the following error:
Jan 17:04:41 usvr-210 xinetd[30971]: Bind failed (Address already in use (errno = 98)). Service = Nrpe
Jan 17:04:41 usvr-210 xinetd[30971]: Service Nrpe failed to start and is deactivated.
The lsof-i:5666 check port did not start, but Ps-ef |grep Nrpe was there and restarted Nrpe
Service xinetd Restart
OK, this is where nagios can monitor properly.
Nagios error Nrpe:command ' check_heartbeat ' not defined