![]() |
![]() |
Subject: | Node down/up transform |
Author: | [Not Specified] |
Posted: | 2016-08-16 05:16 |
I'd like to transform node down and node up event. 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: | See the documentation on the |
Author: | Jay Stanley |
Posted: | 2016-09-01 09:33 |
See the documentation on the wiki... some links to get you started.
http://wiki.zenoss.org/Transforms
http://wiki.zenoss.org/Debugging_Event_Transforms
Roughly, without testing. It would be under /Status/Ping
if device:
loc = (device.snmpLocation or 'Unknown')
devName = (device.snmpSysName or device.titleOrId())
msg = '%s located at %s: %s' % (devName, loc, evt.message)
evt.message = msg
< |
Previous Event flapping problem |
Next unmonitored Interface creates incident |
> |