Nagios reports NRPE: Command 'check _ heartbeat 'not defined, nagiosnr2.
Recently, during heartbeat monitoring, the nagios server prompts an alarm: NRPE: Command 'check _ heartbeat 'not defined
However, on the nagios client/usr/local/nagios/libexec/check_nrpe-H 192.168.3.211-c check_heartbeat, all tasks can be executed normally. The following information is displayed:
1. the commands in the configuration file nrpe. cfg of the nagios client are incorrect.
2. The nagios client libexec does not have this command
In none of the above two cases, the following error is reported when viewing/var/log/message:
Jan 29 17:04:41 usvr-210 xinetd [30971]: bind failed (Address already in use (errno = 98). service = nrpe
Jan 29 17:04:41 usvr-210 xinetd [30971]: Service nrpe failed to start and is deactivated.
Lsof-I: 5666 check port is not started, but ps-ef | grep nrpe is available, so nrpe is restarted
Service xinetd restart
OK. Now nagios can monitor it normally.