Cannot evaluate expression: expected numeric token

XMLWordPrintable

    • Type: Incident report
    • Resolution: Commercial support required
    • Priority: Trivial
    • None
    • Affects Version/s: 4.4.7
    • Component/s: None
    • Environment:
      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

            Assignee:
            Zabbix Support Team
            Reporter:
            Julien VINCENT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: