Thanks for your reply. I have tried this, but the expression is not working. 
I'm not sure if it's my questionable Python skills or some other problem. How 
do you debug the expressions--does it keep any logging about the evaluation 
inputs or results when processing events? 

Here's my complete revised expression in the Transform for the event class:

if (not (evt.device.startswith("DAL") or evt.device.startswith("dal")) and 
(evt.device.startswith("D") or evt.device.startswith("d"))) or 
(evt.device.startswith("DALD") or evt.device.startswith("dald")):
  evt.severity = 2
  evt._action = "history"

It's not moving the events to history or changing the severity as I had hoped 
on these. This might be just my logic error or the way I entered the 
expression, which is why I'm hoping to find some related logging. The intent of 
the above is to apply the severity and history action when the device names 
begin with ("D" or "d" AND the device names do NOT begin with "DAL"), OR (the 
device names begin with "DALD" or "dald").

Thanks for any thoughts you could provide.




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

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

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



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

Reply via email to