Jan 9 11:54:08 i snmpd[2193]: Connection from UDP: [60.195.249.83]:37412
Jan 9 11:54:08 i snmpd[2193]: Received SNMP packet(s) from UDP: [60.195.249.83]:37412
Jan 9 11:54:08 i snmpd[2193]: Connection from UDP: [60.195.249.83]:18749
Jan 9 11:54:09 i snmpd[2193]: Connection from UDP: [60.195.249.83]:37412
Jan 9 11:54:09 i snmpd[2193]: Connection from UDP: [60.195.249.83]:18749
Jan 9 11:54:09 i snmpd[2193]: Connection from UDP: [60.195.249.83]:51089
Jan 9 11:54:09 i snmpd[2193]: Received SNMP packet(s) from UDP: [60.195.249.83]:51089
Jan 9 11:54:09 i snmpd[2193]: Connection from UDP: [60.195.249.83]:18749
Jan 9 11:54:09 i snmpd[2193]: Connection from UDP: [60.195.249.83]:51089
Jan 9 11:54:09 i snmpd[2193]: Connection from UDP: [60.195.249.83]:18749
無用的信息太多了。
不想看到這些多鏈接信息可以調整一下snmpd的debug級別:
# echo "OPTIONS=\"-LS3d -Lf /dev/null -p /var/run/snmpd.pid\"" >> /etc/sysconfig/snmpd.options
或者直接改啟動腳本
vi /etc/init.d/snmpd
找到這一項
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
改為
OPTIONS="-LS3d -Lf /dev/null -p /var/run/snmpd.pid"
snmpd日志等級的定義:
0 或 ! —- LOG_EMERG
1 或 a —- LOG_ALERT
2 或 c —- LOG_CRIT
3 或 e —- LOG_ERR
4 或 w —- LOG_WARNING
5 或 n —- LOG_NOTICE
6 或 i —- LOG_INFO
7 或 d —- LOG_DEBUG
最後別忘了重啟服務
# service snmpd restart