Ad Widget

Collapse

zabbix_sender always fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joewac
    Junior Member
    • Sep 2017
    • 2

    #1

    zabbix_sender always fails

    I am trying to fake out the value of a specific key from a host so that I can test remote commands. Here is the trigger as entered into Zabbix, which works just fine.

    {syrlgf4n6g:vfs.fs.size[/working,pfree].avg(1m,0)}<80

    In order to test my remote command Action, I am trying to use zabbix_sender with the following command:

    zabbix_sender -z syrlgf4n6h -s syrlgf4n6g -k "vfs.fs.size[/working,pfree]" -o 15.0 -vv

    But I always get this:

    zabbix_sender [26378]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000038"}]
    info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000038"
    sent: 1; skipped: 0; total: 1

    Is there something wrong with my zabbix_sender command syntax?

    Thanks
  • Clontarf[X]
    Member
    • Jan 2017
    • 80

    #2
    Make sure your -s parameter matches the host (not display name) in Zabbix.

    If your host is monitored via a proxy, -z should be your proxy name (as configured in Administration -> Proxies).

    Make sure you are sending a valid value type (float, integer e.t.c) for the item.

    Comment

    • joewac
      Junior Member
      • Sep 2017
      • 2

      #3
      I checked all the parameters. Per zabbix, the host name is the same as what I am putting in the -s parameter. I am not using a proxy, and the particular value for the key should be a float, so I entered 15.0. If I enter 15, I get the same result.

      I'm pretty sure the server is getting the data, but for some reason does not like it. Is there a log on the server some place that has more information? I checked all the logs on the server in /var/log/zabbix, but did not find any indication of any error due to the zabbix_send.

      Comment

      Working...