Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24947

Runtime error triggering alarm notification

XMLWordPrintable

    • S24-W30/31, S24-W32/33
    • 0.25

      Runtime error:

      Runtime errors:
      Undefined array key 100077 [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerNotificationsGet->doAction() -> CControllerNotificationsGet->loadNotifications() -> CConfigFile->{closure}() in app/controllers/CControllerNotificationsGet.php:208]
      Trying to access array offset on null [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerNotificationsGet->doAction() -> CControllerNotificationsGet->loadNotifications() -> CConfigFile->{closure}() in app/controllers/CControllerNotificationsGet.php:213]
      Trying to access array offset on null [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerNotificationsGet->doAction() -> CControllerNotificationsGet->loadNotifications() -> CConfigFile->{closure}() in app/controllers/CControllerNotificationsGet.php:232]

      This problem was fixed in CTrigger.php file updating $sqlParts['where']['lastchangesince'] and $sqlParts['where']['lastchangetill']

      Looks like issue appears when several problems has same triggering time.

      // lastChangeSince
      if ($options['lastChangeSince'] !== null) {
         $sqlParts['where']['lastchangesince'] = 't.lastchange>='.zbx_dbstr($options['lastChangeSince']);
      }
      
      // lastChangeTill
      if ($options['lastChangeTill'] !== null) {
         $sqlParts['where']['lastchangetill'] = 't.lastchange<='.zbx_dbstr($options['lastChangeTill']);
      }

      Added '=' to 't.lastchange>' and 't.lastchange<'

            sasha Alexander Vladishev
            smaklakovs Sergejs Maklakovs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1h
                1h