Before your installing MRTG you must be install Apache (web server)
#apt-get install mrtg snmpd
this procces make directory MRTG on your apache web directory example : /var/www/mrtg/
edit file configuration snmp with your favorite text editor
#mcedit /etc/snmp/snmpd.conf
# sec.name source community
# com2sec paranoid default public
com2sec readonly default public
#com2sec readwrite default private
after your change configuration snmp your restart snmp service
#/etc/init.d/snmpd restart
The configuration file creating using
#cfgmaker public@localhost > /etc/mrtg.cfg
Creating a configuration file for a device using
#cfgmaker public@192.168.0.1 > /etc/mrtg.cfg
this command make configuration in file mrtg.cfg
now you creating index file for web server using
#indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html
check your installation with open your favorite browser and you'd type in the following in the address bar of a browser running on a system on the same network
example :
http://Your IP/mrtg/
try this, i hope you succses
reference : http://debianhelp.co.uk
0 comments:
Post a Comment