statusengine / interface

AngularJS based Web Interface for Statusengine
https://statusengine.org/ui/#overview
GNU General Public License v3.0
18 stars 7 forks source link

Show the current ACK, DOWNTIME #3

Closed duylong closed 6 years ago

duylong commented 7 years ago

Hi,

It will be good to list in the dashboard (or elsewhere) the current ACK/DOWNTIME informations. What do you think ?

nook24 commented 7 years ago

So, the downtime information for currently running or upcoming downtimes are available at "Upcoming downtimes":

bildschirmfoto 2017-09-04 um 16 57 07

I could add a new menu record "Acknowledgements" (or so), for a list with acknowledgement informations for host and services...

nook24 commented 7 years ago

Is this what you are looking for?

duylong commented 7 years ago

That's great if we have a new menu record "Acknowledgements".

It would have been nice to list the current events on the dashboard. After I'm afraid that the dashbord becomes heavy.

nook24 commented 7 years ago

Done in the elastic branch :) bildschirmfoto 2017-09-13 um 23 01 10

duylong commented 7 years ago

Can you add the current number in the menu name ? "Acknowledgements (2)" for example

nook24 commented 7 years ago

Yep. I love the idea :) To keep the load low, I set the auto refresh interval to 30 seconds for the menu.

bildschirmfoto 2017-09-14 um 20 16 36

duylong commented 7 years ago

Love it!

To avoid false positives, it would still be good to consider ACK / DOWNTIME in displaying CRIT / WARN. After I know that the implementation is not trivial.

nook24 commented 7 years ago

I asked several people, and all said, that the dashboard should show critical services as critical, even if they are acknowledged or in downtime. So I will close #4.

As compromise, someone said, that the menu should only show services that are not acknowledged or in downtime. I guess this is a good solution for all of us.

duylong commented 7 years ago

Why not :) The behavior should be viewed in the documentation, for some people it will be a bug.

nook24 commented 7 years ago

I added an new setting, I guess this is the best solution: Default (show all): bildschirmfoto 2017-09-19 um 21 58 33

Hide Ack and Downtime from Dashboard and menu: bildschirmfoto 2017-09-19 um 21 58 54

Require run of composer dump-autoload or composer update to work.

duylong commented 7 years ago

Finally the ACK / DOWN is hidden in the dashboard too?

nook24 commented 7 years ago

Yes

duylong commented 7 years ago

A downtime on a host should not display CRIT / WARN for services in menu and dashboard. Naemon works like that for notifications.

nook24 commented 7 years ago

Just schedule the downtime with Node including services :)

duylong commented 7 years ago

This is not the default behavior in Naemon ? When a downtime is created on a host, the services also have the downtime, right? In my case, service notifications are disabled.

nook24 commented 7 years ago

Nop, if you schedule a downtime for a host, only the host is in a scheduled downtime. The services of the host are still operating normally. When in comes to notifications, Naemon checks if notifications should be suppressed due to some reasons. Here is the code from Naemon's notification.c

    /* if this service is currently in a scheduled downtime period, don't send the notification */
    if (svc->scheduled_downtime_depth > 0) {
        LOG_SERVICE_NSR(NSR_IS_SCHEDULED_DOWNTIME);
        return ERROR;
    }

    /* if this host is currently in a scheduled downtime period, don't send the notification */
    if (temp_host->scheduled_downtime_depth > 0) {
        LOG_SERVICE_NSR(NSR_SERVICE_HOST_SCHEDULED_DOWNTIME);
        return ERROR;
    }

https://github.com/naemon/naemon-core/blob/master/src/naemon/notifications.c#L820-L830

This is the reason, why the Statusengine Ui's default option for scheduling host downtimes is Node including services:

bildschirmfoto 2017-10-12 um 18 26 05
nook24 commented 6 years ago

"Current Acknowledgements" was added.