Ad Widget

Collapse

zabbix_sender & snmptrap.sh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dima_sml
    Junior Member
    • Jul 2007
    • 3

    #1

    zabbix_sender & snmptrap.sh

    Hi all!
    bash-3.1# /usr/bin/zabbix_sender -z localhost -p 10051 -s localhost -k snmptraps -o "Test5"
    sent: 1; failed: 0; total: 1
    Its look ok, but:
    bash-3.1# /usr/bin/zabbix_sender localhost 10051 localhost snmptraps "Test5"
    sent: 0; failed: 1; total: 1
    ^^^^^^^^^^
    Thus in snmptrap.sh it is necessary to change a line:
    $ZABBIX_SENDER $ZABBIX_SERVER $ZABBIX_PORT $HOST $KEY "$str"
    for the line:
    $ZABBIX_SENDER-z $ZABBIX_SERVER-p $ZABBIX_PORT-s $HOST-k $KEY-o "$str"
    That is without options -zpsko the script does not work. Interestingly, it only at me so?
  • grenouille
    Junior Member
    • Jun 2008
    • 1

    #2
    Originally posted by dima_sml
    Hi all!
    > ...
    > sent: 1; failed: 0; total: 1
    > ...
    > sent: 0; failed: 1; total: 1
    > ... ^^^^^^^^^^
    > Interestingly, it only at me so?
    This looks more like you try to use zabbix_sender v 1.4 on zabbix_server v 1.1
    Check your zabbix- sender/server Versions

    /bin/sh # zabbix_sender -v
    and compare it with the version printet out by your web-frontend

    Comment

    • jsomoza
      Junior Member
      • Mar 2008
      • 27

      #3
      Is it a problem to use different versions of zabbix and zabbix_sender? If you do, is it normal if zabbix_sender says it sends something but zabbix doesn't receive anything?

      Thanks.

      Comment

      • wulf
        Junior Member
        • Nov 2007
        • 1

        #4
        Originally posted by jsomoza
        > Is it a problem to use different versions of zabbix and zabbix_sender? Thanks.
        Yes it is, the protocol is not compatible.

        Comment

        Working...