码迷,mamicode.com
首页 > 移动开发 > 详细

nagios监控keepalived

时间:2014-07-17 08:07:52      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:监控   keepalive   nagios   

在客户端上配置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 不等于紧急

在服务端添加监控服务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

nagios监控keepalived

标签:监控   keepalive   nagios   

原文地址:http://xieping.blog.51cto.com/3715452/1439057

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!