MRTG
規格
作業系統:Ubuntu 16.04
參考文章
https://www.iceflatline.com/2009/08/how-to-install-and-configure-mrtg-on-ubuntu-server/
http://vieriking.pixnet.net/blog/post/21568284-mrtg-for-ubuntu
http://jaklinux.blogspot.com/2014/06/linux-mrtg.html
安裝apache
下載SNMP
MRTG是使用SNMP協定,所以要先裝snmpd
修改/etc/snmp/snmpd.conf
把
改成
重啟SNMP
安裝MRTG
先輸出本機資訊到~/mrtg.cfg
修改/etc/mrtg.cfg,新增以下內容到最底下
如果有出現ERROR: did not find any matching data in cfg file 才需要做
把mrtg.cfg整理進/etc/mrtg 資料夾
在/var/www/html資料夾下創建mrtg資料夾,並輸出html
在/etc/apache2/apache.conf裡類似部分添加新網域
然後重啟
如果出現警告,可再往裡面添加
編輯/etc/mrtg.cfg檔案,加入「Language: big5」就能改成中文
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
更改環境變量LANG=C並啟動mrtg
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →