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

test alert not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not A Bug
    • Major
    • None
    • Enterprise Edition
    • Scripts
    • None
    • alerter.php

    Description

      Hi 

      I am on version 25.12.14521

      the test alert by alert is not working

      php test_alert.php -a 51 -dd
      Cannot load Zend OPcache - it was already loaded
      DEBUG!
      Load class 'Console_Color2' from '/opt/observium/libs/pear/Console/Color2.php': OK
      DEBUG: is_cli() == TRUE, PHP_SAPI: 'cli', REMOTE_ADDR: ''
      CMD[/usr/bin/svn info /opt/observium]

      CMD EXITCODE[0]
      CMD RUNTIME[0.0304s]
      STDOUT[
      Path: .
      Working Copy Root Path: /opt/observium
      URL: https://svn.observium.org/svn/observium/branches/stable
      Repository Root: https://svn.observium.org/svn
      Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
      Revision: 14711
      Node Kind: directory
      Schedule: normal
      Last Changed Author: adama
      Last Changed Rev: 14521
      Last Changed Date: 2025-12-30 18:42:33 +0200 (Tue, 30 Dec 2025)

      ]

      CMD[/usr/bin/svn auth svn.observium.org | awk '/Username:/ \{print $2}']

      CMD EXITCODE[0]
      CMD RUNTIME[0.0232s]
      STDOUT[

      ]

       > $observium_version /opt/observium/includes/definitions/version.inc.php:105 
      string(11) "25.12.14521"

       > $observium_version_long /opt/observium/includes/definitions/version.inc.php:106 
      string(20) "25.12.14521 (stable)"

       > $svn_train /opt/observium/includes/definitions/version.inc.php:107 
      string(6) "stable"
      DEFINITIONS Time  : 0.124791 ms

      DEFINITIONS Memory: 4.11MB

      SQL[Load class 'Doctrine\SqlFormatter\SqlFormatter' from '/opt/observium/libs/Doctrine/SqlFormatter/SqlFormatter.php': OK
      Load class 'Doctrine\SqlFormatter\Tokenizer' from '/opt/observium/libs/Doctrine/SqlFormatter/Tokenizer.php': OK
      Load class 'Doctrine\SqlFormatter\Highlighter' from '/opt/observium/libs/Doctrine/SqlFormatter/Highlighter.php': OK
      Load class 'Doctrine\SqlFormatter\CliHighlighter' from '/opt/observium/libs/Doctrine/SqlFormatter/CliHighlighter.php': OK
      Load class 'Doctrine\SqlFormatter\Token' from '/opt/observium/libs/Doctrine/SqlFormatter/Token.php': OK
      Load class 'Doctrine\SqlFormatter\Cursor' from '/opt/observium/libs/Doctrine/SqlFormatter/Cursor.php': OK
      SELECT * FROM `observium_attribs`]
      ROWS[23]
      SQL RUNTIME[0.00038314s]

      SQL[SELECT @@SESSION.sql_mode;]
      ROWS[1]
      SQL RUNTIME[0.00047398s]

      SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION']
      ROWS[0]
      SQL RUNTIME[0.00010014s]
      DB mode(s) disabled: STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO

      SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]
      ROWS[1]
      SQL RUNTIME[0.0001092s]
      Observium Attributes already cached.

      SQL[SELECT * FROM `config`]
      ROWS[58]
      SQL RUNTIME[0.00036502s]

      CMD[/usr/sbin/fping -v 2>&1]

      CMD EXITCODE[0]
      CMD RUNTIME[0.0048s]
      CMD EXITDELAY[5ms]
      STDOUT[
      /usr/sbin/fping: Version 5.1
      ]

      SQL[SELECT EXISTS (SELECT 1 FROM `pollers`)]
      ROWS[1]
      SQL RUNTIME[0.00037694s]
      Observium 25.12.14521
      Test Alert Notification

      SQL[SELECT * FROM `alert_tests`]
      ROWS[44]
      SQL RUNTIME[0.00088811s]
      Cached 44 alert rules.

      SQL[SELECT * FROM `alert_assoc`]
      ROWS[0]
      SQL RUNTIME[0.00022221s]

      SQL[SELECT * FROM `alert_table` WHERE `alert_table_id` = '51']
      ROWS[0]
      SQL RUNTIME[0.00024819s]

        /opt/observium/test_alert.php:53 
      null

      SQL[SELECT * FROM `` WHERE ``.`` = '']
      ROWS[-1]
      SQL RUNTIME[7.701E-5s]
      SQL ERROR[1103 - Incorrect table name '']

       > $entry /opt/observium/includes/notifications.inc.php:103 
      null

       > $alert /opt/observium/includes/notifications.inc.php:104 
      null

        /opt/observium/includes/notifications.inc.php:105 
      array(
        [entity_shortname] => null
      )
      JSON DECODE[Not string passed]
      JSON RAW[

       > $str /opt/observium/includes/common.inc.php:5199 
      null

      ]

      SQL[SELECT * FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_id` IN (SELECT `contact_id` FROM `alert_contacts_assoc` WHERE `aca_type` = 'alert' AND `alert_checker_id` = '');]
      ROWS[0]
      SQL RUNTIME[0.00057387s]
      SQL WARNINGS[
       1292: Truncated incorrect DECIMAL value: ''
      ]
      DEBUG: process_notifications() - Passed empty variable notification_id, exit.

      Attachments

        Activity

          People

            adama Adam Armstrong
            Eng Ip
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: