Page 1 of 1

receive traps from Oracle Enterprise Manager

Posted: Mon Dec 14, 2015 6:43 pm
by tnightingale
I would like to set up SNMP trap retrieval from Oracle Enterprise Manager (EM).

EM has a MIB file that I have successfully imported. But not sure what to do next since the SNMP trap wizard is host oriented and the host has to already exist.

EM can and is monitoring our entire Oracle infrastructure (Axiom SAN, Solaris servers and OSs, Oracle databases). Would like to forward all the traps to nagiosxi as so nagiosxi can fxn essentially as an aggregator in this case that then passes on to our paging system..

Is this possible?

Re: receive traps from Oracle Enterprise Manager

Posted: Mon Dec 14, 2015 7:20 pm
by Box293
tnightingale wrote:EM has a MIB file that I have successfully imported. But not sure what to do next since the SNMP trap wizard is host oriented and the host has to already exist.
That can be changed.

Here's an example from /etc/snmp/snmptt.conf

Code: Select all

EVENT TestTrap .1.3.6.1.4.1.318.0.998 "Status Events" INFORMATIONAL
FORMAT APC UPS: This is a Test Trap.
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "APC UPS: This is a Test Trap."
In the EXEC line it's the $r that targets the host in Nagios XI.

If you wanted all traps for this OID to go to server 192.168.243.18 then change it to:

Code: Select all

EXEC /usr/local/bin/snmptraphandling.py "192.168.243.18" "SNMP Traps" "$s" "$@" "$-*" "APC UPS: This is a Test Trap."
Its the host object in Nagios that is being targetted, so if it's not an IP Address change it to the object name.

Does this help?

SNMPTT Documentation is very good:
http://snmptt.sourceforge.net/docs/snmp ... ONF-FORMAT