TECHZEN Zenoss User Community ARCHIVE  

How to enrich node down trap with snmp location

Subject: How to enrich node down trap with snmp location
Author: [Not Specified]
Posted: 2016-08-26 07:50

Hi,

I'd like to transform node down and node up event. Now I get trap with following summary:

10.24.0.16 is DOWN!

How can I add SNMP location or SNMP sysname to original message or summary field. This event belong to Status/Ping event class, but it doesn't contain any mapping. I use Zenoss core 4.2.5 .

Thank's



Subject: can you pls post complete
Author: [Not Specified]
Posted: 2016-08-26 09:20

can you pls post complete event details..



Subject: So you can add an event class
Author: Jane Curry
Posted: 2016-08-31 10:27

So you can add an event class transform to /Status/Ping - you don't need to have a mapping. Navigate to the correct event class and use the Action (gear) icon at the bottom left to choose Transform from the menu.

You could then add a line like (all on one line):

evt.summary = evt.summary + ' . SNMP sysName is ' + device.snmpSysName + ' ; SNMP sysLocation is ' + device.snmpLocation

Resulting in a summary like:

taplow-30.skills-1st.co.uk is DOWN! . SNMP sysName is raspberrypi ; SNMP sysLocation is Cedar Chase

snmpLocation and snmpSysName are default attributes of any device. It's the same attributes that are displayed in the Overview panel for a device. Take care with capitalisation - it is important. When you hit "Save" on the transform, check to ensure that your transform hasn't turned red - if it has, you have made an error.

Cheers,

Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



Subject: Hi Jcurry!
Author: [Not Specified]
Posted: 2016-09-01 03:33

Hi Jcurry!

Thank You for your advise, it solved my problem!



Subject: See http://www.zenoss.org
Author: Jay Stanley
Posted: 2016-09-01 11:45

See http://www.zenoss.org/forum/145861 as well



< Previous
zenbatchload
  Next
5.0.10 > 5.1.x Upgrade Doc
>