aletatone
2013-08-29 14:44:33 UTC
aletatone [http://community.zenoss.org/people/aletatone] created the discussion
"transform strange behaviour"
To view the discussion, visit: http://community.zenoss.org/message/74531#74531
--------------------------------------------------------------
Hi All,
i'm traing to change summary of some events generated by cisco trap: "topologyChange".
I added to the summary the name of interface in this way:
evt.summary = evt.summary + ' - Interface ' + evt.ifName
and it work fine.
Than i tried to add also the vlan number involved in "topologyChange"
evt.summary = evt.summary + ' - Interface ' + evt.ifName + ' - vlan ' + evt.vtpVlanIndex
using this nothing happend a no one event appears in events page.
Than i tried something easier:
evt.summary = evt.summary + evt.vtpVlanIndex
but still nothing at all, no one event in the events page.
Than the last one, i tried this:
evt.summary = evt.vtpVlanIndex
And it works! But of course i don't want to have an event with only a number as a summary.
If i try this:
evt.summary = "Vlan: " + evt.vtpVlanIndex
it doesn't work.
I had also tried this:
vlan = evt.vtpVlanIndex
evt.summary = "Vlan: " + vlan
but still nothing.
Why does evt.vtpVlanIndex seem to not work in summary if i put it with other "words" and why does evt.ifName work in any condition?
Thanks
Ale
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74531#74531]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"transform strange behaviour"
To view the discussion, visit: http://community.zenoss.org/message/74531#74531
--------------------------------------------------------------
Hi All,
i'm traing to change summary of some events generated by cisco trap: "topologyChange".
I added to the summary the name of interface in this way:
evt.summary = evt.summary + ' - Interface ' + evt.ifName
and it work fine.
Than i tried to add also the vlan number involved in "topologyChange"
evt.summary = evt.summary + ' - Interface ' + evt.ifName + ' - vlan ' + evt.vtpVlanIndex
using this nothing happend a no one event appears in events page.
Than i tried something easier:
evt.summary = evt.summary + evt.vtpVlanIndex
but still nothing at all, no one event in the events page.
Than the last one, i tried this:
evt.summary = evt.vtpVlanIndex
And it works! But of course i don't want to have an event with only a number as a summary.
If i try this:
evt.summary = "Vlan: " + evt.vtpVlanIndex
it doesn't work.
I had also tried this:
vlan = evt.vtpVlanIndex
evt.summary = "Vlan: " + vlan
but still nothing.
Why does evt.vtpVlanIndex seem to not work in summary if i put it with other "words" and why does evt.ifName work in any condition?
Thanks
Ale
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74531#74531]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]