在客户端上配置nrpe监控keepalived进程
[root@localhost ~]# vim /usr/local/nagios/etc/nrpe.cfg
command[check_keepalived]=/usr/local/nagios/libexec/check_procs -w 2: -c:4 -C keepalived
#command[check_keepalived]=/usr/local/nagios/libexec/check_procs -c 3:3 -C keepalived
注释:第一条为-w <2警告 , -c >4紧急
第二天为-c 不等于3 紧急
在服务端添加监控服务keepalived
[root@localhost ~]# vim /usr/local/nagios/etc/objects/199.cfg
define service{
use linux-service
host_name 199
service_description keepalived
check_command check_nrpe!check_keepalived
notifications_enabled 0
}
重启nagios服务
本文出自 “xieping_linux” 博客,请务必保留此出处http://xieping.blog.51cto.com/3715452/1439057
nagios监控keepalived,布布扣,bubuko.com
原文地址:http://xieping.blog.51cto.com/3715452/1439057