Ad Widget

Collapse

Zabbix_sender problems

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

    #1

    Zabbix_sender problems

    Hi all!

    I'm trying to receive traps in zabbix but i haven't been able to do so. Because of this, i'm trying to see where the problem is. When checking if zabbix_sender is working i get:

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

    when typing:

    /opt/sbin/zabbix_sender -vv -z monitor -p 10052 -s trapshost -k trapsitem -o "Test"

    However, i don't get anything in zabbix.
    Any explanation for my problem with sender???

    Thanks.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Since the data has been sent I think it's safe to say you have the right port number. Do you have the item setup as a trapper item? Also what happens when you go to latest data for that item? If it is a graph go to the upper right and select "500 latest values" from the dropdown.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • jsomoza
      Junior Member
      • Mar 2008
      • 27

      #3
      Hi!
      First of all, thanks for replying.

      Yes, i have the item set as a trapper item. When i go to latest data, it isn't a graph. When i select history, there's nothing in it.

      I really don't know where the problem is. Any other suggestion?? Must the problem be in my item and host configuration or in zabbix_sender itself? How could i see if it's a zabbix_sender problem?

      Thanks.

      Comment

      • jsomoza
        Junior Member
        • Mar 2008
        • 27

        #4
        In addition to what i said before, i tested snmptrap.sh file.
        Then i've realised by typing:
        echo $ZABBIX_SENDER -vv -z $ZABBIX_SERVER -p $ZABBIX_PORT -s $HOST -k $KEY -o "$str" >/tmp/testtrap.txt
        in the last line of the mentioned file that when i receive a trap, snmptrapd executes snmptrap.sh. this is because i get the line:
        /opt/sbin/zabbix_sender -vv -z monitor -p 10052 -s trapshost -k trapsitem -o 192.168.150.205 "I 192.168.150.205 "public" SNMPv2-SMI::enterprises.11.2.3.7.11.61.0.2
        in testrap.txt.

        In conclusion, is there any posibility for the problem be anywhere else than in zabbix_sender?

        Thanks again.

        Comment

        Working...