nagios监控keepalived
在客户端上配置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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。