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

XMLWordPrintable

    • S26-W28/29, S26-W30/31
    • 1

      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

            Assignee:
            Andrejs Griščenko
            Reporter:
            Nikita Gogolevs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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