TECHZEN Zenoss User Community ARCHIVE  

Monitoring Templates extraction

Subject: Monitoring Templates extraction
Author: Michael Vlassis
Posted: 2017-12-12 17:39

Hi 
We are running Zenoss 4.2.5. I wanted to see what utilities can help pull the following information from our system.
- Monitoring templates with datasources and threshold and severity information etc etc.We are trying to audit this information as a starting point.

Maybe some ( python ) examples out there I can modify, you can point me too, or the appropriate utilities to work with.
Conversely wanted to see if these utilities would allow us to add or modify new entries to these templates?

Thanks in advance!

Mike


Subject: RE: Monitoring Templates extraction
Author: Jay Stanley
Posted: 2018-01-07 11:37

I havent used it yet, but you may want to check out the Installed Template ZP

zenoss/ZenPacks.zenoss.InstalledTemplatesReport
GitHub remove preview
zenoss/ZenPacks.zenoss.InstalledTemplatesReport
ZenPacks.zenoss.InstalledTemplatesReport - Adds a report that documents all installed monitoring templates.
View this on GitHub >


------------------------------
jstanley
------------------------------


Subject: RE: Monitoring Templates extraction
Author: Jane Curry
Posted: 2018-01-09 05:28

Thanks Jay - hadn't spotted this.  Just installed on Zenoss 4.2.5 SUP 732 - works a treat.
Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Monitoring Templates extraction
Author: Doug Syer
Posted: 2018-02-20 17:41

if your templates are in a zenpack you can export them using the zenpacklib cli into yaml format...its super helpful and good for a quick backup just in case you need to update a template on live system.

------------------------------
Doug Syer
NWN Corporation
Waltham MA
------------------------------

Subject: RE: Monitoring Templates extraction
Author: Craig Massey
Posted: 2018-04-03 18:13

Apologies for the late post to an old topic, I just joined the forum.

I wrote a python script to extract very much what you asked for via the JSON API.
It isn't the tidiest bit of code, but it works, albeit rather slowly.

It is however very slow to run when the number of devices gets up there and I have enhancing the Installed templates report Zenpack to present what we need on my todo list. 
If anyone wants to see what I did I can ask whether I am allowed to share my code.

------------------------------
Craig Massey
Dimension Data
Auckland
New Zealand
------------------------------


< Previous
REST API - Export CPU/Memory usage
  Next
Obtaining Event criteria in implementation of Zenoss Service Dynamics
>