nagios 监控流量插件check_traffic
2013-04-25 10:25
846 查看
一,安装所需软件net-snmp net-snmp-utils net-snmp-libs net-snmp-devel
yum install net-snmp net-snmp-utils net-snmp-libs net-snmp-devel
二,修复snmp配置:
vim /etc/snmp/snmp.conf 修改为:
# sec.name source community
#com2sec notConfigUser default public
com2sec notConfigUser localhost public
access notConfigGroup "" any noauth exact mib2 none none
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
三,启动snmp服务:
service snmpd start
四,设置开启启动:
chkconfig snmpd on
五,上传插件到/usr/local/nagios/libexec (插件在附件中)
六,配置
测试check_traffic 脚本:
cd /usr/local/nagios/libexec
./check_traffic -V 2c -C nagios -H localhost –L命令列出网络接口
cd /usr/local/nagios/etc
vim nrpe.cfg #添加
command[check_traffic]=/usr/local/nagios/libexec/check_traffic -V 2c -C public -H localhost -I 2 -w 2200,4000 -c 2500,4500 -K -B
-I 2 指网卡接口(就是你要监控的网卡接口)
修改chown nagios:nagios /var/tmp/check_traffic_localhost_2.hist_dat
重启nrpe 服务
七,配置监控服务器:
cd /usr/local/nagios/etc/objects
编辑vim services.cfg中添加:
define service {
use services-pnp
host_name xxx-Server
service_description check-traffic
check_period 24x7
max_check_attempts 4
normal_check_interval 3
retry_check_interval 2
contact_groups sagroup
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!check_traffic
}
八,测试
yum install net-snmp net-snmp-utils net-snmp-libs net-snmp-devel
二,修复snmp配置:
vim /etc/snmp/snmp.conf 修改为:
# sec.name source community
#com2sec notConfigUser default public
com2sec notConfigUser localhost public
access notConfigGroup "" any noauth exact mib2 none none
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
三,启动snmp服务:
service snmpd start
四,设置开启启动:
chkconfig snmpd on
五,上传插件到/usr/local/nagios/libexec (插件在附件中)
六,配置
测试check_traffic 脚本:
cd /usr/local/nagios/libexec
./check_traffic -V 2c -C nagios -H localhost –L命令列出网络接口
cd /usr/local/nagios/etc
vim nrpe.cfg #添加
command[check_traffic]=/usr/local/nagios/libexec/check_traffic -V 2c -C public -H localhost -I 2 -w 2200,4000 -c 2500,4500 -K -B
-I 2 指网卡接口(就是你要监控的网卡接口)
修改chown nagios:nagios /var/tmp/check_traffic_localhost_2.hist_dat
重启nrpe 服务
七,配置监控服务器:
cd /usr/local/nagios/etc/objects
编辑vim services.cfg中添加:
define service {
use services-pnp
host_name xxx-Server
service_description check-traffic
check_period 24x7
max_check_attempts 4
normal_check_interval 3
retry_check_interval 2
contact_groups sagroup
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!check_traffic
}
八,测试
相关文章推荐
- nagios通过check_traffic监控Linux,windows主机网卡流量
- 8.nagios使用check_traffic.sh监控网卡流量(转)
- nagios监控linux网卡流量(check_traffic.sh)
- nagios使用check_traffic.sh监控网卡流量
- nagios监控插件 nagios_oracle_health+check_linux_stats.pl
- 基于nagios的监控环境(四):第三方插件监控流量、CPU、内存、进程
- nagios 监控slave(check_mysql_health插件)
- redhat--nagios插件--check_traffic.sh
- Nagios插件check_traffic.sh问题
- nagios借助check_hpasm插件监控惠普服务器硬件信息(未成)
- Nagios监控内存插件check_mem
- Nagios利用check_dell_openmanage插件监控dell服务器
- Nagios监控内存插件check_mem配置
- nagios 监控内存-增加新插件方法 check_mem
- check_centreon_snmp_traffic插件监控Linux虚拟机网卡的bug修订方法
- Nagios 监控系列学习 ―― check_snmp_int.pl 监控交换机端口状态和流量
- nagios监控流量大小的插件
- nagios 监控mysql(check_mysql_health插件)
- MongoDB nagios check_mongodb插件监控
- nagios(icinga)借助check_hp插件监控惠普服务器硬件信息