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

Error appears in the log, when testing item with value mapping and preprocessing step: discard unchanged

XMLWordPrintable

      Steps to reproduce:
      Precondition: Host with Zabbix agent interface, server and agent are running

      1. Create Zabbix agent item -> agent.ping, add valid value mapping (0 -> Down, 1 -> Up), add preprocessing: Discard unchanged
      2. Click -> Test
      3. Test item at least 2 times
      4. Check error logs

      Result:
      Error appears:

      TypeError: CValueMapHelper::applyValueMap(): Argument #2 ($value) must be of type string, null given, called in /home/zabbix/workspace/master/ui/app/controllers/CControllerPopupItemTestSend.php on line 502 and defined in /home/zabbix/workspace/master/ui/include/classes/helpers/CValueMapHelper.php:31
      Stack trace:
      #0 /home/zabbix/workspace/master/ui/app/controllers/CControllerPopupItemTestSend.php(502): CValueMapHelper::applyValueMap()
      #1 /home/zabbix/workspace/master/ui/app/controllers/CControllerPopupItemTestSend.php(355): CControllerPopupItemTestSend->processTestResult()
      #2 /home/zabbix/workspace/master/ui/include/classes/mvc/CController.php(569): CControllerPopupItemTestSend->doAction()
      #3 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(648): CController->run()
      #4 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(228): ZBase->processRequest()
      #5 /home/zabbix/workspace/master/ui/include/config.inc.php(20): ZBase->run()
      #6 /home/zabbix/workspace/master/ui/zabbix.php(17): require_once('...')
      #7 {main}

      Expected:
      No errors should be present

            zabbix.dev Zabbix Development Team
            ngogolevs Nikita Gogolevs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: