Icingaweb2: Browser based push notifications

Created on 31 May 2017  路  7Comments  路  Source: Icinga/icingaweb2

Context

Modern browsers support push notifications to notify users of new messages or updated content. The user can allow or disallow browser based notifications for each website.

Expected Behavior

It would be nice if Icinga Web 2 could send notifications to a user when a host or service has a problem. It should be configurable, depending on the users needs.

If Icinga Web 2 supports this out of the box, users don't need browser extensions for their monitoring.

Origin of the idea: https://medium.com/@valentinog/experimenting-with-the-icinga2-api-and-vuejs-eedcc17853fb

Current Behavior

馃槥 No browser based push notifications

Possible Solution

馃憤 Add browser based notifications

enhancement

Most helpful comment

Oh man, this would be _fantastic_! +1

All 7 comments

Hey @flourish86,

Please have look how this could be implemented. No rush on this one though.

Cheers,
Eric

This would be very cool

Yes, this would help me in some situations...
Great idea!

It seems that _zmon_ supports such notifications, it would help indeed.

I've taken a look on this one.

This could be provided and controlled via a Icinga Web 2 plugin, where the user could control and filter, which notifications he wants to receive.

For the notifications themselves there are basically two different approaches.

  1. Local Browser notifications
    This is the approach that also _zmon_ takes. Since Icinga Web has to be open in a browser tab background this seems to be practicable on Desktop only.

  2. Remote Push Notifications
    This is the one approach that would interesting for mobile. This way notifications are triggered externally from the server and displayed on the device, even if it's in stand by mode. But this would require the use of service workers, which is currently exclusively available in Chrome for Android on mobile (See https://caniuse.com/#feat=serviceworkers).

Probably the only reasonable way to implement push notifications directly on mobile is with separate native mobile apps.

What do you think, would you consider the first approach useful?

Oh man, this would be _fantastic_! +1

This might be possible to implement quite easy with newer browsers (using the Notificion API with HTML5):
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

theFeu picture theFeu  路  6Comments

nE0sIghT picture nE0sIghT  路  6Comments

theFeu picture theFeu  路  4Comments

flourish86 picture flourish86  路  7Comments