Nagios监控HeartBeat

http://www.randombugs.com/linux/howto-monitor-linux-heartbeat-snmp.html
http://wiki.debuntu.org/wiki/Linux_HA_Heartbeat/Monitoring_with_Nagios
check_heartbeat.sh下载http://pan.baidu.com/s/1gdzgHBd
被监控机的nrpe.cfg
command[check_heartbeat]=/usr/local/nagios/libexec/check_heartbeat.sh
监控机增加command
define command{
        command_name    check_heartbeat
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
        }
在services.cfg里面增加
define service{
        use                             generic-service,srv-pnp         ; Name of service template to use
        host_name                       nfs-m-mysql-bbs-190
        service_description             HeartBeat
        check_command                   check_nrpe!check_heartbeat
        }

此条目发表在Nagios分类目录。将固定链接加入收藏夹。