Nagios系统监控指标扩展

参考文档:

1. 修改:/usr/local/nagios/etc/nagios.cfg 增加(后面的文件):
     cfg_file=/usr/local/nagios/etc/objects/service.cfg
2. nsca 的log: /var/log/messages

配置文件对象之间的关系(与具体在那个文件中没有关系):
service --use--> Other Service --defined in --> template.cfg (define Services)
   :host_name --use--> Other Host --defined in --> Host defines(template or other config file)
   :check_command  --command_name --> command_line --OF--> Command defines
The orignal Service does not use others but have many attributes which canbe modified by its's son.

define service{  
 use generic-service
 name passive_service
 active_checks_enabled 0
 passive_checks_enabled 1 # We want only passive checking
 flap_detection_enabled 0
 register 0 # This is a template, not a real service
 is_volatile 0
 check_period 24x7
 max_check_attempts 1
 normal_check_interval 5
 retry_check_interval 1
 check_freshness 1
 contact_groups admins
 check_command check_dummy!0
 notification_interval 120
 notification_period 24x7
 notification_options w,u,c,r
 stalking_options w,c,u
 }
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值