On 04/06/07, cluther <[EMAIL PROTECTED]> wrote:
James,You can differentiate between the events even if they have the same eventClassKey. That's what the "rule" is for. Your rule could look something like the following for prtAlertCode 1: getattr(evt, 'prtAlertCode', 0) == 1 This way your mapping would only match events where the prtAlertCode is 1. You could setup a mapping for your transform to use something like this to get textual information: prtAlertCodes = { 1:'empty cartridge', 2:'removed cartridge', } evt.summary = 'Printer alert: ' + prtAlertCodes[evt.prtAlertCode]
Chet, Would the dictionary also be declared in the transform? In my particular case I have one dictionary that would apply to several events, is there a common place I can define it? -- Regards, Graham Bloice _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
