sjon:

Something along the following should work for a transform:

_________[Transform Beginning]
import re
match = re.search('threshold of Temp [^:]+: current value ([\d\.]+)', 
evt.message)
if match and device:
    temp_v = float(match.groups()[0]) / 10
    evt.summary = "Temp threshold exceeded: current value %3.1f%%" % (temp_v)
_________[End]

I'm new to python and transforms, so that above code may need 'tweaking'  :D  
Should give you a place to start anyway.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=36962#36962

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to