![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Run "./poller.php -h sw01 -p sensors -d -r >> output.txt" and send me the output.
adam. On 01/02/2016 12:35:04, Laszlo Nemeth laszlo.nemeth@emarsys.com wrote: This is presented in my own too:
$config['alerts']['interval'] = 86400; // How frequently to re-send a notification for a continuing alert condition
But i’m getting the alerts in every polling :(
Here is one alert (without formatting):
ALERT Alert Temp alarm! Entity Fex-180 Module-1 Die-1 Conditions sensor_value gt 50 (51) Metrics sensor_value = 51 Duration Unknown
Device Device sw01 Hardware N5K-C5548UP Operating System Cisco NX-OS 6.0(2)N2(1) uk9 Location Uptime 359 days, 13h 56m 19s sensor_graph
Regards, Laszlo
From: observium <observium-bounces@observium.org [mailto:observium-bounces@observium.org]> on behalf of Adam Armstrong <adama@memetic.org [mailto:adama@memetic.org]> Reply-To: Observium Network Observation System <observium@observium.org [mailto:observium@observium.org]> Date: Monday 1 February 2016 at 13:06 To: "observium@observium.org [mailto:observium@observium.org]" <observium@observium.org [mailto:observium@observium.org]> Subject: Re: [Observium] Disable email notification every 5 minutes
This should be present in your defaults.inc.php :
root@omega:/home/observium/dev# grep interval includes/defaults.inc.php $config['alerts']['interval'] = 86400; // How frequently to re-send a notification for a continuing alert condition
Do not edit this file!
adam.
On 01/02/2016 12:03:56, Laszlo Nemeth <laszlo.nemeth@emarsys.com [mailto:laszlo.nemeth@emarsys.com]> wrote: Hi,
Thanks for the info.
I didn’t change anything. I installed the previuos CE, used it for 2-3 week and upgraded with the latest CE.
In the config.php i found this for the “alert”:
// Enable alerter (not available in CE) #$config['poller-wrapper']['alerter'] = TRUE; // Set up a default alerter (email to a single address) $config['alerts']['alerter']['default']['descr'] = "Default Email Alert"; $config['alerts']['alerter']['default']['type'] = "email"; $config['alerts']['alerter']['default']['contact'] = "you@yourdomain.org [mailto:you@yourdomain.org]"; $config['alerts']['alerter']['default']['enable'] = TRUE;
I didn’t touch this datas.
I got this output if i press the Global settings -> Changed dump:
array(10db_host=>localhostdb_user=>observiumdb_pass=>*********db_name=>observiuminstall_dir=>/opt/observiumsnmp=>array(1community=>array(1))auth_mechanism=>mysqlalerts=>array(1alerter=>array(1))rrd_dir=>/var/log/observium/rrdlog_dir=>/var/log/observium/log)
In the “full dump” i found the “realtime_interval” word only that contain the “interval” word.
Where can i found this “alerts interval” to check the value of it?
Thanks! Laszlo
From: observium <observium-bounces@observium.org [mailto:observium-bounces@observium.org]> on behalf of Tom Laermans <tom.laermans@powersource.cx [mailto:tom.laermans@powersource.cx]> Reply-To: Observium Network Observation System <observium@observium.org [mailto:observium@observium.org]> Date: Monday 1 February 2016 at 12:13 To: Observium Network Observation System <observium@observium.org [mailto:observium@observium.org]> Subject: Re: [Observium] Disable email notification every 5 minutes
$config['alerts']['interval'] = 86400; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day.
If you set this to 0 you get a notification re-sent every poller run. Did you perhaps set this?
Tom
On 2016-02-01 12:11, Adam Armstrong wrote:
Hi, We won't resend emails more frequently than every 24 hours without modifying something. What settings have you changed? Adam. Sent from BlueMail [http://www.bluemail.me/r]
On Feb 1, 2016, at 10:12, Laszlo Nemeth <laszlo.nemeth@emarsys.com [mailto:laszlo.nemeth@emarsys.com]> wrote: Hello
I installed the latest CE (0.16.1.7533) and set up some alerts with email notification.
It is working great, but now i get lot of mails in every 5 minutes from the same alerts.
Can i set up that get email only when the alarm caused or resolved? So just 2 mails (or get mails in X minutes (e.g. In every 1 hors) not in every 5 minutes?
Thanks!
Laszlo 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]