Alert notification
Hello,
today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
Hi Ondrej,
You certainly shouldn't bet getting notification for the same alert every 5 minutes.
Have you correctly run the database updates? (./discovery.php -u)
Thanks, adam. On 23/09/2015 21:13:35, Ondrej Beran ob@nix.cz wrote: Hello,
today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
I am actually seeing this exact thing on my production server- the same alert being sent every 5 minutes when the device is polled, persisting until the situation is resolved and the recovery message comes through. The database updates have been completing without errors, running version 7024.
I am NOT seeing this on my dev server, however. A single alert is sent when an alert checker fails, and a recovery message follows when it was corrected. No problems here. While dev is currently at version 7035, I recall seeing the same when they were both at latest. My best guess is that it has something to do with configuration for the old alerting system- my prod server has been running for a couple years and simply updated, while the dev is a fairly recent build.
Below are the 'alerts' and 'email' sections of my prod's config.php file. The default address was disabled after switching to the contact system.
Thank you!
// Set up a default alerter (email to a single address) //$config['email']['default'] = "noc@netgainhosting.$ $config['alerts']['email']['from'] = "observium@netgainhosting.com"; $config['email']['default_only'] = TRUE; $config['email']['enable'] = TRUE; // Disables OLD alerting sy$ $config['alerts']['interval'] = 500; //$config['alerts']['interval'] = 86400;
// Mailer backend Settings $config['web_url'] = "https://observium.services.local/"; $config['email']['backend'] = 'smtp'; // Mail backend. $ $config['email']['from'] = "observium@netgainhosting.com"; $ $config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location o$ $config['email']['smtp_host'] = '10.77.71.1'; // Outgoing SMTP$ $config['email']['smtp_port'] = 25; // The port to co$ $config['email']['smtp_timeout'] = 10; // SMTP connectio$ $config['email_smtp_secure'] = NULL; // Enable encrypt$ $config['email']['smtp_auth'] = FALSE; // Whether or not$ $config['email_smtp_username'] = NULL; // SMTP username. $config['email_smtp_password'] = NULL; // Password for S$
$config['email']['graphs'] = FALSE; // Remove graphs in emailed alerts
On Wed, Sep 23, 2015 at 2:07 PM, Adam Armstrong adama@memetic.org wrote:
Hi Ondrej,
You certainly shouldn't bet getting notification for the same alert every 5 minutes.
Have you correctly run the database updates? (./discovery.php -u)
Thanks, adam.
On 23/09/2015 21:13:35, Ondrej Beran ob@nix.cz wrote: Hello,
today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
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
You have set interval to 500, which will re-alert every 500 seconds.
Mystery solved!
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 23 September 2015 23:04:36 Andrew Plas andrewp.plas@gmail.com wrote:
I am actually seeing this exact thing on my production server- the same alert being sent every 5 minutes when the device is polled, persisting until the situation is resolved and the recovery message comes through. The database updates have been completing without errors, running version 7024.
I am NOT seeing this on my dev server, however. A single alert is sent when an alert checker fails, and a recovery message follows when it was corrected. No problems here. While dev is currently at version 7035, I recall seeing the same when they were both at latest. My best guess is that it has something to do with configuration for the old alerting system- my prod server has been running for a couple years and simply updated, while the dev is a fairly recent build.
Below are the 'alerts' and 'email' sections of my prod's config.php file. The default address was disabled after switching to the contact system.
Thank you!
// Set up a default alerter (email to a single address) //$config['email']['default'] = "noc@netgainhosting.$ $config['alerts']['email']['from'] = "observium@netgainhosting.com"; $config['email']['default_only'] = TRUE; $config['email']['enable'] = TRUE; // Disables OLD alerting sy$ $config['alerts']['interval'] = 500; //$config['alerts']['interval'] = 86400;
// Mailer backend Settings $config['web_url'] = "https://observium.services.local/"; $config['email']['backend'] = 'smtp'; // Mail backend. $ $config['email']['from'] = "observium@netgainhosting.com"; $ $config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location o$ $config['email']['smtp_host'] = '10.77.71.1'; // Outgoing SMTP$ $config['email']['smtp_port'] = 25; // The port to co$ $config['email']['smtp_timeout'] = 10; // SMTP connectio$ $config['email_smtp_secure'] = NULL; // Enable encrypt$ $config['email']['smtp_auth'] = FALSE; // Whether or not$ $config['email_smtp_username'] = NULL; // SMTP username. $config['email_smtp_password'] = NULL; // Password for S$
$config['email']['graphs'] = FALSE; // Remove graphs in emailed alerts
On Wed, Sep 23, 2015 at 2:07 PM, Adam Armstrong adama@memetic.org wrote:
Hi Ondrej,
You certainly shouldn't bet getting notification for the same alert every 5 minutes.
Have you correctly run the database updates? (./discovery.php -u)
Thanks, adam.
On 23/09/2015 21:13:35, Ondrej Beran ob@nix.cz wrote: Hello,
today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
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
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Not for Ondrej though:
$config['alerts']['interval'] = '31536000'; // How
frequently to re-send a notification for a continuing alert condition
I'm suspecting some query to update the state not going through due to db structure issue.
Tom
On 23/09/2015 22:16, Adam Armstrong wrote:
You have set interval to 500, which will re-alert every 500 seconds.
Mystery solved!
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 23 September 2015 23:04:36 Andrew Plas andrewp.plas@gmail.com wrote:
I am actually seeing this exact thing on my production server- the same alert being sent every 5 minutes when the device is polled, persisting until the situation is resolved and the recovery message comes through. The database updates have been completing without errors, running version 7024.
I am NOT seeing this on my dev server, however. A single alert is sent when an alert checker fails, and a recovery message follows when it was corrected. No problems here. While dev is currently at version 7035, I recall seeing the same when they were both at latest. My best guess is that it has something to do with configuration for the old alerting system- my prod server has been running for a couple years and simply updated, while the dev is a fairly recent build.
Below are the 'alerts' and 'email' sections of my prod's config.php file. The default address was disabled after switching to the contact system.
Thank you!
// Set up a default alerter (email to a single address) //$config['email']['default'] = "noc@netgainhosting.$ $config['alerts']['email']['from'] = "observium@netgainhosting.com mailto:observium@netgainhosting.com"; $config['email']['default_only'] = TRUE; $config['email']['enable'] = TRUE; // Disables OLD alerting sy$ $config['alerts']['interval'] = 500; //$config['alerts']['interval'] = 86400;
// Mailer backend Settings $config['web_url'] = "https://observium.services.local/"; $config['email']['backend'] = 'smtp'; // Mail backend. $ $config['email']['from'] = "observium@netgainhosting.com mailto:observium@netgainhosting.com"; $ $config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location o$ $config['email']['smtp_host'] = '10.77.71.1'; // Outgoing SMTP$ $config['email']['smtp_port'] = 25; // The port to co$ $config['email']['smtp_timeout'] = 10; // SMTP connectio$ $config['email_smtp_secure'] = NULL; // Enable encrypt$ $config['email']['smtp_auth'] = FALSE; // Whether or not$ $config['email_smtp_username'] = NULL; // SMTP username. $config['email_smtp_password'] = NULL; // Password for S$
$config['email']['graphs'] = FALSE; // Remove graphs in emailed alerts
On Wed, Sep 23, 2015 at 2:07 PM, Adam Armstrong <adama@memetic.org mailto:adama@memetic.org> wrote:
Hi Ondrej, You certainly shouldn't bet getting notification for the same alert every 5 minutes. Have you correctly run the database updates? (./discovery.php -u) Thanks, adam.
On 23/09/2015 21:13:35, Ondrej Beran <ob@nix.cz <mailto:ob@nix.cz>> wrote: Hello, today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ? defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> 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
observium mailing list observium@observium.org mailto:observium%40observium.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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Adam, you are a scholar and a gentleman. Your observational skills are razor sharp! As for mine, NOW I notice the default 86400 commented out right below it... That, obviously, did the trick. Thank you.
As to the thread before I hijacked it... Doesn't the value have to be in config.php rather than edited into defaults.inc.php?
On Wed, Sep 23, 2015 at 3:30 PM, Tom Laermans tom.laermans@powersource.cx wrote:
Not for Ondrej though:
$config['alerts']['interval'] = '31536000'; // How
frequently to re-send a notification for a continuing alert condition
I'm suspecting some query to update the state not going through due to db structure issue.
Tom
On 23/09/2015 22:16, Adam Armstrong wrote:
You have set interval to 500, which will re-alert every 500 seconds.
Mystery solved!
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 23 September 2015 23:04:36 Andrew Plas andrewp.plas@gmail.com andrewp.plas@gmail.com wrote:
I am actually seeing this exact thing on my production server- the same alert being sent every 5 minutes when the device is polled, persisting until the situation is resolved and the recovery message comes through. The database updates have been completing without errors, running version 7024.
I am NOT seeing this on my dev server, however. A single alert is sent when an alert checker fails, and a recovery message follows when it was corrected. No problems here. While dev is currently at version 7035, I recall seeing the same when they were both at latest. My best guess is that it has something to do with configuration for the old alerting system- my prod server has been running for a couple years and simply updated, while the dev is a fairly recent build.
Below are the 'alerts' and 'email' sections of my prod's config.php file. The default address was disabled after switching to the contact system.
Thank you!
// Set up a default alerter (email to a single address) //$config['email']['default'] = "noc@netgainhosting.$ $config['alerts']['email']['from'] = " observium@netgainhosting.com"; $config['email']['default_only'] = TRUE; $config['email']['enable'] = TRUE; // Disables OLD alerting sy$ $config['alerts']['interval'] = 500; //$config['alerts']['interval'] = 86400;
// Mailer backend Settings $config['web_url'] = "https://observium.services.local/"; $config['email']['backend'] = 'smtp'; // Mail backend. $ $config['email']['from'] = "observium@netgainhosting.com"; $ $config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location o$ $config['email']['smtp_host'] = '10.77.71.1'; // Outgoing SMTP$ $config['email']['smtp_port'] = 25; // The port to co$ $config['email']['smtp_timeout'] = 10; // SMTP connectio$ $config['email_smtp_secure'] = NULL; // Enable encrypt$ $config['email']['smtp_auth'] = FALSE; // Whether or not$ $config['email_smtp_username'] = NULL; // SMTP username. $config['email_smtp_password'] = NULL; // Password for S$
$config['email']['graphs'] = FALSE; // Remove graphs in emailed alerts
On Wed, Sep 23, 2015 at 2:07 PM, Adam Armstrong < adama@memetic.org adama@memetic.org> wrote:
Hi Ondrej,
You certainly shouldn't bet getting notification for the same alert every 5 minutes.
Have you correctly run the database updates? (./discovery.php -u)
Thanks, adam.
On 23/09/2015 21:13:35, Ondrej Beran ob@nix.cz wrote: Hello,
today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
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
observium mailing list observium@observium.org http:/ /postman.memetic.org/cgi-bin/mailman/listinfo/ observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Indeed. One should never, ever edit defaults.inc php, since that can break updates.
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 24 September 2015 02:54:31 Andrew Plas andrewp.plas@gmail.com wrote:
Adam, you are a scholar and a gentleman. Your observational skills are razor sharp! As for mine, NOW I notice the default 86400 commented out right below it... That, obviously, did the trick. Thank you.
As to the thread before I hijacked it... Doesn't the value have to be in config.php rather than edited into defaults.inc.php?
On Wed, Sep 23, 2015 at 3:30 PM, Tom Laermans tom.laermans@powersource.cx wrote:
Not for Ondrej though:
$config['alerts']['interval'] = '31536000'; // How
frequently to re-send a notification for a continuing alert condition
I'm suspecting some query to update the state not going through due to db structure issue.
Tom
On 23/09/2015 22:16, Adam Armstrong wrote:
You have set interval to 500, which will re-alert every 500 seconds.
Mystery solved!
Adam.
Sent with AquaMail for Android http://www.aqua-mail.com
On 23 September 2015 23:04:36 Andrew Plas andrewp.plas@gmail.com andrewp.plas@gmail.com wrote:
I am actually seeing this exact thing on my production server- the same alert being sent every 5 minutes when the device is polled, persisting until the situation is resolved and the recovery message comes through. The database updates have been completing without errors, running version 7024.
I am NOT seeing this on my dev server, however. A single alert is sent when an alert checker fails, and a recovery message follows when it was corrected. No problems here. While dev is currently at version 7035, I recall seeing the same when they were both at latest. My best guess is that it has something to do with configuration for the old alerting system- my prod server has been running for a couple years and simply updated, while the dev is a fairly recent build.
Below are the 'alerts' and 'email' sections of my prod's config.php file. The default address was disabled after switching to the contact system.
Thank you!
// Set up a default alerter (email to a single address) //$config['email']['default'] = "noc@netgainhosting.$ $config['alerts']['email']['from'] = " observium@netgainhosting.com"; $config['email']['default_only'] = TRUE; $config['email']['enable'] = TRUE; // Disables OLD alerting sy$ $config['alerts']['interval'] = 500; //$config['alerts']['interval'] = 86400;
// Mailer backend Settings $config['web_url'] = "https://observium.services.local/"; $config['email']['backend'] = 'smtp'; // Mail backend. $ $config['email']['from'] = "observium@netgainhosting.com"; $ $config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location o$ $config['email']['smtp_host'] = '10.77.71.1'; // Outgoing SMTP$ $config['email']['smtp_port'] = 25; // The port to co$ $config['email']['smtp_timeout'] = 10; // SMTP connectio$ $config['email_smtp_secure'] = NULL; // Enable encrypt$ $config['email']['smtp_auth'] = FALSE; // Whether or not$ $config['email_smtp_username'] = NULL; // SMTP username. $config['email_smtp_password'] = NULL; // Password for S$
$config['email']['graphs'] = FALSE; // Remove graphs in emailed alerts
On Wed, Sep 23, 2015 at 2:07 PM, Adam Armstrong < adama@memetic.org adama@memetic.org> wrote:
Hi Ondrej,
You certainly shouldn't bet getting notification for the same alert every 5 minutes.
Have you correctly run the database updates? (./discovery.php -u)
Thanks, adam.
On 23/09/2015 21:13:35, Ondrej Beran ob@nix.cz wrote: Hello,
today I have updated version 6531 to 7038 and I still receive the same alert notification every 5 minute. Is it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
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
observium mailing list observium@observium.org http:/ /postman.memetic.org/cgi-bin/mailman/listinfo/ observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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
Hi Adam,
yes, I correctly updated db, no errors .. I still receive the same alert ...
#svn update #./discovery.php -u
Observium Professional 0.15.9.7040 -- Database is up to date.
Thank you Ondrej
Dne 23.9.2015 v 21:07 Adam Armstrong napsal(a):
Hi Ondrej,
You certainly shouldn't bet getting notification for the same alert every 5 minutes.
Have you correctly run the database updates? (./discovery.php -u)
Thanks, adam.
On 23/09/2015 21:13:35, Ondrej Beran ob@nix.cz wrote:
Hello,
today I have updated version 6531 to 7038 ands it possible to change this notification to receive this alert only once when the service is down and than when it is renewed, not repeatedly ?
defaults.inc.php $config['alerts']['interval'] = '31536000'; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day. Thank you Ondrej
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
participants (5)
-
Adam Armstrong
-
Adam Armstrong
-
Andrew Plas
-
Ondrej Beran
-
Tom Laermans