coyote wrote:
> I would like to set the severity of any event in the /Unknown class.  I set 
> zEventSeverity in zProperties for the /Unknown class to Info and even added a 
> transform - see below - and events still get a severity other than Info (2).  
> I hundreds of these every day.  
> 
> My transform:
> import re
> evt.severity = 2

You should do two thing:

1. Define an Event Mapping for your events: 
http://www.zenoss.com/community/docs/zenoss-guide/2.3.0/ch12s12.html 
I have found nothing about it in the Zenoss documentation, but it looks like 
events in  /Unknown can't be transformed (it never worked for me).

2. Do your transformation like this:

Code:
if evt.severity>2:
    evt.severity=2


Otherwise OK(0) and Debug(1) events will be set to severity Warning(2) too.




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

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

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



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

Reply via email to