mocdaniel / dashing-icinga2

Dashing dashboard for Icinga 2 using the REST API
MIT License
204 stars 47 forks source link

Allow to configure the Icinga Web 2 Iframe URL #54

Closed dnsmichi closed 6 years ago

dnsmichi commented 6 years ago

This is a little brainfuck, as we need to create an instance of the icinga2 class for reading the configuration details in config.ru.

We'll expose the setting inside a helper function, which is called inside the HTML erb template for the dashboard.

Note: This is done every time the user presses refresh. Job execution won't trigger this. The previous attempt with updating this on send_event caused flickering.