Hello

 

A half year ago I met this problem too in the CE version.

 

But I got a patch from a member of this list and after I applied it, the alerting works normally.

 

May be Adam will kill me for this but here is the patch J

 

Includes/alerts.inc.php, I replaced the following line:

 

if ((time() - $entry['last_alerted']) < $config['alerts']['interval'] && !isset($GLOBALS['spam'])) { $entry['suppress_alert'] = TRUE; }

 

with:

 

if ((time() - $entry['last_alerted']) < 86400 && !isset($GLOBALS['spam'])) { $entry['suppress_alert'] = TRUE; }

 

I just installed it in a half year ago but later we bought the Professional verison and looks like this patch not needed in it.

Now I checked it and this line in my (Prof version)  alerting.inc.php looks like the unpatched version and no problem with the alerting.

 

So it is just a idea, if you are on the CE, may be you can try it.

 

BR

Laszlo

 

From: observium <observium-bounces@observium.org> on behalf of Richard Franks <richardfranks152@gmail.com>
Reply-To: Observium Network Observation System <observium@observium.org>
Date: Thursday 21 July 2016 at 08:17
To: Observium Network Observation System <observium@observium.org>
Subject: Re: [Observium] Alert checker sending email notifications every polling round

 

I’ve noticed this in my CE version as well, I ended up setting $config['alerts']['interval'] = 86400; at the top of the alerter.php file.

 

I would love to use subscription edition, but I just can’t get work to shell out for it :(

 

R

 

On 21 Jul 2016, at 01:03, Adam Armstrong <adama@memetic.org> wrote:

 

It should trigger when the alert goes up or down, and every 24 hours if it is down.

I don't recall any probably with repeated renotification, and your database seems to have the correct data in it.

Either something is weird on your install, or this really is a CE bug :)

Adam.

Sent from BlueMail

On 21 Jul 2016, at 01:01, Daniel Horth <dan@horth.com.au> wrote:

The spam from Observium is ongoing. :(

 

It’s not just this alert checker - any failed one causes repeated notifications

 

Can someone confirm my assumption that an alert notification should only be sent when the alert status changes - not each time the polling cycle runs.

 

In the mean time I’m going to have a dig through the code to work out what is triggering the notifications and why the spam.

 

Thanks 

 

 

On 19 Jul 2016, at 5:38 PM, Daniel Horth <dan@horth.com.au> wrote:

 

If it helps I can send sample DB data for that device_id when back at work tomorrow

 

 

On 19 Jul 2016, at 5:33 PM, Daniel Horth <dan@horth.com.au> wrote:

 

yes - has a timestamp in it

 

Interface shows last alerted time also, e.g.:

 

 

 

 

On 19 Jul 2016, at 4:54 PM, Adam Armstrong <adama@memetic.org> wrote:

 

Is the last_alerted field set in the database?

Adam.

Sent from BlueMail

On 19 Jul 2016, at 02:36, Daniel Horth <dan@horth.com.au> wrote:

Hi all

I have an odd alerting issue where I am receiving email alerts about a failed check each time a polling interval passes.

 

 

 



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

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