• 0
Sign in to follow this  
Mark DeLong

Alert Message Manipulation

Question

So we have an SNMP OID for Cisco ASA's for failover that returns status numbers between 1 and 10. I would like my alert message to reflect the status codes description rather than number. Here is a list of the numbers and there descriptive names:

1:other

2:up

3:down

4:error

5:overTemp

6:busy

7:noMedia

8:backup

9:active

10:standby

So when the alert is sent (on any change) we want the message to say something like: "The primary ASA firewall has changed failover status to ##VALUE##". But instead of the value being the number returned like "10" we want it to say "STANDBY" or the description of the value above.

I made a groovy script that would take the snmp values and change them to the words returned. But I'm not sure the alert (based on delta|>0) will do anything with the text as it is non-numerical.

Also, I wouldn't be surprised if there was much better way to do this.

Any ideas? Obviously, we can include a legend/key in the alert message to explain the codes but we would rather not do this unless we have to.

Thanks for you help!

Mark

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

Sign in to follow this