hadoop监控之Ganglia、Nagios的一些总结

一、

关键资料引用:

1、http://www.ibm.com/developerworks/linux/library/l-ganglia-nagios-2/index.html  旧版本安装以及配置

2、http://www.centoscn.com/CentosServer/log/2013/0820/1420.html   ganglia安装

3、http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html   nagios的各种object的定义


二、nagios一些关键词   Service

设置nagios的关键是编辑 /usr/local/nagios/etc 中的 .cfg 文件,其风格为面向对象编程风格,可以在其新建 .cfg文件,为了让nagios可知,

需要在nagios.cfg 里申明cfg_file="" 或者 cfg_dir=""。具体对象定义参看上面引用3,其最核心元素是service对象

define service{
  host_name host_name
 hostgroup_namehostgroup_name
  service_description service_description
 display_namedisplay_name
 servicegroupsservicegroup_names
 is_volatile[0/1]
  check_command command_name
 initial_state[o,w,u,c]
  max_check_attempts #
  check_interval #
  retry_interval #
 active_checks_enabled[0/1]
 passive_checks_enabled[0/1]
  check_period timeperiod_name
 obsess_over_service[0/1]
 check_freshness[0/1]
 freshness_threshold#
 event_handlercommand_name
 event_handler_enabled[0/1]
 low_flap_threshold#
 high_flap_threshold#
 flap_detection_enabled[0/1]
 flap_detection_options[o,w,c,u]
 process_perf_data[0/1]
 retain_status_information[0/1]
 retain_nonstatus_information[0/1]
  notification_interval #
 first_notification_delay#
  notification_period timeperiod_name
 notification_options[w,u,c,r,f,s]
 notifications_enabled[0/1]
  contacts contacts
  contact_groups contact_groups
 stalking_options[o,w,u,c]
 notesnote_string
 notes_urlurl
 action_urlurl
 icon_imageimage_file
 icon_image_altalt_string
  }
所以定义都是围绕上述Service各个属性而言。


三、 实用命令: nagios -v  nagios.cfg (检验nagios.cfg各个定义依赖是否正确)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值