Is there a difference of the specification regarding the traphandle directive between RHEL5 and RHEL6 ?
Issue
- On RHEL5, under the following setting, the specified program (date > /tmp/foo.log) will be invoked whenever the snmptrapd receives a trap with an OID starting with .1.3.6.1.4.1, such as .1.3.6.1.4.1.211.0.0.
/etc/snmp/snmptrapd.conf :-
authCommunity log,execute public
traphandle .1.3.6.1.4.1 date > /tmp/foo.log
-
However, on RHEL6, only a trap with the OID matching .1.3.6.1.4.1 exactly will invoke the specified program under the same setting as the above.
-
The traphandle directive will not work as expected if snmptrapd.conf is replicatred from RHEL5 to RHEL6
Environment
- Red Hat Enterprise Linux 6
- net-snmp-5.5-41.el6
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.
