Goal: Only trip an event alarm between the hours of 6pm to 6am. What is the best way to do this?
Here is one way that doesn't work: How can I manipulate evt.stateChange property in an Event Class Instance Rule Field? I need to convert the time long (epoch) value to localtime for comparing hour strings. EventClassInst Rule: Code: getattr(evt, 'Field', 0) == "Value" and time.localtime(getattr(evt, 'stateChange', 0))[2] >= "18" or time.localtime(getattr(evt, 'stateChange', 0))[2] <= "6" Of course - the time module is not imported. Thanks! -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=10007#10007 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
