MRTG 流量統計安裝
2009-05-13 07:25:37来源:未知 阅读 ()
什麼是MRTG ?
MRTG是一種流量統計軟體,是透過SNMP協定去偵測流量並畫出圖表
所以安裝前要先安裝SNMP
--------------------------------------------------------------------------------
1.安裝SNMP
先到 /usr/ports/net/net-snmp/ 目錄
然後執行 make install
接下來會叫你按 "Enter" 進入設定
*** System Contact Information:
Describes who should be contacted about the host the agent is
running on. This information is available in the MIB-II tree. This
Can Also Be Over-Ridden Using The "syscontact" Syntax In The Agent'S
Configuration Files.
System Contact Information (root@xianfeng.net): //在這輸入管理者的E-mail
setting System Contact Information to... root@xianfeng.net
checking System Location...
*** System Location:
Describes the location of the system. This information is
available in the MIB-II tree. This Can also be over-ridden using the
"syslocation" syntax in the agent's configuration files.
System Location (Unknown): localhost //在這輸入主機的位址或名稱
setting System Location to... localhost
checking Location to write logfile...
*** Logfile location:
Enter the default location for the snmpd agent to dump
information & errors to. If not defined (enter the keyword "none"
at the prompt below) the agent will use stdout and stderr instead.
(Note: This value can be over-ridden using command line options.)
Location to write logfile (/var/log/snmpd.log): //在這輸入log檔所要存放的位置,直接按過即可
setting Location to write logfile to... /var/log/snmpd.log
checking Location to write persistent information...
*** snmpd persistent storage location:
Enter a directory for the snmp library to store persistent
data in the form of a configuration file.
Location to write persistent information (/var/ucd-snmp): //設定檔所要放的位置
setting Location to write persistent information to... /var/ucd-snmp
updating cache ./config.cache.........然後就會一直安裝下去
如果是net-snmp 的版本是 5.x 版的請注意
請新增一個文字檔 /usr/local/share/snmp/snmpd.conf
加入下面內容
rocommunity mrtg
ro 表示 read only
這裡我設定 community 為 mrtg
為了安全問題, 不想用 public
接著啟動 snmpd
# /usr/local/etc/rc.d/snmpd start
--------------------------------------------------------------------------------
2.安裝MRTG
目錄 /usr/ports/net/mrtg/
執行:make install
--------------------------------------------------------------------------------
3.建立MRTG設定檔
到 /usr/local/etc/mrtg/ 目錄
鍵入: cfgmaker mrtg@xianfeng.net >; mrtg
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:[转自CU] 关于学习Perl
下一篇:fc6安装mplayer
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
- NetBSD 5.0发布 2009-05-13
- Flash 9 for FreeBSD 7.1 2009-05-13
- FreeBSD中启用SSH 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash