ZenPacks and JSON API

Expand all | Collapse all

Adding Locations to a ZenPack?

  • 1.  Adding Locations to a ZenPack?

    Posted 01-05-2018 10:13 AM
    Just reaching out to see if anyone knows if I can add locations to a Zenpack?  Haven't found any info yet on if its possible and their is not an option in the GUI to do so.

    I guess in the end I should just use some sort of zendmd script?

    ------------------------------
    Andy Fleming
    KanREN - Kansas Research and Education Network
    KS
    ------------------------------


  • 2.  RE: Adding Locations to a ZenPack?

    Posted 01-07-2018 10:21 AM
    You could add it during the install step.


    dmd.Locations.createOrganizer('TestLoc')

    You can use the Microsoft ZP as an example oh how to use zpl, __init__.py and install() to do things during install/removal.

    zenoss/ZenPacks.zenoss.Microsoft.Windows
    GitHub remove preview
    zenoss/ZenPacks.zenoss.Microsoft.Windows
    ZenPacks.zenoss.Microsoft.Windows - Microsoft Windows ZenPack
    View this on GitHub >


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