Hi all!
I'm trying to receive some traps in zabbix that I generate myself using the Network Computing Technologies, Inc. Trapsgenerator Trapgen http://www.ncomtech.com/trapgen.html
I'm using zabbix and snmptrapd in ubuntu. All the latest stable versions. Ubuntu is running in a windows 7 virtual box.
I generate a trap and receive it in snmptrapd. And I get this message from the snmptrapd log:
Sending failed. Use option -vv for more detailed output.
I'm a beginner with network monitoring and linux so I don't know if this is a problem with snmptrapd, snmptrap.sh or the host/item in zabbix. Or maybe I need a MIB file for these generated traps?
If someone could get me on the right path I would be very happy! Thanks in advance!
The snmptrapd log file:
My snmptrapd.conf:
My snmptrap.sh
My zabbix_server log:
I've created a host and an item in zabbix. See attached image.
I'm trying to receive some traps in zabbix that I generate myself using the Network Computing Technologies, Inc. Trapsgenerator Trapgen http://www.ncomtech.com/trapgen.html
I'm using zabbix and snmptrapd in ubuntu. All the latest stable versions. Ubuntu is running in a windows 7 virtual box.
I generate a trap and receive it in snmptrapd. And I get this message from the snmptrapd log:
Sending failed. Use option -vv for more detailed output.
I'm a beginner with network monitoring and linux so I don't know if this is a problem with snmptrapd, snmptrap.sh or the host/item in zabbix. Or maybe I need a MIB file for these generated traps?
If someone could get me on the right path I would be very happy! Thanks in advance!
The snmptrapd log file:
2010-07-12 09:21:37 NET-SNMP version 5.4.2.1
Received 86 bytes from UDP: [10.0.2.15]:37143->[10.0.2.15]
2010-07-12 09:21:37 0000: 30 54 02 01 00 04 06 70 75 62 6C 69 63 A4 47 06 0T.....public.G.
2010-07-12 09:21:37 0016: 04 2B 00 04 05 40 04 0A 2F F7 DD 02 01 01 02 01 .+...@../.......
2010-07-12 09:21:37 0032: 01 43 03 4A D8 3F 30 2E 30 0D 06 08 2B 00 04 05 .C.J.?0.0...+...
2010-07-12 09:21:37 0048: 01 00 00 01 02 01 19 30 1D 06 08 2B 00 04 05 01 .......0...+....
2010-07-12 09:21:37 0064: 00 00 01 04 11 22 54 68 69 73 20 69 73 20 6D 79 ....."This is my
2010-07-12 09:21:37 0080: 20 74 72 61 70 22 trap"
2010-07-12 09:21:37
2010-07-12 09:21:37 09:21 TRAP1.1
Sending failed. Use option -vv for more detailed output.
Received 86 bytes from UDP: [10.0.2.15]:37143->[10.0.2.15]
2010-07-12 09:21:37 0000: 30 54 02 01 00 04 06 70 75 62 6C 69 63 A4 47 06 0T.....public.G.
2010-07-12 09:21:37 0016: 04 2B 00 04 05 40 04 0A 2F F7 DD 02 01 01 02 01 .+...@../.......
2010-07-12 09:21:37 0032: 01 43 03 4A D8 3F 30 2E 30 0D 06 08 2B 00 04 05 .C.J.?0.0...+...
2010-07-12 09:21:37 0048: 01 00 00 01 02 01 19 30 1D 06 08 2B 00 04 05 01 .......0...+....
2010-07-12 09:21:37 0064: 00 00 01 04 11 22 54 68 69 73 20 69 73 20 6D 79 ....."This is my
2010-07-12 09:21:37 0080: 20 74 72 61 70 22 trap"
2010-07-12 09:21:37
2010-07-12 09:21:37 09:21 TRAP1.1
Sending failed. Use option -vv for more detailed output.
disableAuthorization yes
printeventnumbers 1
ignoreauthfailure no
logoption f /home/anders/snmptrapdSamlemappe/snmptrapdLOG.log
pidfile /home/anders/snmptrapdSamlemappe/pidfilen.pid
ignoreauthfailure no
traphandle default /bin/bash /home/zabbix/zabbix-1.8.2/bin/snmptrap.sh
printeventnumbers 1
ignoreauthfailure no
logoption f /home/anders/snmptrapdSamlemappe/snmptrapdLOG.log
pidfile /home/anders/snmptrapdSamlemappe/pidfilen.pid
ignoreauthfailure no
traphandle default /bin/bash /home/zabbix/zabbix-1.8.2/bin/snmptrap.sh
ZABBIX_SERVER="0.0.0.0";
ZABBIX_PORT="10051";
ZABBIX_SENDER="/home/zabbix/zabbix-1.8.2/src/zabbix_sender/zabbix_sender";
KEY="snmptraps";
HOST="snmptraps";
ZABBIX_PORT="10051";
ZABBIX_SENDER="/home/zabbix/zabbix-1.8.2/src/zabbix_sender/zabbix_sender";
KEY="snmptraps";
HOST="snmptraps";
987:20100708:114118.953 Starting Zabbix Server. Zabbix 1.8.2 (revision 11211).
987:20100708:114118.953 **** Enabled features ****
987:20100708:114118.954 SNMP monitoring: YES
987:20100708:114118.962 IPMI monitoring: NO
987:20100708:114118.962 WEB monitoring: YES
987:20100708:114118.962 Jabber notifications: NO
987:20100708:114118.962 ODBC: NO
987:20100708:114118.963 SSH2 support: NO
987:20100708:114118.963 IPv6 support: NO
987:20100708:114118.963 **************************
987:20100708:114119.033 [Z3001] Connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)
987:20100708:114118.953 **** Enabled features ****
987:20100708:114118.954 SNMP monitoring: YES
987:20100708:114118.962 IPMI monitoring: NO
987:20100708:114118.962 WEB monitoring: YES
987:20100708:114118.962 Jabber notifications: NO
987:20100708:114118.962 ODBC: NO
987:20100708:114118.963 SSH2 support: NO
987:20100708:114118.963 IPv6 support: NO
987:20100708:114118.963 **************************
987:20100708:114119.033 [Z3001] Connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)

Comment