![](https://secure.gravatar.com/avatar/11b54b3dd25b712395dab9818c67596f.jpg?s=120&d=mm&r=g)
Surprisingly, it seems to impact the status widgets too, I must have updated the code that generates their arrays.
Setting omega to ignored removes it from the status widgets, turning off the ignore_until makes it reappear in the widgets.
Are you sure you’re not confusing two different devices? This isn’t difficult with “windows admin” style naming schemes! 😃
Adam.
From: observium observium-bounces@observium.org On Behalf Of adama--- via observium Sent: 19 April 2022 14:39 To: 'Observium' observium@observium.org; 'Tony Guadagno' tonyg@guadagno.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
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 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
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 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….
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