From OpenNMS
Work IN Progress
I use Dell servers and run OMSA on them, sending traps to OpenNMS via net-snmp. The traps are converted to events as defined in the various XML files in the $OPENNMS_HOME/etc/events directory.
I noticed that there were a few traps missing from the files distributed with OpenNMS and wanted to update the configuration. This page documents the process.
Rough Notes
All the Dell MIBs I have are under /opt/dell/srvadmin/etc:
# find /opt/dell/srvadmin/etc -name "*.mib" /opt/dell/srvadmin/etc/srvadmin-isvc/mib/10892.mib /opt/dell/srvadmin/etc/srvadmin-isvc/mib/dcs3fru.mib /opt/dell/srvadmin/etc/srvadmin-storage/dcstorag.mib /opt/dell/srvadmin/etc/srvadmin-idrac/dcs3rmt.mib
OpenNMS Dell event files in $OPENNMS_HOME/etc/events:
# ls Dell* DellArrayManager.events.xml Dell-DRAC2.events.xml Dell.events.xml DellOpenManage.events.xml DellRacHost.events.xml DellStorageManagement.events.xml
Dell.events.xml is actually built from a combination of MIBs. I have broken them out into separate files, named after the MIB used to create them:
MIB-Dell-10892.xml ArrayManager-MIB.xml DELL_ASF-MIB.xml StorageManagement-MIB.xml MIB-Dell-10900.xml DELL-RAC-MIB.xml INTEL-LAN-ADAPTERS-MIB.xml
Re-create MIB-Dell-10892 like this:
mib2opennms -w -6 /opt/dell/srvadmin/etc/srvadmin-isvc/mib/10892.mib > MIB-Dell-10892.xml.new
Fixup the ueis:
perl -pi -e 's{uei.opennms.org/mib2opennms}{uei.opennms.org/vendor/Dell/traps}g' MIB-Dell-10892.xml.001
Severities must be set manually. I have written a script that copies the severities for events already existing in the files distributed with OpenNMS:
cp_event_severity --reference MIB-Dell-10892.xml < MIB-Dell-10892.xml.001 > MIB-Dell-10892.xml.002
Check the new file for severities that are still Indeterminate and assign a suitable value.






