I just tested this, and it seems to work correctly :

 

 

It shows the device hostname/style as ignored too.

 

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of adama--- via observium
Sent: 19 April 2022 14:36
To: 'Tony Guadagno' <tonyg@guadagno.org>; 'Observium' <observium@observium.org>
Cc: adama@observium.org
Subject: Re: [Observium] how does "ignore until" under device/alert settings work?...looking for a "in maintenance" mode for a device

 

Are you sure it’s generating notifications for devices with ignore_until set?

 

These alerts should have the “suppressed” state, the code seems correct to handle this :

 

        if ($device['ignore_until']) {

          $device['ignore_until_time'] = strtotime($device['ignore_until']);

          if ($device['ignore_until_time'] > time()) {

            $alert_suppressed = TRUE;

            $suppressed[] = "DEV_U";

          }

        }

 

The second image is showing old/deprecated “status” widgets. These pre-date the alerting system. They’re mostly just retained for the people who were using them when we switched to the current alerting system. I can probably extend ignore_until to these, but at present it probably doesn’t interact with them.

 

Adam.

 

From: Tony Guadagno <tonyg@guadagno.org>
Sent: 18 April 2022 18:31
To: Observium <observium@observium.org>
Cc: Adam Armstrong <adama@observium.org>
Subject: RE: [Observium] how does "ignore until" under device/alert settings work?...looking for a "in maintenance" mode for a device

 

Adam, I just recreated this, this is what I did and what happened

  1. Pick a server, go to properties/alerts.
  2. Set “ignore until” to 1 hr in the future
  3. Shutdown that server

After the server shut down and a poling cycle passed, the observium screen shows

And

 

 

 

From: observium <observium-bounces@observium.org> On Behalf Of Adam Armstrong via observium
Sent: Monday, April 18, 2022 1:10 PM
To: Observium <observium@observium.org>
Cc: Adam Armstrong <adama@observium.org>
Subject: Re: [Observium] how does "ignore until" under device/alert settings work?...looking for a "in maintenance" mode for a device

 

What do you mean by “still get alerted”?

 

Adam.

Sent from my iPhone

 

On 18 Apr 2022, at 14:54, Tony Guadagno via observium <observium@observium.org> wrote:



Sorry if this is an obvious question but I have been playing with this and it does not behave the way I am expecting… under device properties/alerts there is an “ignore until” option as well as a “disable notifications” toggle….

image003.jpg

 

If I set the “ignore until” to sometime in the future and I (for example) restart the device…I still get alerted.  If I toggle the “disable notifications” , I do not get the notifications anymore…however, it stays disabled past the “ignore until” time

How is this feature supposed to work?

 

I am looking for a way to put a device in “maintenance mode” so that if I am upgrading etc…no alerts are generated and no notifications are sent.

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium