Hi,

there are multiple ways. One of them is to look into the database, as you already suggested.

Another one would be to query Icinga2 directy:
icinga2 object list --type=Downtime

However, this list is only refreshed after a reload/restart of Icinga2, so you can't rely on it.

The best way IMHO is to talk to the API:
https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/icinga2-api

Hope this helps.

Best regards
Valentin


On 30.05.2017 13:41, Christian Moreno Moreno wrote:
Hi,

How can I get one list of the actual Downtimes (host and expiration) from the DB? Are the Downtimes in the Mysql or only via conf File?

Many Thanks,
Christian Moreno


Christian Moreno Moreno
System Engineer Offers

idealo internet GmbH
Ritterstraße 11
10969 Berlin, Deutschland
Tel.: +49 (0)30 40 30 10 33
Fax: +49 (0)30 221 94 33 <tel:%2B49%20%280%2930%20221%2094%2033> - 21
E-Mail: christian.mor...@idealo.de <mailto:christian.mor...@idealo.de>
Geschäftsführer:
Dr. Albrecht von Sonntag, Dr. Philipp-Christopher Peitsch
HRB 76749 – Amtsgericht Berlin-Charlottenburg
idealo Logo <http://www.idealo.de/>

















_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

--
Valentin Höbel
Senior Consultant IT Infrastructure
mobil 0711-95337077

open*i GmbH
Talstraße 41 70188 Stuttgart Germany

Geschäftsführer Tilo Mey
Amtsgericht Stuttgart,  HRB 729287, Ust-IdNr DE264295269
Volksbank Stuttgart EG, BIC VOBADESS, IBAN DE75600901000340001003

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to