![]() OPTIONS="-A -Lf /var/log/snmptrapd.log -p /var/run/snmptrapd.pid" # OPTIONS="-Lsd -p /var/run/snmptrapd.pid" # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script coldĪnd in /etc/sysconfig/snmptrapd: # snmptrapd command line options # No traps are handled by default, you must edit this file! In /etc/snmp/nf: # Example configuration file for snmptrapd sudo yum install -y net-snmp net-snmp-utils We start by making sure Net-SNMP is installed. I'll use my CentOS 6.2 box as a guinea pig here. Configure Splunk to be able to monitor snmptrapd's log file and see it get indexed.Make a server able to send ANY trap successfully to snmptrapd.Configure snmptrapd to receive traps and write them to a logfile.So given the decision to use the native snmptrapd then our list of steps gets refined a little. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |