检查启动情况na|grep 161
测试, 命令列出[root@localhost snmp]# /usr/local/nagios/libexec/check_traffic.sh -V 2c -C public -H 127.0.0.1 -L
Interface indexInterface index 3 orresponding to sit0
可以测试是否能够正常采集到数据OK - The Traffic In is 0.0Mbps, Out is 0.0Mbps, Total is 0.0Mbps. The Check Interval is 31s |In=0.0Mbps;12;15;0;0 Out=0.0Mbps;30;35;0;0 Total=0.0Mbps;42;50;0;0 Interval=31s;1200;1800;0;0
注: -I 参数对应上面”-help”或者看上面论坛石头描述command
修改define command{
}
修改############监控流量 use local-service,services-pnp ; Name of service template to use
check_command check_traffic!2!12,30!15,35
nagios,Service snmpd restart