|
Now it's time to present my mrtg-scripts.
I wanted to monitor my router... wanted to add temperatur, wheather and some more information.
But I didn't want to use SNMP so I wrote these scripts. For a complete roundup you will need
the information from my mrtg.cfg.
CPU Load
|
|
You will need to install the Sysstat package. Furthermore you'll need the
entry [cpu] from my mrtg.cfg. Besides download the script
Cpustat.
|
|
|
Memory consumption
|
|
No special packages needed for installation. Look for [mem] in mrtg.cfg
and use the script mem. Don't forget to correct the max RAM value in your
mrtg.cfg.
|
|
|
harddisk consumption
|
|
Also here no special packages will be needed. Pay attention for the [hdc1] entry in
mrtg.cfg and use checkdisk.
Of course you have to change the max value for your harddisk in your mrtg.cfg.
|
|
|
Uptime
|
|
For uptime you need to have Perl installed. Besides look for [uptime] in
mrtg.cfg and use the uptime
script.
|
|
|
ping specific host
|
|
No extra packages needed besides standard linux install. Please use entry [ping] in
mrtg.cfg and also the script named ping.
Please adjust the host you want to ping within the script. At the moment the script
pings http://www.heise.de.
|
|
|
transfer volume
|
|
This is kind of complicated because you will need special iptables rules. In
mrtg.cfg you can use the entry [vol_ppp]. In addition the script
ppp-stats. Afterwards you have to create the iptables
rules and change the script to grep the correct lines.
|
|
|
|