设为首页 加入收藏

TOP

Nagios监控mongodb分片集群服务实战(二)
2014-11-24 00:33:34 来源: 作者: 【 】 浏览:15
Tags:Nagios 监控 mongodb 分片 集群 服务 实战
d!27017!20!28 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } #检查Lock Time的百分率,如果lock time占据mongo运行时间的5%就普通报警,如果超过10%就严重报警 define service{ host_name dbm1slave1 service_description Mongo Lock Percentage check_command check_mongodb!lock!27017!5!10 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } # Check Average Flush Time,检查mongo服务器的平均flush时间, define service{ host_name dbm1slave1 service_description Mongo Flush Average check_command check_mongodb!flushing!27017!100!200 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } # Check Last Flush Time,检查最新的flush时间,如果超过200ms就普通报警,超过400ms就严重报警 define service{ host_name dbm1slave1 service_description Mongo Last Flush Time check_command check_mongodb!last_flush_time!27017!200!400 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } # Check status of mongodb replicaset,检查mongo复制的状态 define service{ host_name dbm1slave1 service_description MongoDB state check_command check_mongodb!replset_state!27017!0!0 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } # Check status of index miss ratio,检查索引命中率, define service{ host_name dbm1slave1 service_description MongoDB Index Miss Ratio check_command check_mongodb!index_miss_ratio!27017!.005!.01 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } # Check number of databases and number of collections define service{ host_name dbm1slave1 service_description MongoDB Number of databases check_command check_mongodb!databases!27017!300!500 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } define service{ host_name dbm1slave1 service_description MongoDB Number of collections check_command check_mongodb!collections!27017!300!500 max_check_attempts 5 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r contact_groups ops } # Check size of a database,检查库的大小 define service{ host_name dbm1slave1 service_description MongoDB Database size your-database check_command check_mongodb_database!database_size!27017!300!500!your-database max_check_attempts 5 normal_check_interval 3 retry_check_inter
首页 上一页 1 2 3 4 下一页 尾页 2/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Chapter2UserAuthentication,Auth.. 下一篇Chapter2UserAuthentication,Auth..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: