Snmptrap message in syslog
Hi guys,
I have installed Rsyslog to collect the log from my network device and it will stored the log into the text file.
Besides the syslog, i get the snmp traps details also.
Currently my plan is to save the syslog into mysql database instead of text file so i would like to solve the snmp trap message log into syslog first.
Can anyone advise how to solve this ?
Thank you very much in advance.
Below shows sample syslog log file.
May 17 09:17:58 bigip1 err iControlPortal.cgi[6200]: Checking for FIPS card.. FIPS open failed.
May 17 09:18:40 2idf-45-sw1 1550: *May 17 08:58:53.360: %LINK-3-UPDOWN: Interface GigabitEthernet6/30, changed state to down
May 17 09:18:47 2idf-45-sw1 1551: *May 17 08:58:59.552: %LINK-3-UPDOWN: Interface GigabitEthernet6/30, changed state to up
May 17 09:26:41 zabsrv snmptrapd[2866]: 2016-05-17 09:26:41 2idf-45-sw1 [10.32.250.20] (via UDP: [10.32.250.20]:1032->[10.4.2.240]) TRAP, SNMP v1, community zabbix#012#011SNMPv2-SMI::enterprises.9.9.215.2 Enterprise Specific Trap (1) Uptime: 58 days, 16:50:51.59#012#011SNMPv2-SMI::enterprises.9.9.215.1.1.8.1.2.1 = Hex-STRING: 01 03 36 34 BD C8 2C 5D 22 00 2D 00 #011SNMPv2-SMI::enterprises.9.9.215.1.1.8.1.3.1 = INTEGER: 507185158
May 17 09:26:41 zabsrv snmptrapd[2866]: 2016-05-17 09:26:41 10.32.250.76(via UDP: [10.32.250.76]:61853->[10.4.2.240]) TRAP, SNMP v1, community zabbix#012#011SNMPv2-SMI::enterprises.9.9.215.2 Enterprise Specific Trap (1) Uptime: 256 days, 16:26:37.74#012#011SNMPv2-SMI::enterprises.9.9.215.1.1.8.1.2.1 = Hex-STRING: 01 03 41 08 D0 9F 9E 7C A8 00 83 01 00 E2 D4 C9 #012EF E5 32 1D 00 83 01 03 41 64 D8 14 A4 09 81 00 #01272 01 00 E2 D4 BE D9 42 A0 15 00 72 01 03 41 08 #012D0 9F 9E 7C A0 00 8E 00 #011SNMPv2-SMI::enterprises.9.9.215.1.1.8.1.3.1 = INTEGER: -2077207522
|