We get traps from our CRAC units and UPS's and then send emails out to various people when they are triggered.
Here is an example of a UPS trap:
snmpTrapEnterprise = LIEBERT-GP-REGISTRATION-MIB:lgpNotifications
experimental.1057.1 = xx.xxx.xx.xxx
lgpConditionTime.237 = 208 days 19 hours 41 minutes 36.48 seconds
lgpConditionDescr.237 = LIEBERT-GP-CONDITIONS-MIB:lgpConditionActiveModuleAlarm
lgpConditionId.237 = 237
snmpTrapOID = LIEBERT-GP-NOTIFICATIONS-MIB:lgpEventNotifications.0.1
sysUpTime = 208 days 19 hours 41 minutes 36.50 seconds
The alert condition that triggers an email is when snmpTrapOID is equal to LIEBERT-GP-NOTIFICATIONS-MIB:lgpEventNotifications.0.1 and the email that goes out contains the entire trap via the ${Message} variable. I would like to replace that with just the value that comes after
lgpConditionDescr.237 =
However, the .237 is not always .237 but seems to increment.
Currently my alert email setup looks like this:
Subject: SCCA (A Side UPS) Problem
Body:
${DateTime}
${Message}
So my question is - can I replace ${Message} with ${lgpConditionDescr} ?
I can try it and wait for a trap to get triggered, but thought maybe someone could answer before then as it may be weeks before we see one of these alerts again.