cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How to retrieve the OID of the DCRUM alerts?

antoine_buffoto
Dynatrace Helper
Dynatrace Helper

Hi,

This thread explains how to retrieve the OID of the SNMP alerts. This information can be useful for tools integrating the SNMP alerts.

The solution will use the tool "snmptranslate" presents in the OS of an AMD probe.

1. The first step is to retrieve the MIB definition located in the CAS server:
-<CAS ROOT>\mibs\alarms.mib

2. Then, with the AMD probe (local VM or machine in a customer platform), you can translate it:
-copy "alarms.mib" into the AMD
-launch the following command : "snmptranslate -Tz -m alarms.mib > OID.txt"

You will get the file "OID.txt" containing the OID of every alarms and every alarm items.

Example of output for the alarm "MetricAlm10007":
_______________________________________________________________________
"anonymous#277" "1.3.6.1.4.1.3279.1.1.8.1.359"
"trapMetricAlm10007000000000000000000000359Item1" "1.3.6.1.4.1.3279.1.1.8.1.359.1"
"trapMetricAlm10007000000000000000000000359Item2" "1.3.6.1.4.1.3279.1.1.8.1.359.2"
"trapMetricAlm10007000000000000000000000359Item3" "1.3.6.1.4.1.3279.1.1.8.1.359.3"
"trapMetricAlm10007000000000000000000000359Item4" "1.3.6.1.4.1.3279.1.1.8.1.359.4"
"trapMetricAlm10007000000000000000000000359Item5" "1.3.6.1.4.1.3279.1.1.8.1.359.5"
"trapMetricAlm10007000000000000000000000359Item6" "1.3.6.1.4.1.3279.1.1.8.1.359.6"
"trapMetricAlm10007000000000000000000000359Item7" "1.3.6.1.4.1.3279.1.1.8.1.359.7"
"trapMetricAlm10007000000000000000000000359Item8" "1.3.6.1.4.1.3279.1.1.8.1.359.8"
"trapMetricAlm10007000000000000000000000359Item9" "1.3.6.1.4.1.3279.1.1.8.1.359.9"
"trapMetricAlm10007000000000000000000000359Item10" "1.3.6.1.4.1.3279.1.1.8.1.359.10"
"trapMetricAlm10007000000000000000000000359Item11" "1.3.6.1.4.1.3279.1.1.8.1.359.11"
"trapMetricAlm10007000000000000000000000359Item12" "1.3.6.1.4.1.3279.1.1.8.1.359.12"
"trapMetricAlm10007000000000000000000000359Item13" "1.3.6.1.4.1.3279.1.1.8.1.359.13"
"trapMetricAlm10007000000000000000000000359Item14" "1.3.6.1.4.1.3279.1.1.8.1.359.14"
"trapMetricAlm10007000000000000000000000359Item15" "1.3.6.1.4.1.3279.1.1.8.1.359.15"
"trapMetricAlm10007000000000000000000000359Item16" "1.3.6.1.4.1.3279.1.1.8.1.359.16"
"trapMetricAlm10007000000000000000000000359Item17" "1.3.6.1.4.1.3279.1.1.8.1.359.17"
"trapMetricAlm10007000000000000000000000359Item18" "1.3.6.1.4.1.3279.1.1.8.1.359.18"
"trapMetricAlm10007000000000000000000000359Item19" "1.3.6.1.4.1.3279.1.1.8.1.359.19"
"trapMetricAlm10007000000000000000000000359Item20" "1.3.6.1.4.1.3279.1.1.8.1.359.20"
"trapMetricAlm10007000000000000000000000359Item21" "1.3.6.1.4.1.3279.1.1.8.1.359.21"
"trapMetricAlm10007000000000000000000000359Item22" "1.3.6.1.4.1.3279.1.1.8.1.359.22"
________________________________________________________________________

The global OID for the alarm is "1.3.6.1.4.1.3279.1.1.8.1.359"

So now you will be able to retrieve all OID for all alarms (OOTB or customized).

Antoine

5 REPLIES 5

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro

Thank you!

vanessa_snipe
Participant

I don't see this section for 12.4.14 in the MIB export. Where would I find the OID now?

Hello Vanessa,

Each trap has an associated trap definition, identified by an OID, in the MIB in the alarms.mib file. This MIB can be imported on the trap recipient to correctly interpret the meaning of the alert and automate any corrective actions. To save the alarms.mib file reflecting all the user-defined alerts, log on to RUM Console, click Alerts in the main menu, switch to Devices tab and select the device. Click the Save MIB button to download the alarms.mib file for the highlighted device to a convenient location on your desktop. Refer to your network management platform manual for information on how to install third-party MIBs.

Regards,

Babar

With the trap system we are using when we import the MIB it overwrites all previous versions of traps that we had. we've had to trigger the alert to trap and then add (as they monitored the trap). But it seems the OID has changed. I wanted to know if the OID is still visible in the MIB's as it was when this article was originally written. Because I am not seeing any such number.

vanessa_snipe
Participant

In 12.4.14 within the MIB at the top:

Cpwr-CVAM-MIB DEFINITIONS ::= BEGIN

IMPORTS
enterprises
FROM SNMPv2-SMI
IpAddress
FROM RFC1155-SMI
OBJECT-TYPE
FROM RFC-1234
TRAP-TYPE
FROM RFC-1234;


adlex OBJECT IDENTIFIER ::= { enterprises 1234 }
mgmnt OBJECT IDENTIFIER ::= { adlex 1 }
net OBJECT IDENTIFIER ::= { mgmnt 1 }
agent OBJECT IDENTIFIER ::= { net 123456789}
alarms OBJECT IDENTIFIER ::= { agent 1 }
trapComponents OBJECT IDENTIFIER ::= { alarms 1 }
traps OBJECT IDENTIFIER ::= { alarms 2 }