Is this what you're asking how to do?
Code: [ d for d in dmd.Events.getInstances() if d.regex ] That will return a list of each Event instance that has a regex set. You could then do whatever with that list. Code: >>> for each in [ d for d in dmd.Events.getInstances() if d.regex ]: ... print each.getPrimaryUrlPath() ... /zport/dmd/Events/Security/Login/instances/defaultmapping /zport/dmd/Events/Security/Login/BadPass/instances/dropbear /zport/dmd/Events/Security/Login/BadPass/instances/sshd /zport/dmd/Events/Security/Login/Fail/instances/dropbear /zport/dmd/Events/Security/Sudo/instances/sudo /zport/dmd/Events/Security/Conn/Open/instances/dropbear ... -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=32431#32431 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
