The following example is a custom MIB developed for an action alert sent as an SNMP trap with the Custom Trap ID ending in 33. The custom trap ID was 1.3.6.1.4.1.791.9845.3.33. The selected query was Average CPU Load Trend and the fields selected to be sent in the SNMP trap are event_datetime, and event_trend.
CAELM-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, Integer32, NOTIFICATION-TYPE FROM SNMPv2-SMI MODULE-COMPLIANCE, OBJECT-GROUP,NOTIFICATION-GROUP FROM SNMPv2-CONF DisplayString FROM SNMPv2-TC; elm MODULE-IDENTITY LAST-UPDATED "200907050600Z" ORGANIZATION "CA" CONTACT-INFO "100 Staples drive Framingham MA" DESCRIPTION "Contains objects describing data for ELM events" REVISION "200907050600Z" DESCRIPTION "Custom MIB 33." ::= { ca 9845 } ca OBJECT IDENTIFIER ::= { enterprises 791} elmAlertTrapGroup OBJECT IDENTIFIER ::= { elm 3 } elmAlertVariables OBJECT IDENTIFIER ::= { elm 2 } elmDynamicVariables OBJECT IDENTIFIER ::= { elm 4 } elmConformance OBJECT IDENTIFIER ::= { elm 5 } elmGroups OBJECT IDENTIFIER ::= { elmConformance 1 } elmCompliances OBJECT IDENTIFIER ::= { elmConformance 2 } event-datetime OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "The calendar date and time expressed in the event information" ::= { elmAlertVariables 65 } event-trend OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "Trending data for this event." ::= { elmAlertVariables 74 } calmAPIURL OBJECT-TYPE SYNTAX OCTET STRING MAX-ACCESS read-only STATUS current DESCRIPTION "The OPEN API URL which points to the query result." ::= { elmDynamicVariables 1 } elmTrap NOTIFICATION-TYPE OBJECTS { event-datetime,event-trend } STATUS current DESCRIPTION "The ELM SNMP Trap." ::= { elmAlertTrapGroup 33 } elmCompliance MODULE-COMPLIANCE STATUS current DESCRIPTION "The compliance information." MODULE -- this module GROUP elmDataGroup DESCRIPTION "This group is mandatory." ::= { elmCompliances 3 } -- units of conformance elmDataGroup OBJECT-GROUP OBJECTS { event-datetime,event-trend } STATUS current DESCRIPTION "A collection of objects providing information specific to ELM data." ::= { elmGroups 1 } END
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |