免费注册 查看新帖 |

Chinaunix

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

[其他] nagios不会自动轮询 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-01 12:03 |只看该作者 |倒序浏览
最近在搭建nagios监控,我的服务监控不会自动轮询(service的last check不会改变),host 的last check会刷新、
我的相关配置文件如下,麻烦高手指点下,谢谢
192.168.1.45.cfg 文件
define host{
        use     linux-server
        host_name       xxxx
        alias           xxxx
        address         192.168.1.45
}
define service{
        use     generic-service
        host_name       xxxx
        service_description     check_1
        check_command           check_nrpe!check_1
        max_check_attempts 2
        normal_check_interval 3
}

templates.cfg文件
define service{
        name                            generic-service         
        active_checks_enabled           1                     
        passive_checks_enabled          1                     
        parallelize_check               1                     
        obsess_over_service             1                 
        check_freshness                 0                     
        notifications_enabled           1                 
        event_handler_enabled           1                  
        flap_detection_enabled          1                  
        failure_prediction_enabled      1               
        process_perf_data               1                 
        retain_status_information       1               
        retain_nonstatus_information    1        
        is_volatile                     0                  
        check_period                    24x7           
        max_check_attempts              2              
        normal_check_interval           3                 
        retry_check_interval            1            
        contact_groups                  admins      
        notification_options            w,u,c,r     
        notification_interval           60               
        notification_period             24x7      
         register                        0                  
        }

timeperiods.cfg文件
define timeperiod{
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP