1.Make sure the mrtg and the httpd packages are installed on your mrtg server.
#yum install httpd mrtg
2.Use cfgmaker to create a fresh /etc/mrtg/mrtg.conf configuration to monitor network interfaces on both of your SNMP agents.
#cfgmaker --ifref=name --global "workdir:/var/www/mrtg" \
example@stationX example@server120 > /etc/mrtg/mrtg.cfg
3.Update the MRTG cron job to run every * minutes.
4.Run the command shown in the cron job at least three times in order to build the RRD files.
#LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg \
--lock-file /var/lock/mrtg/mrtg_1 \
--confcache-file /var/lib/mrtg/mrtg.ok (three times)
5.Use indexmaker to create /var/www/mrtg/index.html
#indexmaker /etc/mrtg/mrtg.cfg > /var/www/mrtg/index.html
目前,MRTG差不多已經被淘汰了!