• 0
Sign in to follow this  
Mark DeLong

Alert Message Manipulation


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:











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!


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this