ZenPacks and JSON API

Expand all | Collapse all

Monitoring Templates extraction

  • 1.  Monitoring Templates extraction

    Posted 12-12-2017 04:39 PM
    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


  • 2.  RE: Monitoring Templates extraction

    Posted 01-07-2018 10:37 AM
    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
    ------------------------------



  • 3.  RE: Monitoring Templates extraction

    Posted 01-09-2018 04:28 AM
    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
    ------------------------------



  • 4.  RE: Monitoring Templates extraction

    Posted 02-20-2018 04:41 PM
    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
    ------------------------------



  • 5.  RE: Monitoring Templates extraction

    Posted 04-03-2018 05:13 PM
    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
    ------------------------------