Hello everybody, First of all, excuse me for my English but I'm French.
I have a problem with event commands that I defined in Event Manager. I would like to run specific rules when an eventclass appears. Ex : - First rule : my event filter is (eventClass != '/HW/Disk' or eventClass != '/HW/Power' or eventClass != '/Status/OSProcess' or eventClass != '/Status/Snmp') and (severity >= 4) -Second rule : (prodState = 1000) and (eventClass = '/HW/Disk') and (severity >= 4) So, if I understand zenoss rules, when an eventclass = "/HW/Disk" appears, it's my second rules that zenoss chooses. Otherwise, if event class is neither /HW/Power' nor '/Status/OSProcess' nor '/Status/Snmp', then it 's my first rules that zenoss chooses. However, this situation doesn't work because when an eventclass equal to /HW/Disk', it's the first rule that zenoss chooses. So, I solve my problem thanks to zope interface (/zport/dmd/ZenEventManager/commands/<command_name>/manage) and I replace in first rule OR by AND : before : (eventClass != '/HW/Disk' or eventClass != '/HW/Power' or eventClass != '/Status/OSProcess' or eventClass != '/Status/Snmp') after : (eventClass != '/HW/Disk' and eventClass != '/HW/Power' and eventClass != '/Status/OSProcess' and eventClass != '/Status/Snmp') Is it normal that I can't change it in zenoss interface ? Do you have the same problem ? -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=19791#19791 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
