Ad Widget

Collapse

Zabbix_Sender issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zab_test
    Junior Member
    • Oct 2008
    • 4

    #1

    Zabbix_Sender issue

    I am testing Zabbix 1.6 and it looks to be really a nice tool.

    I am testing the zabbix_sender utility.

    The zabbix_sender utility for an existing host fails to upload data, is there a way to enable zabbix_sender?

    I run the following command,
    "usr/local/sbin/zabbix_sender-z 38.103.80.154 -p 10051 -s rrr1tttadda -k proc.num[] -o 120 -vv" but it fails with the following error,
    zabbix_sender [7426]: DEBUG: Answer [{
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.002449"}]
    Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.002449"
    sent: 1; skipped: 0; total: 1


    I put the zabbix_server in DebugLevel 4 and I get the following sql, which is being executed by the server process,

    zabbix_server.log: 7296:20081026:113058 Query [select i.itemid,i.key_,h.host,h.port,i.delay,
    i.description,i.nextcheck,i.type,i.snmp_community, i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,
    i.prevvalue,i.hostid,h.status,i.value_type,h.error s_from,i.snmp_port,i.delta,i.prevorgvalue,
    i.lastclock,i.units,i.multiplier,i.snmpv3_security name,i.snmpv3_securitylevel,i.snmpv3_authpassphras e,
    i.snmpv3_privpassphrase,i.formula,h.available,i.st atus,i.trapper_hosts,i.logtimefmt,i.valuemapid,
    i.delay_flex,h.dns,i.params,i.trends,h.useipmi,h.i pmi_port,h.ipmi_authtype,h.ipmi_privilege,
    h.ipmi_username,h.ipmi_password,i.ipmi_sensor from hosts h, items i
    where h.hostid=i.hostid and h.proxy_hostid=0 and h.status=0 and
    i.status in (0,3) and i.type in (2,7) and
    ((h.host='rrr1tttadda' and i.key_='proc.num[]'))
    and h.hostid between 000000000000000 and 099999999999999];


    I see that the type column in items table doesn't have values of 2 or 7 for that host and hence zabbix_sender is failing, is there a additional step needed to make zabbix_sender to work, or what am I missing?
    Last edited by zab_test; 26-10-2008, 18:26.
  • bbrendon
    Senior Member
    • Sep 2005
    • 870

    #2
    It seems this is where you have gone wrong...

    Originally posted by zab_test
    The zabbix_sender utility for an existing host fails to upload data, is there a way to enable zabbix_sender?
    the sender is for inputting data into zabbix for non-agent compatible "stuff"

    It won't work for proc.num because thats an actual zabbix item that is populated by the agent.

    for sender to work, THE ITEM HAS TO BE OF TYPE "ZABBIX TRAPPER"
    Unofficial Zabbix Expert
    Blog, Corporate Site

    Comment

    • zab_test
      Junior Member
      • Oct 2008
      • 4

      #3
      Thanks a lot. Now it make sense.

      I will try to see how to use the Zabbix_trapper.

      Comment

      Working...