Ad Widget

Collapse

Problems with zabbix_sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsomoza
    Junior Member
    • Mar 2008
    • 27

    #1

    Problems with zabbix_sender

    Hi all.

    Testing zabbix_sender, i've tried to send "something" to zabbix to prove zabbix_sender is working. However, I got the line:

    sent: 0; failed: 1; total: 1

    when i typed the line:

    /opt/sbin/zabbix_sender "zabbix server IP" "zabbix port" "host name configured in snmptrap.sh":"item name configured in snmptrap.sh" "value"

    Could anyone tell me which could be the cause of the failure??

    Thanks beforehand.
  • cstackpole
    Senior Member
    Zabbix Certified Specialist
    • Oct 2006
    • 225

    #2
    I don't know if this is the failure point but I always explicitly give all of the flags. Using your statement as a basis point, I would use this one instead:
    /opt/sbin/zabbix_sender -z zabbix_server_IP -p zabbix_port -s host_name_configured_in_snmptrap.sh -k item_name_configured_in_snmptrap.sh -o "value"

    Note: I only put quotes around the message -o "". I don't know if you put quotes around all of them for readability or if you do it always, but I have never used them.

    Hope this helps!

    Comment

    • jsomoza
      Junior Member
      • Mar 2008
      • 27

      #3
      Ok. I put what you said and the message is:

      zabbix_sender [24885]: DEBUG: Send to: 'monitor:10052' As: 'trapshost' Key: 'trapsitem' Value: '25'
      zabbix_sender [24885]: DEBUG: Send data: '<req><host>dHJhcHNob3N0</host><key>dHJhcHNpdGVt</key><data>MjU=</data></req>'
      sent: 1; failed: 0; total: 1

      It seems as if it has been sent to zabbix, but when i get there, there's nothing there. The last value column is empty.
      Do you have any idea for it?

      Thanks.

      Comment

      • Niels
        Senior Member
        • May 2007
        • 239

        #4
        Is this on a distributed setup?
        Can you see the value if you look in the database?

        Comment

        • jsomoza
          Junior Member
          • Mar 2008
          • 27

          #5
          Where should the value be stored if sent??

          Thanks.

          Comment

          Working...