TECHZEN Zenoss User Community ARCHIVE  

Sample code to create an Event Mapping using Python

Subject: Sample code to create an Event Mapping using Python
Author: [Not Specified]
Posted: 2014-08-08 17:04

We are running Zenoss Core 3.2.1 and in the process up upgrading to Enterprise 4.2.5. It has been a "very" painful manual process. Now I'm working on the event mappings.

Does anyone have any sample code to create Event Mappings using Python. I have a large number of event mappings to add and thought it might be easier to batch load them using Python. Ideally, if anyone has written code to export mappings from 3.x (or even from 4.x CORE) and code to import mappings into Enterprise 4.x, that would be awesome! But even some sample code to create Event Mappings would be "very" helpful!

Thanks in advance for any advice or code samples!



Subject: Export http://wiki.zenoss.org
Author: Jan Garaj
Posted: 2014-08-10 05:26

Export http://wiki.zenoss.org/ZenDMD_Tip_-_ShowEventMappingsAndTransforms
You should to write import - find similar "create" functions, which are used in export.

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



< Previous
Cannot import SNMPv2-TC
  Next
A very strange occurrence
>