[icinga-users] need more help with filtering and REST API

Michael Friedrich Michael.Friedrich at netways.de
Mon Aug 29 10:49:27 CEST 2016


> On 24 Aug 2016, at 22:57, Seth Galitzer <sgsax at ksu.edu> wrote:
>
> It looks like the "last_in_downtime" field might work for this. If set to "true", that seems to indicate the host/service is currently in downtime. Can you confirm that?

I’d go for 2.5.x where this has been properly fixed with the addition of “downtime_depth”. I stumbled over that while preparing for Icinga Camp Amsterdam a while back.

Kind regards,
Michael

>
> Thanks.
> Seth
>
> On 08/24/2016 02:55 PM, Seth Galitzer wrote:
>> I think I understand the "acknowledgement" field now, but is there no
>> way to detect if a host/service is in downtime in 2.4.10? I'm still
>> waiting for 2.5 to hit debmon before I upgrade.
>>
>> Thanks.
>> Seth
>>
>> On 08/24/2016 03:43 AM, Michael Friedrich wrote:
>>>
>>>> On 23 Aug 2016, at 23:43, Seth Galitzer <sgsax at ksu.edu> wrote:
>>>>
>>>> I'd like to be able to filter hosts and services on downtime and
>>>> acknowledgement status. eg, only return hosts or services with
>>>> problems that are not acknowledged and not in downtime. I've got the
>>>> full list of attributes from an open-ended query, and I can't figure
>>>> out which ones to use. Getting state is obvious. Getting the other
>>>> two, not so much. Can somebody please advise?
>>>
>>> I’m doing that like this with Dashing:
>>> https://github.com/Icinga/dashing-icinga2/blob/master/jobs/icinga2.rb#L97
>>>
>>> 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.Friedrich at netways.de
>>>
>>> ** OSBConf 2016 - September - osbconf.org **
>>> ** OSMC 2016 - November - netways.de/osmc **
>>> _______________________________________________
>>> icinga-users mailing list
>>> icinga-users at lists.icinga.org
>>> https://lists.icinga.org/mailman/listinfo/icinga-users
>>>
>>
>
> --
> Seth Galitzer
> Systems Coordinator
> Computing and Information Sciences
> Kansas State University
> http://www.cis.ksu.edu/~sgsax
> sgsax at ksu.edu
> 785-532-7790
> _______________________________________________
> icinga-users mailing list
> icinga-users at lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users


-- 
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.Friedrich at netways.de

** OSBConf 2016 - September - osbconf.org **
** OSMC 2016 - November - netways.de/osmc **


More information about the icinga-users mailing list