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 Luther




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

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

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



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

Reply via email to