gigEnn.net/MRTG
|
|
| Installing n Upgrading for MRTG
|
- Upgrade to the latest gigEnn version
- One time only ..
We need to download and install about 75MB of perl + mrtg + snmp libraries
- These perl+MRTG libs are pre-installed for gigEnn systems shipped AFTER Jan 05, 2012
- /usr/bin/gigEnn.update.perl-mrtg.sh -install
- You can also click "Install MRTG" on the html gui
- Upon each reboot of the gigEnn wansim ...
we need to move aside the minimal default perl libraries and use the whole 75MB perl libs
- This MRTG script is run automatically on each reboot from /etc/rc.local ( /etc/rc.local.user )
- /usr/bin/gigEnn.update.perl-mrtg.sh -links
- You can also click "Start MRTG" on the html gui
|
| Running MRTG
|
- Periodic ( every 5 minutes ) data collection and graph updating is done from cron
- crontab -l
#
# wansim Net1/Net2 data
*/5 * * * * /usr/local/bin/mrtg /home/apache/html.mrtg/wansim.cfg
#
# wansim CPU load, memory usage, etc ...
*/5 * * * * /usr/local/bin/mrtg /home/apache/html.mrtg/cpu-mem.cfg
- SNMP should also be running in order to collect data
- /usr/local/etc/rc.d/snmpd restart
- ps auxfw | egrep "snmp|cron"
- All MRTG data is stored in temporary space
- ls -la /home/apache/html.mrtg
- There seems to be a (perl?) bug somewhere that prevents MRTG/snmp from supporting IPv6
in this gigEnn environment
- IPv6 support can be enabled but it aborts data collection
- vi /home/apache/html.mrtg/wansim.cfg: IPv6Enable=no
- To View your MRTG graphs
- Assuming your management port is defined as: 192.168.1.101 ( our default )
http://192.168.1.101/MRTG /mainindex.shtml
- ALL data will be lost on reboot
|
| Saving MRTG
|
- BEFORE rebooting:
- You can save your MRTG graph data onto your laptop and restore it
- You can save your MRTG graph data on the remaining 1GB on the wansim's compact flash
- sudo mount -uw /usr.rw
- sudo cd /home/apache && tar zcvfp /usr.gw/mrtg.save-data.tgz html.mrtg/
- sudo mount -ur /usr.rw
- sudo reboot
- To Restore and View your saved MRTG graphs
- /etc/rc.d/cron stop
- /usr/local/etc/rc.d/snmpd stop
- Untaring will over-write any current data/graphs with the older "save-data"
- cd /home/apache && tar zxvfp /usr.gw/mrtg.save-data.tgz
|