Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10432

Result selectAlarms in service.get is returned in wrong property

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.0.16
    • API (A)
    • None

      According to https://www.zabbix.com/documentation/2.0/manual/appendix/api/service/get the result of the param "selectAlarms" will be returned as property "alarms". But actually it is returned as property "times". This conflicts with selectTimes and should be fixed.

      Example:

      array(1) {
        [0]=>
        object(stdClass)#2 (9) {
          ["serviceid"]=>
          string(1) "4"
          ["name"]=>
          string(7) "test"
          ["status"]=>
          string(1) "0"
          ["algorithm"]=>
          string(1) "1"
          ["triggerid"]=>
          string(5) "84967"
          ["showsla"]=>
          string(1) "1"
          ["goodsla"]=>
          string(7) "99.5000"
          ["sortorder"]=>
          string(1) "0"
          ["times"]=>
          array(9) {
            [0]=>
            object(stdClass)#3 (4) {
              ["servicealarmid"]=>
              string(1) "4"
              ["serviceid"]=>
              string(1) "4"
              ["clock"]=>
              string(10) "1455614091"
              ["value"]=>
              string(1) "0"
            }
            [...]
      

            Unassigned Unassigned
            pu Pascal Uhlmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: