-
Incident report
-
Resolution: Won't fix
-
Major
-
None
-
2.0.16
-
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" } [...]