#> rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm #> yum install perl-Config-IniFiles
下載: http://snmptt.sourceforge.net/downloads.shtml
#> tar xzf snmptt_1.4.tgz #> cd snmptt_1.4/ #> cp ./snmptt /usr/sbin/ #> chmod a+x /usr/sbin/snmptt #> cp ./snmptthandler /usr/sbin/ #> chmod a+x /usr/sbin/snmptthandler #> cp ./snmpttconvert /usr/sbin/ #> chmod a+x /usr/sbin/snmpttconvert #> cp ./snmpttconvertmib /usr/sbin/ #> chmod a+x /usr/sbin/snmpttconvertmib #> cp ./snmptt.ini /etc/snmp/ #> cp examples/snmptt.conf.generic /etc/snmp/snmptt.conf #> mkdir /var/log/snmptt #> vi /etc/snmp/snmptrapd.conf traphandle default /usr/sbin/snmptthandler #> mkdir /var/spool/snmptt/
#> cp snmptt-init.d /etc/rc.d/init.d/snmptt #> chmod 0755 /etc/rc.d/init.d/snmptt #> chkconfig --add snmptt #> chkconfig snmptt on #> service snmptt start
#> cp snmptt.logrotate /etc/logrotate.d/snmptt
#> vi /etc/sysconfig/snmptrapd OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"
NOTE: The -On is recommended. This will make snmptrapd pass OIDs in numeric form and prevent SNMPTT from having to translate the symbolic name to numerical form. If the UCD-SNMP / Net-SNMP Perl module is not installed, then you MUST use the -On switch. Depending on the version of UCD-SNMP / Net-SNMP, some symbolic names may not translate correctly. See the FAQ for more info.
啟動 snmptrapd 服務
#> service snmptrapd start #> chkconfig snmptrapd on
Images 0 | ||
---|---|---|
No images to display in the gallery. |