Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4870

New function notsupp() to check if item is in NOT SUPPORTED state.

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:
      None

      Description

      This trivial function is very helpful when checking for example SOAP WebServices. My webservices have implemented method IsActive and responding True in IsActiveResult clause.

      Parsing is done in preprocessing tab:

      1. XML Xpath : //*[local-name()='IsActiveResult']/text()
      2. Boolean to decimal

      Then its stored to history as a number.

      Problem i faced was making a reliable trigger. When WS is accessible there is 1 stored in history but when it's not accessible, item change state to NOT SUPPORTED. My 1st attempt was to use .nodata(time) function but, it was generating false positives every time zabbix queue processing was slower than nodata() argument value. Setting bigger value not helping much because it dalays alerts and there are still some false positives.

      Then i implemented notsupp() function and used this instead of nodata, now every time this items turn NOT SUPPORTED it means webservice failed.

       

      I attached patch I done, I know there is some not used things like not used arguments and some things lacking like function error states, but it works and do its job perfectly. It would be nice to see that in official sources or maybe i need a hint how to trigger this case better using functions already available.

       

      best regards

      milo

        Attachments

          Activity

            People

            • Assignee:
              wiper Andris Zeila
              Reporter:
              milo Miłosz Kędziora
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: