Nagios reports NRPE: Command 'check _ heartbeat 'not defined
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.
Network Monitor Nagios Overview
Nagios construction and Configuration
Build a Nagios monitoring platform in the Nginx Environment
Configure the basic Nagios System on RHEL5.3 (using Nagios-3.1.2)
CentOS 5.5 + Nginx + Nagios monitoring and control terminal installation and Configuration Guide
Install Nagios Core for Ubuntu 13.10 Server
Nagios details: click here
Nagios: click here
This article permanently updates the link address: