[RHEL4] snmpd crashes while reading a config file
Issue
- The customer uses snmpd command with the following options.
# /usr/sbin/snmpd -C -c /etc/opt/ft/snmp/snmpd.conf -Lf /var/opt/ft/log/snmpd.log -p /var/run/snmpd/snmpd.pid - If the configuration file includes a notificationEvent line,
snmpd crashes while reading a config file by segmentation fault.[/etc/opt/ft/snmp/snmpd.conf]
com2sec mynetwork 172.26.70.50 m0n9zsnw
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
view view_all included .1
access MyROGroup "" any noauth exact view_all none none
trapcommunity m0n9zsnw
trap2sink 172.26.70.50 m0n9zsnw
createUser _internaluser MD5 "internalpass"
rouser _internaluser
notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus ifOperStatus
notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus ifOperStatus
monitor -r 60 -e linkUpTrap -u _internaluser "Generate linkUp" ifOperStatus != 2
monitor -r 60 -e linkDownTrap -u _internaluser "Generate linkDown" ifOperStatus == 2 - This message is written to /var/log/messages.
Apr 28 01:30:51 ttktnfv1 kernel: snmpd[18257]: segfault at 0000000000000003 rip 0000000000000003 rsp 0000007fbfffe650 error 14
Environment
- Red Hat Enterprise Linux 4.7 x86_64
- kernel-2.6.9-78.0.1.ELsmp
- net-snmp-5.1.2-13.el4 / net-snmp-5.1.2-18.el4_8.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
