TECHZEN Zenoss User Community ARCHIVE  

Using ValueChangeThreshold type in ZenPack

Subject: Using ValueChangeThreshold type in ZenPack
Author: Bharat Kumar Kobagana
Posted: 2019-03-30 03:54

Hello Team,

In one of your ZenPacks, we have created a ValueChangeThreshold as below:

StatusChangeThreshold:
  dsnames: [Status_Status]
  type: ValueChangeThreshold

But, after installing the ZenPack egg file, on ZenOSS, StatusChangeThreshold is created with MinMaxThreshold type (min and max attributes not set).

Please help me in resolving this issue. Thanks in advance.

------------------------------
Bharat Kumar Kobagana
Aptira Pty Ltd
------------------------------


Subject: RE: Using ValueChangeThreshold type in ZenPack
Author: Jay Stanley
Posted: 2019-04-03 08:16

Here is a working example from one of my zenpacks.

          statusChange:
            enabled: true
            type: ValueChangeThreshold
            dsnames: [ifOperStatus_ifOperStatus, ifAdminStatus_ifAdminStatus]
            eventClass: /Status/Network
            severity: Critical​


https://gist.github.com/jstanley23/9f976f9361f4c4a3653e9506a4a3cec0



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


Subject: RE: Using ValueChangeThreshold type in ZenPack
Author: Bharat Kumar Kobagana
Posted: 2019-04-06 08:52

Thank you Stanley, it worked for me. Thanks for the timely response.

------------------------------
Bharat Kumar Kobagana
Visakhapatnam
------------------------------


< Previous
Intro + New Developer Docs
  Next
serviced snapshot commit
>