Tony,
Are you certain that you don't have two devices declared within Observium?
Your screenshots show one device with a FQDN (which you have set ignore on) and another device with just the short hostname (which is alerting).
Michael
On 20 Apr 2022, at 12:49 am, Tony Guadagno via observium observium@observium.org wrote:
I just verified that the date/time is correct on the server
From: adama@observium.org mailto:adama@observium.org <adama@observium.org mailto:adama@observium.org> Sent: Tuesday, April 19, 2022 10:47 AM To: Tony Guadagno <tonyg@guadagno.org mailto:tonyg@guadagno.org>; 'Observium' <observium@observium.org mailto:observium@observium.org> Subject: RE: [Observium] how does "ignore until" under device/alert settings work?...looking for a "in maintenance" mode for a device
The times are based on the server time.
Adam.
From: Tony Guadagno <tonyg@guadagno.org mailto:tonyg@guadagno.org> Sent: 19 April 2022 14:59 To: adama@observium.org mailto:adama@observium.org; 'Observium' <observium@observium.org mailto:observium@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 ran the test again, and got the same result:
<image001.png>
Note the time “ignore until” was set to 1 hr in the future. Then I shut down the server….after the polling interval: <image002.png>
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 mailto:adama@observium.org <adama@observium.org mailto:adama@observium.org> Sent: Tuesday, April 19, 2022 9:39 AM To: 'Observium' <observium@observium.org mailto:observium@observium.org>; Tony Guadagno <tonyg@guadagno.org mailto: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 :
<image003.png>
It shows the device hostname/style as ignored too.
Adam.
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org> On Behalf Of adama--- via observium Sent: 19 April 2022 14:36 To: 'Tony Guadagno' <tonyg@guadagno.org mailto:tonyg@guadagno.org>; 'Observium' <observium@observium.org mailto:observium@observium.org> Cc: adama@observium.org mailto: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 mailto:tonyg@guadagno.org> Sent: 18 April 2022 18:31 To: Observium <observium@observium.org mailto:observium@observium.org> Cc: Adam Armstrong <adama@observium.org mailto: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 Pick a server, go to properties/alerts. Set “ignore until” to 1 hr in the future Shutdown that server After the server shut down and a poling cycle passed, the observium screen shows <image004.jpg> And <image005.jpg>
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org> On Behalf Of Adam Armstrong via observium Sent: Monday, April 18, 2022 1:10 PM To: Observium <observium@observium.org mailto:observium@observium.org> Cc: Adam Armstrong <adama@observium.org mailto: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 mailto: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…. <image006.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 mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium_______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium