Previous |
Home | Next |
Versions: | - mrtg 2.13.2 - webalizer 2.01_10-29 |
[bash]# cp /etc/mrtg/mrtg.cfg /etc/mrtg/mrtg.cfg.original |
[bash]# vi /etc/mrtg/mrtg.cfg |
###################################################################### |
[bash]# vi /var/www/mrtg/index.html |
<HTML> |
[bash]# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.original [bash]# vi /etc/snmp/snmpd.conf |
# Configure basic Read-Only community string. rocommunity myHomeServer # Mapping from Community to Security. com2sec myLoopNet localhost myHomeServer com2sec myExtNet ???.???.???.???/255.255.255.255 myHomeServer <-- Place external IP Address in here. com2sec myIntNet 192.168.1.0/255.255.255.0 myHomeServer # Mapping from Security Group to Security Name. group myROGroup v1 myLoopNet group myROGroup v1 myExtNet group myROGroup v1 myIntNet # Define the view. view all-mibs included .1 80 # Grant Access From the Security Model to MIB View. access myROGroup v1 noauth 0 all-mibs none none |
[bash]# chkconfig
--level 2345 snmpd on [bash]# chkconfig --list snmpd |
[bash]# /etc/init.d/snmpd restart [bash]# grep snmp /var/log/messages |
[bash]# snmpwalk -v 1 -c myHomeServer localhost interface | grep Descr |
IF-MIB::ifDescr.1 = STRING: lo IF-MIB::ifDescr.2 = STRING: eth0 IF-MIB::ifDescr.3 = STRING: eth1 IF-MIB::ifDescr.4 = STRING: ppp0 |
[bash]# vi /etc/mrtg/mrtg.cfg |
Target[ppp0]: 4:myHomeServer@localhost Target[eth1]: 3:myHomeServer@localhost |
[bash]# rm -f /var/lib/mrtg/* |
Previous |
Home | Next |