Ad Widget

Collapse

Value received from Received value [] is not suitable for value type [Numeric (unsign

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • napalm54
    Junior Member
    • Aug 2017
    • 1

    #1

    Value received from Received value [] is not suitable for value type [Numeric (unsign

    Hello guys,

    I have something very strange with custom script.
    Zabbix server - 3.2.7
    client Debian 9 - 3.0.7

    Running the script in the client working fine:
    ./rancher.sh stats Traefik-nginx-1 .cpu.usage.user
    215940000000
    Running the script from zabbix_agent_d working fine :
    zabbix_agentd -t rancher[stats,Traefik-nginx-1,.cpu.usage.user]
    rancher[stats,Traefik-nginx-1,.cpu.usage.user] [t|215950000000]
    Running from the server returned empty string
    zabbix_get -s 172.30.101.12 -k rancher[stats,Traefik-nginx-1,.memory.usage]
    The script works perfectly with other argument
    root@5e2b6f34a9b3 /]# zabbix_get -s 172.30.101.12 -k rancher[discovery,hosts]
    {
    "data" :
    [
    {"{#ID}":"1h60","{#NAME}":"infra-l1.labs.napalmlabs.fr"},{"{#ID}":"1h65","{#NAME}": "ross-galdo.labs.napalmlabs.fr"},{"{#ID}":"1h66","{#NAME }":"heidi-benesch.labs.napalmlabs.fr"},{"{#ID}":"1h68","{#NA ME}":"beth-lourence.labs.napalmlabs.fr"},{"{#ID}":"1h69","{#N AME}":"infra-l2.labs.napalmlabs.fr"}
    ]
    }
    At the end of the script, if I return fixed value (like echo 1) it's working.

    Log file :
    This is the log file
    24597:20170822:172437.492 EXECUTE_STR() command:' /etc/zabbix/zabbix_agentd.conf.d/scripts/rancher/rancher.sh stats Traefik-nginx-1 .memory.usage' len:0 cmd_result:''
    124597:20170822:172437.493 Sending back []
    124597:20170822:172437.493 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
    124601:20170822:172437.516 In zbx_waitpid()
    124601:20170822:172437.516 zbx_waitpid() exited, status:0
    124601:20170822:172437.517 End of zbx_waitpid():125266
Working...