免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 769 | 回复: 0
打印 上一主题 下一主题

nagios 配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-26 13:55 |只看该作者 |倒序浏览
1.定义主机
  define host{
        host_name     主机名
        alias         主机名               
        use           系统类型      
        address       需要监控服务器的IP地址              
        }
2.定义主机组名
        define hostgroup{
        hostgroup_name          组名
        members                 成员中间用逗号分开              
                        }
3.定义联系人
            
            define contact{
        contact_name                    联系对像名
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-service-by-email (命令)
        host_notification_commands      notify-host-by-email (命令)
        email                           发送的邮件地址
        pager                           短信号码
        }
4.定需要监控的服务
define service{
        hostgroup_name          组名
        service_description     check-ssh
        check_command           check_ssh
        max_check_attempts      3
        normal_check_interval   10
        retry_check_interval    2
        check_period            24x7
        notification_interval   10
        notification_period     24x7
        notification_options    w,u,c,r
        contact_groups          告警对象
        }
define service{
        hostgroup_name          服务器组名
        service_description     PING
        check_command           check_ping!100.0,20%!500.0,60%!5
        max_check_attempts      3
        normal_check_interval   10
        retry_check_interval    2
        check_period            24x7  
        notification_interval   10
        notification_period     24x7
        notification_options    w,u,c,r
        contact_groups          告警对象
        }

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/65976/showart_1945247.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP