TECHZEN Zenoss User Community ARCHIVE  

Zenoss 3 -> 4.2.5 ZenPacks : Error with Product.Jobber.status

Subject: Zenoss 3 -> 4.2.5 ZenPacks : Error with Product.Jobber.status
Author: Pheripheral Pheripheral
Posted: 2015-09-02 05:37

Hi,

Ive recently started using Zenoss and have been tasked with loading into a Zenoss 4.2.5 install some Zenpacks that were written with Zenoss 3 in mind.

Most of them are ok but am having trouble with one. Specifically receiving an error message as follows:

: cannot import name FAILURE

After an afternoon of investigations Ive figured out which part of the zenpacks code is causing this error an import of the FAILURE constant from the Products.Jobber.status package as follows:

from Products.Jobber.status import SUCCESS, FAILURE

Digging further into this, I found that the status.py file in this package on a Zenoss 3 instance is a fully populated file and all looks ok, whereas on Zenoss 4.2.5 this file is really rather empty and simply contains:

----------------------------------------------------------------------------------------------
"""
Retained for backwards compatibility. Will be removed in the release following
4.2.
"""

from Products.ZenModel.ZenModelRM import ZenModelRM

SUCCESS = None
----------------------------------------------------------------------------------------------

So Im pretty sure this is the cause of my error!

My question is does anyone has any tips / sources of info / been there done that helpful knowledge about how to deal with this and most likely update the zenpacks to use whatever new methods / package are meant to be replacing the Products.Jobber.status functionality.

So far my googling has come up with very little about this specific issue and so Im struggling to work out how to proceeed in terms of updating the zenpacks to work with Zenoss 4.2.5

Many Thanks for any advice / help



Subject: please refer to the resources
Author: Andrew Kirch
Posted: 2015-09-03 10:48

please refer to the resources on zenpacklib.zenoss.com to get started updating ZenPacks. There are several examples and information on best practices.

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



< Previous
ZenPacks.zenoss.Microsoft.Windows-2.4.8.egg - Performance counters missing
  Next
4.2.5 + ZenPack + custom panel + "Site error"
>