Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4626

Template validation for 'Webhook JSON'

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Default
    • None

    Description

      If we need to send alert status and/or alert timestamp as numerical value, we must not use quotes (as in example below). But in this case template validation fails, since it treats the template as a normal JSON.

      {
          "ALERT_STATUS": %ALERT_STATUS%,
          "ALERT_UNIXTIME": %ALERT_UNIXTIME%,
      }

      Attachments

        Activity

          [OBS-4626] Template validation for 'Webhook JSON'

          Improved in r13027.

          But your json still incorrect (extra comma at end):

          {
              "ALERT_STATUS": %ALERT_STATUS%,
              "ALERT_UNIXTIME": %ALERT_UNIXTIME%
          }
          

          landy Mike Stupalov added a comment - Improved in r13027. But your json still incorrect (extra comma at end): { "ALERT_STATUS": %ALERT_STATUS%, "ALERT_UNIXTIME": %ALERT_UNIXTIME% }

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            If device not support SNMP version 2c, replace -v2c with -v1.

          • If you have problems with discovery or poller processes, please do and attach these debugs:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          People

            landy Mike Stupalov
            alysov Andrei Lysov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: