As I often have people asking for the files I use to make my pretty MRTG graphs; I’ll publish them here.
Here are some examples:
Zero – One – Four – vm1 – Sauron
The config files:
Sauron (including Squid stats),
Zero (including fan stats).
List of files included:
- indexmaker; simple script (included with MRTG) to generate a simple index file with all the graphs
- snmp-if.sh; will show you the IDs of the interfaces on the server/pc. These IDs have to be edited in the mrtg.cfg file; e.g.:
Target[eth0]: 2:public@localhost:
Make sure 2 is indeed the ID of eth0. Be aware that virtual interfaces, like the TUN/TAP interfaces (using by openVPN for example), can change ID each time they are restarted/rebooted.
- mrtg.cfg; check the config file as an example.
mrtg._1 and mrtg.ok can be deleted/ignores. Those files are generated by MRTG and I was to lazy to remove them. 🙁
Some day, I’ll write a decent howto, but for now, you’ll have to do with this.
If there’s any question, just leave a comment.
2 replies on “MRTG”
[…] tend to restart OpenVPN a lot due to config changes. As a result, this brings quite some issues to MRTG (or more precisely, SNMP), due to the fact tun devices change of […]
[…] talked about MRTG stats for Squid in the past but apparently forgot to include the .mib […]