[Agent2] Some parameterless item keys accept and ignore extra parameters

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.27rc1, 7.4.11rc1, 8.0.0beta1
    • Component/s: Agent2 (G)

      Steps to reproduce:

      • Test parameterless item keys with extra parameters using agent2:
      ./sbin/zabbix_agent2 -t "vfs.dev.discovery[test,params]"
      ./sbin/zabbix_agent2 -t "system.cpu.switches[test,params]"
      ./sbin/zabbix_agent2 -t "system.cpu.intr[test,params]"
      • Compare with Zabbix agentd:
      ./sbin/zabbix_agentd -t "system.cpu.switches[test,params]"
      ./sbin/zabbix_agentd -t "system.cpu.intr[test,params]" 
      ./sbin/zabbix_agentd -t "vfs.dev.discovery[test,params]"
      
      

      Result: Agent2 ignores extra parameters and returns data as if no parameters were provided:

      ystem.cpu.switches[test,params]               [s|11176518]
      system.cpu.intr[test,params]                  [s|8276576]
      vfs.dev.discovery[test,params]                [s|[{"{#DEVNAME}":"loop0",...}]] 

      Expected: The behavior should be the same as for Zabbix agent - extra parameters should be rejected with "Item does not allow parameters." message:

      system.cpu.switches[test,params]              [m|ZBX_NOTSUPPORTED] [Item does not allow parameters.]
      system.cpu.intr[test,params]                  [m|ZBX_NOTSUPPORTED] [Item does not allow parameters.]
      vfs.dev.discovery[test,params]                [m|ZBX_NOTSUPPORTED] [Item does not allow parameters.] 

            Assignee:
            Zabbix Support Team
            Reporter:
            Kirils Seve
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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