Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-1267

Email Alert didn't work when device is down - Professional Edition

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • Alerting
    • None
    • Debian 32bit

    Description

      Email Alert Not working when server down

      1. test_mail.php working good
      root@observium:/opt/observium# ./test_mail.php -h 192.168.1.3
      Observium 0.15.1.6221
      Test E-mail Configuration

      See mail backend options here: http://www.observium.org/wiki/Configuration_Options#Email_backend_settings

      My Hostname: observium.litmuse.com
      E-mails ENABLED globally ($config['email']['enable'])
      E-mails use PHP-builtin MAIL backend ($config['email']['backend'])
      E-mails send from ($config['email']['from']):
      alter@localhost
      E-mails send to recipients based on default recipient from config and/or device sysContact.
      Try send test notification for 192.168.1.3 to these email(s):
      sebae@localhost
      Notification for 192.168.1.3 SENT.
      root@observium:/opt/observium#

      2. system alter not working /config.php
      Professional Edition(Brand new)

      // Enable alerter (not available in CE)
      $config['poller-wrapper']['alerter'] = TRUE;

      $config['email']['enable'] = TRUE;
      $config['email']['from'] = 'alter@localhost';
      $config['email']['default'] = NULL;
      $config['email']['default_only'] = FALSE;
      $config['email']['backend'] = 'mail';

      $config['alerts']['alerter']['default']['descr'] = "Default Email Alert";
      $config['alerts']['alerter']['default']['type'] = "email";
      $config['alerts']['alerter']['default']['contact'] = "sebae@localhost";
      $config['alerts']['alerter']['default']['enable'] = TRUE;

      • Attach my setting screen shot

      Attachments

        Activity

          [OBS-1267] Email Alert didn't work when device is down - Professional Edition

          Good Afternoon Guys,

          I am using the community edition:

          Version: 0.16.10.8128 

          As a user I want to get alerts via email.

          I have setup the alerts. I can see the alerts logs.

          config.php file below:

          // Enable alerter
          // $config['poller-wrapper']['alerter'] = TRUE;

          //$config['web_show_disabled'] = FALSE; // Show or not disabled devices on major pages.

          // 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'] = "matlyn@domain.com";
          $config['alerts']['alerter']['default']['enable'] = TRUE;

          $config['email']['default'] = "mlynch@herzlia.com";
          $config['alerts']['email']['from'] = "Observium <from@domain.com>";
          $config['email']['default_only'] = TRUE;

           

          //Email Settings

          $config['email']['enable'] = TRUE;
          $config['email']['from'] = 'from@domain.com';
          $config['email']['default'] = 'matlyn@domain.com';
          $config['email']['backend'] = 'smtp';
          $config['email']['sendmail_path'] = '/usr/sbin/sendmail';
          $config['email']['smtp_host'] = 'smtp.domain.com';
          $config['email']['smtp_port'] = 587;
          $config['email']['smtp_timeout'] = 10;
          $config['email']['smtp_auth'] = TRUE;
          $config['email']['smtp_username'] = 'NULL';
          $config['email']['smtp_password'] = 'NULL';

          // End config.php
          $config['email']['backend'] = "sendmail";
          $config['email']['sendmail_path'] = "/usr/bin/sendmail -t -i";

           

           

          Is it correct?

           

          I just cannot seem to receive the alerts via email.

           

          matlyn Matthew Lynch added a comment - Good Afternoon Guys, I am using the community edition: Version: 0.16.10.8128  As a user I want to get alerts via email. I have setup the alerts. I can see the alerts logs. config.php file below: // Enable alerter // $config ['poller-wrapper'] ['alerter'] = TRUE; //$config ['web_show_disabled'] = FALSE; // Show or not disabled devices on major pages. // 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'] = "matlyn@domain.com"; $config ['alerts'] ['alerter'] ['default'] ['enable'] = TRUE; $config ['email'] ['default'] = "mlynch@herzlia.com"; $config ['alerts'] ['email'] ['from'] = "Observium <from@domain.com>"; $config ['email'] ['default_only'] = TRUE;   //Email Settings $config ['email'] ['enable'] = TRUE; $config ['email'] ['from'] = 'from@domain.com'; $config ['email'] ['default'] = 'matlyn@domain.com'; $config ['email'] ['backend'] = 'smtp'; $config ['email'] ['sendmail_path'] = '/usr/sbin/sendmail'; $config ['email'] ['smtp_host'] = 'smtp.domain.com'; $config ['email'] ['smtp_port'] = 587; $config ['email'] ['smtp_timeout'] = 10; $config ['email'] ['smtp_auth'] = TRUE; $config ['email'] ['smtp_username'] = 'NULL'; $config ['email'] ['smtp_password'] = 'NULL'; // End config.php $config ['email'] ['backend'] = "sendmail"; $config ['email'] ['sendmail_path'] = "/usr/bin/sendmail -t -i";     Is it correct?   I just cannot seem to receive the alerts via email.  

          Hi Sanguen, for me it wasn't obviously clear at first, but alerting in Observium is based off of alert checks. Once an alert check is triggered, an "alert" log is generated and then an email will be sent out to the custom contact if it exists and then the "default" email for alerts.

          For some sanity, here are some sample alert checks I've cobbled together on my own that are general alerts that you can use. Make sure your alert checks are working and then you can test out all of the alerts you want and it works well.

          Below is a sample set you can use that I think satisfy a generic ruleset:

          http://imgur.com/q34ZBWQ

          mmeyers Michael Meyers added a comment - Hi Sanguen, for me it wasn't obviously clear at first, but alerting in Observium is based off of alert checks. Once an alert check is triggered, an "alert" log is generated and then an email will be sent out to the custom contact if it exists and then the "default" email for alerts. For some sanity, here are some sample alert checks I've cobbled together on my own that are general alerts that you can use. Make sure your alert checks are working and then you can test out all of the alerts you want and it works well. Below is a sample set you can use that I think satisfy a generic ruleset: http://imgur.com/q34ZBWQ

          This is not how the alerts work

          adama Adam Armstrong added a comment - This is not how the alerts work

          People

            adama Adam Armstrong
            serogrip sangeun
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: