ZenPacks, JSON API, and Integrations

Expand all | Collapse all

Zenoss 6.2.1 Support for Old ZenPacks

  • 1.  Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-09-2019 08:18 PM
    Greetings!
         Is there a guide/documentation/website that covers ZenPack changes that are needed to run on Zenoss Core 6.2.1? We have a custom ZP that installs okay, but the Zenoss dashboard is unreachable. Answering and ready status are both 1, and Control Center has the following log message:

    2019/05/08 21:28:23 [error] 10078#0: *507114 upstream prematurely closed connection while reading response header from upstream, client: 172.17.0.1, server: , request: "POST /zport/dmd/Events/jobs_router HTTP/1.1", upstream: "http://127.0.0.1:9080/zport/dmd/Events/jobs_router"...

    Service name is Zenoss.core, type is zproxy

    Thanks in advance,
    Larry


    ------------------------------
    Larry
    Sr. Systems Engineer
    IPC Global
    Alpharetta GA
    470-407-9100 ext 136
    ------------------------------


  • 2.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-14-2019 04:25 PM
    From what version to 6.2.x?

    Are you using ZenPackLib? What does your ZenPack do? Did you modify the __init__, have custom patches, routers, etc?


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



  • 3.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-14-2019 11:42 PM
    Hi Jay,
        Thanks for your reply. Here are the answers:

    Yes, we are using ZenPacklib. The zenpack was created using ZenPacklib v2.1.1 with no changes on __init__.py.

    The zenpack basically creates a custom notification. Besides the base structure created by ZenPacklib, we added the following files:

    Interfaces.py, info.py, actions/myaction.py, configure.zcml. All the changes were in these files.

    We followed this article to create our custom zenpack: https://aalvarez.me/posts/custom-notification-action-types-in-zenoss/

    Please let me know if you need anything else.

    Thanks,
    Larry

    ------------------------------
    Larry
    Sr. Systems Engineer
    IPC Global
    Alpharetta GA
    470-407-9100 ext 136
    ------------------------------



  • 4.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-20-2019 07:06 AM
    What happens if you uninstall the zenpack?

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



  • 5.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-20-2019 04:53 PM
    We haven't tried to uninstall the zenpack on 6.2.1. How is that done? I'm only familiar with uninstalling ZPs on 4.2.5. On 6.2.1. we just reverted to the previous snapshot.

    Thanks,
    Larry

    ------------------------------
    Larry
    Sr. Systems Engineer
    IPC Global
    Alpharetta GA
    470-407-9100 ext 136
    ------------------------------



  • 6.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-23-2019 09:24 AM
    Edited by Jay Stanley 05-23-2019 09:25 AM
    If the ZP is the only change and it breaks Zenoss, then I have to assume something in the ZP is doing it. I would have to look at the code to figure it out.

    *Edit: I am also assuming you are installing the ZenPack properly and have tried doing a full shutdown, verify, then start afterwards.

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



  • 7.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-23-2019 09:51 PM
    Thanks Jay. We have been running "serviced service restart Zenoss.core/Zenoss" after installing the ZP. We have not tried to reboot the server. We can try that.

    I would be glad to show you the code if you're willing to take a look at it. What's the best way to do this?

    Thanks,
    Larry

    ------------------------------
    Larry
    Sr. Systems Engineer
    IPC Global
    Alpharetta GA
    470-407-9100 ext 136
    ------------------------------



  • 8.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 05-24-2019 01:07 PM
    send it to my email and I will take a look when I can. (if you cant see my email in my profile, hit me up on irc)

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



  • 9.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 06-07-2019 07:08 AM
    Edited by Jay Stanley 06-07-2019 07:08 AM
    You have bad imports in your notification action.

    from jira.client import JIRA
    from jira.exceptions import JIRAError

    Any libraries that are not in the default installation should be contained within a lib dir in your ZenPack, and then imported from there.

    https://github.com/zenoss/ZenPacks.zenoss.OpenStackInfrastructure is a good example of containing code in lib and then calling it later in a modeler

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



  • 10.  RE: Zenoss 6.2.1 Support for Old ZenPacks

    Posted 06-11-2019 06:13 PM
    Thanks for looking into this. I have passed this information on to our developer, and he will be making the needed changes.

    ------------------------------
    Larry
    Sr. Systems Engineer
    IPC Global
    Alpharetta GA
    470-407-9100 ext 136
    ------------------------------