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?
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?
Comment