I have been slogging through trying to make zendmd work within a transform. I have tried to use the example in Jane Curry's Event Discovery whitepaper. I have coded the following in a transform :
//code import Globals from Products.ZenUtils.ZenScriptBase import ZenScriptBase from transaction import commit dmd = ZenScriptBase(connect=True).dmd //code I haven't added any other code using just trying to get things set up properly. I have turned up the log severity for zenhub. In the zenhub.log file I get the following error - 2009-04-16 13:47:35 DEBUG zen.Events: Found device IEO-SWE-Switch and adding device-specific rules 2009-04-16 13:47:35 DEBUG zen.Events: EventClassInst=Test 2009-04-16 13:47:35 DEBUG zen.Events: Applying transform at /Events/Security/Test 2009-04-16 13:47:35 ERROR zen.Events: Error processing transform on Event Class /zport/dmd/Events/Security/Test (2) In my troubleshooting I first added the imports without errors, but as soon as I added the line of code to define dmd, I got the error. My questions is can I use the "zendmd" like coding within a transform or has something changed since Jane wrote the whitepaper. If I can what am I doing wrong ? I am running CentOS 5 with Zenoss 2.3.3 -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=33491#33491 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
