• 0

Can I format alert message from a SNMP trap?


JaM
 Share

Question

We're trying to setup an alert from a SNMP trap.  The alert will send SMS and Voice Call.  You can imagine how it sounds to get a voice call with all the unformatted output below.

The ##VALUE## of the output is as follows:

1.3.6.1.4.1.1214.1.10: Schedule 1.3.6.1.4.1.1214.1.11: sysops 1.3.6.1.4.1.1214.1.12: ENAW-TID 1.3.6.1.4.1.1214.1.13: ENAW-ETL03P 1.3.6.1.4.1.1214.1.3: 1 1.3.6.1.4.1.1214.1.4: 1 1.3.6.1.4.1.1214.1.5: Critical Alert 04-01-2021 ETL03p SNMP TEST Job #2 The system cannot find the path specified. 1.3.6.1.4.1.1214.1.6: 2195603 1.3.6.1.4.1.1214.1.7: ETL03p SNMP TEST Job #2 1.3.6.1.4.1.1214.1.8: 11 1.3.6.1.4.1.1214.1.9: 3 enterpriseOid: 1.3.6.1.4.1.1214 generalCode: 6 snmpVersion: v1 specificCode: 1 sysUpTime: 1511109 trapVariableBindingCount: 11

 

Would there be a way to format the ##VALUE## or use a different token so that the alert only shows information under trap OID 1.3.6.1.4.1.1214.1.5?  So the value would look more like "Critical Alert 04-01-2021 ETL03p SNMP TEST Job #2 The system cannot find the path specified"

Hope yall can help, thanks for your time!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

What you want is a dynamic template processor, but all we have is simple token substitution and no indication that will ever change (I have asked repeatedly for years).  You can route alerts to an external integration, which is how we handle transformation of tokens, but you lose some stuff when you do that depending on how you integrate.  For example, we use external email integration into our ticket system with a filter that handles the transformation, but custom email integrations do not get the same handling as builtin email for certain things (e.g., you do not get ACK or SDT notices).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share