simple mrtg Posted April 4, 2007
Install mrtg.
apt-get install mrtg
Create a user account to run mrtg.
adduser -m mrtguser
Create a configuration file.
su -l mrtguser
cd
victim=host.name.of.machine.running.snmpd
mkdir -p public_html cfg
cfgmaker \
--ifref=ip \
--global 'WorkDir: /home/mrtguser/public_html' \
--global 'Options[_]: bits,growright' \
--output /home/mrtguser/cfg/$victim \
public@$victim
Set up a cron job.
MAILTO=""
PATH=/bin:/usr/bin:/usr/local/bin
*/5 * * * * mrtg cfg/host.name.of.machine.running.snmpd
|