Nagios报错NRPE: Command 'check_heartbeat' not defined


最近在做heartbeat监控的时候,在nagios服务器端报警提示:NRPE: Command 'check_heartbeat' not defined

但是在nagios客户端/usr/local/nagios/libexec/check_nrpe -H 192.168.3.211 -c check_heartbeat都能够正常执行,查了很多资料主要有以下几种情况:

1.nagios客户端nrpe.cfg配置文件命令写错

2.nagios客户端libexec下没有此命令

我的都不是上述两种情况,查看/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检查端口并没有启动,但是ps -ef |grep nrpe是有的,于是重启了nrpe

service xinetd restart

ok,这下nagios能够正常监控了。

网络监控器Nagios全攻略

Nagios搭建与配置详解

Nginx环境下构建Nagios监控平台

在RHEL5.3上配置基本的Nagios系统(使用Nagios-3.1.2)

CentOS 5.5+Nginx+Nagios监控端和被控端安装配置指南

Ubuntu 13.10 Server 安装 Nagios Core 网络监控运用

Nagios 的详细介绍:请点这里
Nagios 的下载地址:请点这里

本文永久更新链接地址:

相关内容