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

Calculated items in Zabbix 6 does't work properly

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 6.0.4, 6.0.5, 6.2.0beta3
    • Server (S)

      Steps to reproduce:

      There is not possible to do simple result of subtraction in calculated item - for example:
      I have simple file somefile.txt that contains only static value "20", then I do calculation in calculated item:

      last(/Zabbix server/logrt[/somefile.txt])-10-2
      

      result: 10, but should be: 20-10-2=8

      another test:

      last(/Zabbix server/logrt[/somefile.txt])-10-2-1-1-1
      

      result: 10, but should be: 5

      but this works properly:

      last(/Zabbix server/logrt[/somefile.txt])-10+2
      

      result: 12, it's ok: 20-10+2=12

      another test:

      last(/Zabbix server/logrt[/somefile.txt])-10+2+1+1+1
      

      result: 15, it's ok: 20-10+2+1+1+1=15

      So, problem is only in substraction. In Zabbix 5.0.x all works fine, but not n Zabbix 6.x.x (my version is 6.0.3)

       

            zabbix.dev Zabbix Development Team
            Was Andrew
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: