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

Cannot evaluate expression: expected numeric token

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Commercial support required
    • Icon: Trivial Trivial
    • None
    • 4.4.7
    • None
    • Ubuntu 18.04

      Hello everyone, 

      Please find below the issue encountered.

      I am using the system run key to get a docker image version.

      The command i have works fine but for a specific reason, i am created a calculated item, unfortunately it does not work, i believe because it needs to be in text type and not in numeric mode.

       

      Steps to reproduce:

      1. Create a zabbix-agent item using the system run key below :
        (system.run[sudo docker ps | grep "name of the container" | cut -d':' -f 2 | cut -c1-9]), output works great
      2. Create a calculated item and get the last information above with the following formula : 
        last(system.run[sudo docker ps | grep "navineo-pc-integ" | cut -d':' -f 2 | cut -c1-9])

      Result:
      See screenshot for more information

        1. calculated item.PNG
          9 kB
          Julien VINCENT
        2. device_version.PNG
          10 kB
          Julien VINCENT

            zabbix.support Zabbix Support Team
            Faulcons Julien VINCENT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: