I dont know python, and this is untested, but here is kind of a mashup of some 
code that has floated about in different threads.  If the code itself does not 
work, the logic should be correct.

Perhaps someone else can post cleaner / more accurate example code?


Code:

mycount = getattr(evt, "OID", None)
if mycount = 'SYNC OK':
 evt.severity = 0
else:
 evt.severity = 4
 






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

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

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



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

Reply via email to