低调做人,高调做事!
分类: LINUX
2008-03-13 23:49:36
一般这种问题出现在操作系统版本不一致,或者不同种类的操作系统,在做snmp服务监控时,大家尽量选取相同的snmp服务版本!!!
The net-snmp in Red Hat Enterprise Linux 4.5 generates the following messages. This causes flooding of /var/log/messages.
Dec 2 14:05:08 host34 snmpd[14612]: Connection from - 127.0.0.1 Dec 2 14:05:08 host34 snmpd[14612]: transport socket = 12 Dec 2 14:05:08 host34 snmpd[14612]: Connection from - 127.0.0.1 Dec 2 14:05:08 host34 snmpd[14612]: transport socket = 12
To solve this issue, add the following options to the file /etc/sysconfig/snmpd.options:
OPTIONS="-LS 5 d -Lf /dev/null -p /var/run/snmpd.pid -a"
Restart snmpd service. Test with an snmp query, For example, the following will test this:
snmpwalk -v 1 -c public localhost
There should not be excessive logging of snmpd in /var/log/messages from this command.