nagios与check_multi
来自:网络layout: post
title: “nagios/check_multi”安装插件以 ubuntu14.04 环境为基础的编译配置 nagios培训 git clone git:// /flackem/check_multicd check_multi./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-checkresults_dir=/var/lib/nagios3/spool/checkresults/ --with-plugin_path=/usr/lib/nagios/plugins/make allmake installmake install-confignagios 服务端配置定义被动检测服务#--- 定义要被动检测命令 define command{ command_name check_dummy command_line $USER1$/check_dummy $ARG1$ $ARG2$}#--- 定义要监控的主机服务 host1define service { service_description system_disk host_name host1 passive_checks_enabled1 active_checks_enabled 0 check_command check_dummy!0 "passive check" use generic-service}define service { service_description system_load host_name host1 passive_checks_enabled1 active_checks_enabled 0 check_command check_dummy!0 "passive check" use generic-service}define service { service_description system_swap host_name host1 passive_checks_enabled1 active_checks_enabled 0 check_command check_dummy!0 "passive check" use generic-service}define service { service_description proc_rsyslogd host_name host1 passive_checks_enabled1 active_checks_enabled 0 check_command check_dummy!0 "passive check" use generic-service}nagios被监控端配置feed_passive.cmd nagios实施 #--- feed_passive command file command [ system_disk] = /usr/lib/nagios/plugins/check_disk-w 5% -c 2% -p /command [ system_load] = /usr/lib/nagios/plugins/check_load-w 10,8,6 -c 20,18,16command [ system_swap] = /usr/lib/nagios/plugins/check_swap-w 90 -c 80command [ proc_syslogd ] = /usr/lib/nagios/plugins/check_procs -c 1: -C syslogd#--- avoid redundant statesstate [ WARNING ] = IGNOREstate [ CRITICAL ] = IGNOREstate [ UNKNOWN ] = IGNORE获取检测结果这里的例子是 使用send_multi 发送结果, 关于gearman相关配置参考 mod_gearman 配置
export PATH=$PATH:/usr/lib/nagios/plugins/check_multi -f /etc/check_multi/feed_passive.cmd -r 256 | send_multi --server=10.2.0.119:4730 --encryption=yes key="l@bs&d156405189" --host="passive_1"
监控软件nagios配置开源监控软件nagios安装
想做Nagios, Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流QQ群号 :476809427
页:
[1]