Description of problem: When using the traphandle directive in snmptrapd.conf to execute a script in response to a trap being recieved, the traphandle script is not passed the correct hostname. Instead <UNKNOWN> is passed as hostname for every trap. This appears to be a known issue, which is fixed upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=1638225&group_id=12694&atid=112694 Steps to Reproduce: Sample traphandle script in upstream bug can be used to reproduce - the output file should contain the hostname of the source of a received trap, but instead shows <UNKNOWN>
It has been fixed in Fedora some time ago: https://bugzilla.redhat.com/show_bug.cgi?id=238587
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0376.html