Services/snmp

From popdata
Jump to: navigation, search

Back to Systems

General

SNMPD runs on every linux machine to be queried by Pulse.

HP-based systems make heavy internal use of snmp

Default verbosity fills /etc/daemon.log.

FIX: edit /etc/default/snmpd ; /etc/init.d/snmpd reload

snmpd 5.4.3 on champlain, cook, fraser takes the following command-line option format

# snmpd options (use syslog, close stdin/out/err).                                                                   
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'                                               
# "-LS 4 d" means syslog to daemon if verbosity 4 or lower                                                           
SNMPDOPTS='-LS 4 d -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'                                             

snmpd 5.4.1 on cartier & cabot takes the following:

SNMPDOPTS='-Ls d 4  -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

Unfortunately those options also cause SNMP queries to fail, so Jim reverted the change 2012-02-15

Cook

2012-02-15 DL added "-LS 4 d"; previously had huge number of messages like:

Feb 13 16:54:21 cook snmpd[24824]: Connection from UDP: [127.0.0.1]:37948->[127.0.0.1]
Feb 13 16:54:22 cook snmpd[24824]: Connection from UDP: [127.0.0.1]:37948->[127.0.0.1]
[...]
Feb 13 16:59:12 cook snmpd[25154]: Connection from UDP: [10.80.90.10]:55424->[10.80.20.100]
Feb 13 16:59:12 cook snmpd[25154]: Connection from UDP: [10.80.90.10]:55424->[10.80.20.100]

After change, ignore errors like:

  • "snmpd[23012]: cmaX: bind() failed: Address already in use (errno=98)" (last message before shutdown)
  • "/etc/snmp/snmpd.conf: line 99: Error: bad SUBTREE object id"
  • "snmpd[23410]: duplicate registration (CompaqInsight, CompaqInsight)"

Champlain

has no SNMP messages in /var/log/daemon, despite "-Lsd" , because it is not an HP server.

Other servers afflicted

root@cabot:/home/logs/2012-02-15# find * -name daemon\* -exec grep -c snmpd \{} /dev/null \; | grep -v ':0$'
cabot/daemon:5804
cartier/daemon:3603
cook/daemon:15252
ericsson/daemon:2686
fraser/daemon:40561
frobisher/daemon:2