טוב מצאתי את הדרך.. הבעיה שלי היית שהSNMP LOG לא הוגדר לרמת פירוט גבוהה
קוד:
[root@host log]# cat /etc/snmp/snmpd.conf
rocommunity public localhost
rocommunity public 10.150.8.160
קוד:
[root@host log]# cat /etc/snmp/snmptrapd.conf
# Example configuration file for snmptrapd
#
# No traps are handled by default, you must edit this file!
#
# authCommunity log,execute,net public
# traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold
#authCommunity execute public default .1
traphandle default /usr/bin/traptoemail -s localhost -f snmp@localhost root@localhost
authCommunity log public
קוד:
[root@host log]# snmptrap -v 1 -c public 10.150.8.160 UCD-SNMP-MIB::ucdStart "" 6 17 "" SNMPv2-MIB::sysLocation.0 s "Hello"
[root@host log]# tail -1 /var/log/messages
May 20 07:04:36 localhost snmptrapd[25487]: 2014-05-20 07:04:36 10.150.8.160(via UDP: [10.150.8.160]:36900->[10.150.8.160]) TRAP, SNMP v1, community public#012#011UCD-SNMP-MIB::ucdStart Enterprise Specific Trap (17) Uptime: 1 day, 20:26:34.97#012#011SNMPv2-MIB::sysLocation.0 = STRING: Hello