在客户端上配置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服务
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。