![](https://secure.gravatar.com/avatar/b052e7decb48b624735ce658ab35fc38.jpg?s=120&d=mm&r=g)
Adam, I just ran the test again, and got the same result:
[cid:image007.png@01D853D4.0AAC3620]
Note the time “ignore until” was set to 1 hr in the future. Then I shut down the server….after the polling interval: [cid:image008.png@01D853D4.0AAC3620]
I’m not sure what I am doing wrong….is it possibly a “time” issue….it thinks the time has passed so it is “out” of the window? Utc vs edt?
From: adama@observium.org adama@observium.org Sent: Tuesday, April 19, 2022 9:39 AM To: 'Observium' observium@observium.org; Tony Guadagno tonyg@guadagno.org Subject: RE: [Observium] how does "ignore until" under device/alert settings work?...looking for a "in maintenance" mode for a device
I just tested this, and it seems to work correctly :
[cid:image003.png@01D853D4.0AA29930]
It shows the device hostname/style as ignored too.
Adam.
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> On Behalf Of adama--- via observium Sent: 19 April 2022 14:36 To: 'Tony Guadagno' <tonyg@guadagno.orgmailto:tonyg@guadagno.org>; 'Observium' <observium@observium.orgmailto:observium@observium.org> Cc: adama@observium.orgmailto: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.orgmailto:tonyg@guadagno.org> Sent: 18 April 2022 18:31 To: Observium <observium@observium.orgmailto:observium@observium.org> Cc: Adam Armstrong <adama@observium.orgmailto: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 [cid:image004.jpg@01D853D4.0AA29930] And [cid:image005.jpg@01D853D4.0AA29930]
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> On Behalf Of Adam Armstrong via observium Sent: Monday, April 18, 2022 1:10 PM To: Observium <observium@observium.orgmailto:observium@observium.org> Cc: Adam Armstrong <adama@observium.orgmailto: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.orgmailto: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.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium