配置MRTG監控snmp agents

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差不多已經被淘汰了!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章