cluther wrote:
>
> > I tried it - did not work. Same behaviour. The rule now looks like
> > this:
> >
> > evt.summary = "UC4 Executor stopped"
> > if evt.AgentWorkInteger1=="1":
> > evt.message="Mode: Primary"
> > if evt.AgentWorkInteger1=="3":
> > evt.message="Mode: Normal"
> > if evt.AgentWorkInteger1=="4":
> > evt.message="Mode: Communication"
> > evt.message = evt.summary + " System/Server/Executor/Type: " +
> > evt.AgentWorkObject + " " + evt.message
> >
> > The evt.message stays "untouched" and holds the "standard snmp" text:
> >
> > "snmp trap UC4ExecutorStopped from xyxyxxxyxyx"
> >
>
> Try looking at the $ZENHOME/log/zentrap.log when one of these events
> is coming in. If there are any errors evaluating the transform they
> will show up here.
>
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
The log - very good idea! :)
It says:
----
2008-05-05 00:20:38 ERROR zen.Events: Error transforming EventClassInst
UC4_Executor_Stopped_11603 ('Event' object has no attribute 'Age
ntWorkInteger1')
2008-05-05 11:31:50 ERROR zen.Events: Error transforming EventClassInst
UC4_Executor_Disconnected_11650 ('Event' object has no attribute
'AgentWorkInteger1')
2008-05-05 13:59:11 ERROR zen.Events: Error transforming EventClassInst
UC4_Executor_Coldstart_11604 ('Event' object has no attribute 'A
gentWorkInteger1')
2008-05-05 14:00:10 ERROR zen.Events: Error transforming EventClassInst
UC4_Executor_Disconnected_11650 ('Event' object has no attribute
'AgentWorkInteger1')
----
The attributes are called "agentWorkInteger1" - with an lower case "a" - and
not "AgentWorkInteger!" - a silly thing. I feel silly :)
Thank you for your help!
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=19359#19359
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users