> On 7 Oct 2016, at 13:55, Lukas Erlacher <erlac...@in.tum.de> wrote: > > Hello, > > I want to use the icinga2 api. I am querying all services with problems like > so: > >> https://icinga.mydomain.com:5665/v1/objects/services?filter=service.state!=ServiceOK > > This returns services objects like so: > >> { >> "attrs": { >> "__name": "somehost.mydomain.com!apt", >> "acknowledgement": 2.0, >> "acknowledgement_expiry": 0.0, >> "action_url": "", >> "active": true, >> "check_attempt": 1.0, >> "check_command": "apt", >> "check_interval": 60.0, > ... >> "paused": false, >> "retry_interval": 30.0, >> "state": 1.0, >> "state_type": 1.0, >> "templates": [ >> "apt", >> "generic-service" >> ], >> "type": "Service", >> "vars": null, >> "version": 0.0, >> "volatile": false, >> "zone": "" >> }, >> "joins": {}, >> "meta": {}, >> "name": "vmrbg69.in.tum.de!apt", >> "type": "Service" >> } > > What does > > > "acknowledgement": 2.0, > > specifically mean; and more generally, what values are possible for > "acknowledgement"; and most generally, is there a specification somewhere > that tells me what all possible attributes of host and services objects mean?
It’s a service config object and a runtime attribute. http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-service Kind regards, Michael -- Michael Friedrich, DI (FH) Senior Developer NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | michael.friedr...@netways.de ** OSMC 2016 - November - netways.de/osmc ** ** OSDC 2017 - Mai – osdc.de ** _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users