Ad Widget

Collapse

Major problems with zabbix_sender 1.3.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #1

    Major problems with zabbix_sender 1.3.2

    I have a bunch of zabbix_sender items defined on a host called it (ip address of 192.168.100.20), In this example the zabbix_server and zabbix_host are the same box, here is one example item:

    Description IO: sda: write reqs issued per second
    Type: ZABBIX trapper
    Key: io_writes[sda]
    Type of information Numeric (float)
    Units: <no value>
    Use multiplier: do not use
    Keep history (in days): 30
    Keep trends (in days): 365
    Status: Monitored
    Store value: As is
    Allowed hosts: 192.168.100.20
    Applications: none


    Now when I execute the following line on it to "send" a value to that item via zabbix sender:

    ./usr/bin/zabbix_sender -z 127.0.0.1 -p 10051 -h it -k io_writes[sda] -o 30.26

    I get the following error:

    ZABBIX send v1.3.2 (03 January 2006)

    usage: /usr/bin/zabbix_sender [<Zabbix server> <port> <server> <key> <value>]


    If no arguments are given, zabbix_sender expects list of parameters
    from standard input.


    This is exactly according to the documentation in the manual for v1.4. So looking at the zabbix_sender code it seems I don't need to supply all the dashed params, so I try with:

    /usr/bin/zabbix_sender 192.168.100.20 10051 it io_writes[sda] 30.26

    This does not result in an error, however the value never gets updated for the item, AND I get nothing in the zabbix_server.log either. In fact it looks like zabbix_server stopped logging entirely. ??? I really need this to work, am I missing something?
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #2
    Update - zabbix_sender just doesn't work

    So I defined an item on another host, not the zabbix server:

    Host: pangkor
    Description IO: sda: write reqs issued per second
    Type: ZABBIX trapper
    Key: io_writes[sda]
    Type of information Numeric (float)
    Units: <no value>
    Use multiplier: do not use
    Keep history (in days): 30
    Keep trends (in days): 365
    Status: Monitored
    Store value: As is
    Allowed hosts: <SEE BELOW>
    Applications: none


    I then run (on pangkor):

    /usr/bin/zabbix_sender 192.168.100.20 10051 pangkor io_reads[sda] 0.06

    No error, nothing in the log the value is not updated. The above "Allowed Hosts" value corresponds to a field in the items table called "trapper_hosts" which is completely undocumented. I am guessing this is a security mechanism so that the zabbix server will only accept a name/value pair for this item from the host or IP specified in this field. SO...I tried changing the above "Allowed hosts" to 192.168.1.34 (the ip address of pangkor) this does not work. I tried changing the above "Allowed hosts" to pangkor (the name of the host) this does not work. I tried changing the above "Allowed hosts" to "" (no value) THIS does not work. The lack of and/or incorrect documentation is making zabbix almost impossible to deploy. Can someone please let me know if I am missing something? I am really beating my head against this project. The upside is that if I get this stuff working I will be able to post a bunch of good templates to the cookbook, but the damn thing needs to work first!

    Comment

    • clahti
      Senior Member
      • Jan 2007
      • 126

      #3
      shameless bump, has anyone been able to get zabbix_sender working on 1.3.2?

      Comment

      • cecila
        Junior Member
        • Jul 2006
        • 16

        #4
        I haven't been able to get the sender to work either.

        Comment

        Working...