TECHZEN Zenoss User Community ARCHIVE  

Event transform - change severity based on message text

Subject: Event transform - change severity based on message text
Author: Mark H
Posted: 2015-01-20 07:11

Hi,

I'd like to change the severity of an event based on text it finds within an event's message. I get a lot of events from another system and they are all categorised as INFO - within the event text is the correct severity that I need it transformed to.

I know I need to place a small script in the Event Class transform box. I don't know how to write the script.

The event severities will be HIGH, MEDIUM, LOW and I need them transformed to severity levels 5,3,2 respectively.

Any help hugely appreciated :)




Subject: Hello,
Author: [Not Specified]
Posted: 2015-01-20 07:24

Hello,

You can use next litle transform code in event class:

if '' in evt.summary:
evt.severity = 5

Don't forget spaces! :)



< Previous
Small measured values are stored in RRD rounded to 0.0
  Next
Zenoss Web GUI Performance
>