I'm trying to use two transforms at /Events.  Here is the text:

Code:

import re 
if evt.message.find('WMI') >= 0:evt.message = re.sub('["].*["]', ' "******" ', 
evt.message) 

if evt.severity: 
    s = getattr(evt, 'summary', getattr(evt, 'message', '')) 
     if s.find('Command timed out') >= 0:
        evt.message = 'Command timed out on device ' + evt.device 




However, when adding the second if, the text becomes red.  If I add the second 
transform at say, /Events/Win, the text is still red.

Any dieas?




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

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

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



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

Reply via email to