ZenPacks and JSON API

Expand all | Collapse all

Using ValueChangeThreshold type in ZenPack

  • 1.  Using ValueChangeThreshold type in ZenPack

    Posted 25 days ago
    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
    ------------------------------


  • 2.  RE: Using ValueChangeThreshold type in ZenPack

    Posted 21 days ago

    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
    ------------------------------



  • 3.  RE: Using ValueChangeThreshold type in ZenPack

    Posted 18 days ago
    Thank you Stanley, it worked for me. Thanks for the timely response.

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