I use the certificates approach, I use that for automatic downtime on Windows Update reboots.
Regards, Rune 20. feb. 2018 15:44 skrev "Rudy Gevaert" <rudy.geva...@ugent.be>: > Hello, > > I was wondering is if I could use the icinga2 agent to set a downtime on a > service. > > A use case might explain this better: > > There is a cronjob that runs at a specific time, but on every server this > cronjob is run at a different time. Setting up a scheduled downtime for > this 'service check' is difficult, because every host will have a different > schedule. > > We could use the API to set the downtime when the job runs. But this > would mean you would have to create a shared api user (shared amongst all > the hosts), or different api users (one for every host). > > Both I don't really like. > > I was wondering, can't we use the icinga2 agent to set the downtime? The > icinga2 agent has already the necessary permissions to communicate with the > master. > > Would this work? Doing a curl request but using the certificates of the > client would that work? Or are there any other things to think about? > > Thanks in advance, > > Rudy > > -- > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > Rudy Gevaert e-mail: rudy.geva...@ugent.be > Directie ICT, Afdeling Infrastructuur > Groep Systemen tel: +32 9 264 4750 > Universiteit Gent fax: +32 9 264 4994 > Krijgslaan 281 > <https://maps.google.com/?q=Krijgslaan+281&entry=gmail&source=g>, gebouw > S9, 9000 Gent, Belgie www.UGent.be > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > > > _______________________________________________ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users >
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users