Details

    • Bug
    • Resolution: Incomplete
    • Minor
    • None
    • None
    • Alerting
    • None
    • Ubuntu 12,04 LTS, Core i 5 3Ghz, RAM 2048Mb

    Description

      I didn't have any mail alert when my device down,

      I already set :
      // Mailer backend Settings

      $config['email_backend'] = 'sendmail'; // Mail backend. Allowed: "mail" (PHP's built-in), "sendmail", "smtp".
      $config['email_from'] = '"Observium Network Monitor"<observium@domain>'; // Mail from. Default: "OBSERVIUM Network Monito$
      $config['email_sendmail_path'] = '/usr/sbin/sendmail'; // The location of the sendmail program.
      $config['email_smtp_host'] = 'localhost'; // Outgoing SMTP server name.
      $config['email_smtp_port'] = 25; // The port to connect.
      $config['email_smtp_timeout'] = 10; // SMTP connection timeout in seconds.
      $config['email_smtp_secure'] = NULL; // Enable encryption. Use 'tls' or 'ssl'
      $config['email_smtp_auth'] = FALSE; // Whether or not to use SMTP authentication.
      $config['email_smtp_username'] = NULL; // SMTP username.
      $config['email_smtp_password'] = NULL; // Password for SMTP authentication.

      // Alerting Settings

      $config['alerts']['email']['default'] = 'it.dctn@domain'; // Default alert recipient
      $config['alerts']['email']['default_only'] = TRUE; // Only use default recipient
      $config['alerts']['email']['enable'] = TRUE; // Enable email alerts
      $config['alerts']['bgp']['whitelist'] = NULL; // Populate as an array() with ASNs to alert on.

      $config['alerts']['port']['ifdown'] = TRUE; // Generate alerts for ports that go down
      $config['alerts']['port']['ifdown_types'] = array('core', 'transit', 'peering'); // Generate alerts for ports that go down

      $config['alerts']['interval'] = 86400; // How frequently to re-send a notification for a continuing alert condition // In seconds. Default is 1 day.

      I already install mailutils, I try send mail via command mail and it was sending the email (OK),
      but still I didn't get any email alert,

      Please kindly help,
      Thanks a Lot

      Attachments

        Activity

          [OBS-652] Email Alert didn't work

          Alerts in CE version are deprecated and not expected to work.

          adama Adam Armstrong added a comment - Alerts in CE version are deprecated and not expected to work.
          momoi Dennish added a comment -

          Here the info :
          Observium CE 0.13.10.4585
          Apache 2.2.22 (Ubuntu)
          PHP 5.3.10-1ubuntu3.9
          MySQL 5.5.35-0ubuntu0.12.04.1
          RRDtool 1.4.7

          momoi Dennish added a comment - Here the info : Observium CE 0.13.10.4585 Apache 2.2.22 (Ubuntu) PHP 5.3.10-1ubuntu3.9 MySQL 5.5.35-0ubuntu0.12.04.1 RRDtool 1.4.7

          No Observium version.

          adama Adam Armstrong added a comment - No Observium version.
          momoi Dennish added a comment -

          did I need to make that file ?
          I was success to deliver message to my email using another file like observium.log,

          but a minute ago my device was down, but still didn't get email alert

          momoi Dennish added a comment - did I need to make that file ? I was success to deliver message to my email using another file like observium.log, but a minute ago my device was down, but still didn't get email alert

          of course.. you must create it yourself first.

          landy Mike Stupalov added a comment - of course.. you must create it yourself first.
          momoi Dennish added a comment -

          I didn't find
          mail.txt

          root@observium-HVM-domU:/opt/observium# sendmail -v it.dctn@google.com < test.mail
          -bash: test.mail: No such file or directory
          root@observium-HVM-domU:/opt/observium#

          momoi Dennish added a comment - I didn't find mail.txt root@observium-HVM-domU:/opt/observium# sendmail -v it.dctn@google.com < test.mail -bash: test.mail: No such file or directory root@observium-HVM-domU:/opt/observium#

          Do not set this option to gmail domain: $config['email_from'] because gmail recheck their mail addresses.
          Better to use server name as a mail domain or leave this option by default.

          landy Mike Stupalov added a comment - Do not set this option to gmail domain: $config['email_from'] because gmail recheck their mail addresses. Better to use server name as a mail domain or leave this option by default.
          momoi Dennish added a comment -

          When I use that command you suggest, my email receive the file,

          is this the correct input type for this 2 config

          $config['email_from'] = '"Observium Network Monitor"<observium@google.com>'; <-- the sender
          $config['alerts']['email']['default'] = 'it.dctn@google.com'; <--the recepient email address

          momoi Dennish added a comment - When I use that command you suggest, my email receive the file, is this the correct input type for this 2 config $config ['email_from'] = '"Observium Network Monitor"<observium@google.com>'; <-- the sender $config ['alerts'] ['email'] ['default'] = 'it.dctn@google.com'; <--the recepient email address

          Than test sending mail via cmd (test.mail is file with some test mail body):

          sendmail -v 'it.dctn@domain' < test.mail

          show what output..

          landy Mike Stupalov added a comment - Than test sending mail via cmd (test.mail is file with some test mail body): sendmail -v 'it.dctn@domain' < test.mail show what output..
          momoi Dennish added a comment -

          'domain' I mean it was my domain, like gmail.com,
          I use the correct email address,

          momoi Dennish added a comment - 'domain' I mean it was my domain, like gmail.com, I use the correct email address,

          People

            adama Adam Armstrong
            momoi Dennish
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: