成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

監(jiān)測Linux上面的流量MRTG-安裝MRTG

運維 系統(tǒng)運維
監(jiān)測Linux上面的流量MRTG:MRTG是一個監(jiān)控網(wǎng)絡(luò)鏈路流量負載的工具軟件,通過snmp協(xié)議得到設(shè)備的流量信息,并將流量負載以包含PNG格式的圖形的HTML 文檔方式顯示給用戶,本文講述的是安裝MRTG。

  監(jiān)測Linux上面的流量MRTG-安裝MRTG

  本文講述的是監(jiān)測Linux上面的流量MRTG:前言安裝MRTG準備工作安裝MRTG

                       監(jiān)測網(wǎng)路卡流量mrtg.cfg參數(shù)的含義監(jiān)測CPU負載量

  開始安裝 MRTG

  由于 MRTG 是透過 SNMP 通訊協(xié)定來要求資料,因此你的 Linux 上面需要先安裝相關(guān)的軟體,通常我們都是安裝 ucd-snmp 這套軟體的,那就來安裝吧!

  下載 ucd-snmp-4.2.1.tar.gz, mrtg-2.9.17.tar.gz ;

  安裝 ucd-snmp-4.2.1.tar.gz: [root @tsai /root]# cd /usr/local/src

  1.   [root @tsai src]# cp /root/ucd-snmp-4.2.1.tar.gz .  
  2.  
  3.   [root @tsai src]# tar -zxvf ucd-snmp-4.2.1.tar.gz  
  4.  
  5.   [root @tsai src]# cd ucd-snmp-4.2.1  
  6.  
  7.   [root @tsai ucd-snmp-4.2.1]# ./configure --prefix=/usr/local/snmp  
  8.  
  9.   .......(過程我就省略了)  
  10.  
  11.   ************** Configuration Section **************  
  12.  
  13.   You are about to be prompted by a series of questions. Answer  
  14.  
  15.   them carefully, as they determine how the snmp agent and related  
  16.  
  17.   applications are to function.  
  18.  
  19.   After the configure script finishes, you can browse the newly  
  20.  
  21.   created config.h file for further - less important - parameters to  
  22.  
  23.   modify. Be careful if you re-run configure though since config.h will  
  24.  
  25.   be over written.  
  26.  
  27.   -Press return to continue- (這裡按 enter 吧)  
  28.  
  29.   disabling above prompt for future runs... yes  
  30.  
  31.   checking System Contact Information...  
  32.  
  33.   *** System Contact Information:  
  34.  
  35.   Describes who should be contacted about the host the agent is  
  36.  
  37.   running on. This information is available in the MIB-II tree. This  
  38.  
  39.   Can Also Be Over-Ridden Using The "syscontact" Syntax In The Agent'S  
  40.  
  41.   Configuration Files.  
  42.  
  43.   System Contact Information (root@):root@tsai.adsldns.org (這裡輸入你的 e-mail)  
  44.  
  45.   setting System Contact Information to... root@tsai.adsldns.org  
  46.  
  47.   checking System Location...  
  48.  
  49.   *** System Location:  
  50.  
  51.   Describes the location of the system. This information is  
  52.  
  53.   available in the MIB-II tree. This Can also be over-ridden using the  
  54.  
  55.   "syslocation" syntax in the agent's configuration files.  
  56.  
  57.   System Location (Unknown):RedHat 6.1 (這裡可以隨便輸入,不正確也沒關(guān)係)  
  58.  
  59.   setting System Location to... RedHat 6.1  
  60.  
  61.   checking Location to write logfile...  
  62.  
  63.   *** Logfile location:  
  64.  
  65.   Enter the default location for the snmpd agent to dump  
  66.  
  67.   information & errors to. If not defined (enter the keyword "none"  
  68.  
  69.   at the prompt below) the agent will use stdout and stderr instead.  
  70.  
  71.   (Note: This value can be over-ridden using command line options.)  
  72.  
  73.   Location to write logfile (/var/log/snmpd.log):(按 enter 即可)  
  74.  
  75.   setting Location to write logfile to... /var/log/snmpd.log  
  76.  
  77.   checking Location to write persistent information...  
  78.  
  79.   *** snmpd persistent storage location:  
  80.  
  81.   Enter a directory for the snmp library to store persistent  
  82.  
  83.   data in the form of a configuration file.  
  84.  
  85.   Location to write persistent information (/var/ucd-snmp):(按 enter 即可)  
  86.  
  87.   [root @tsai ucd-snmp-4.2.1]# make  
  88.  
  89.   [root @tsai ucd-snmp-4.2.1]# make install  
  90.  

  上面輸入的資訊,在進行 MRTG 的製圖時,會顯示在圖表上面,不過,這也是可以改的資訊,所以,如果不小心輸入錯誤也沒關(guān)係的。這樣就將 ucd-snmp 安裝妥當了!

  啟動 ucd-snmp :

  直接在 shell 下面打上 /usr/local/snmp/sbin/snmpd 即可!或者直接加在 /etc/rc.d/rc.local 當中,就可以自動開機時啟動了!

  安裝 MRTG

  1.    [root @tsai /root]# cd /usr/local/src  
  2.  
  3.   [root @tsai src]# cp /root/mrtg-2.9.17.tar.gz .  
  4.  
  5.   [root @tsai src]# tar -zxvf mrtg-2.9.17.tar.gz  
  6.  
  7.   [root @tsai src]# cd mrtg-2.9.17  
  8.  
  9.   [root @tsai mrtg-2.9.17]# ./configure --prefix=/usr/local/mrtg-2 \  
  10.  
  11.   > --with-gd=/usr/include \  
  12.  
  13.   > --with-gd-lib=/usr/lib \  
  14.  
  15.   > --with-gd-inc=/usr/include \  
  16.  
  17.   > --with-png=/usr/include \  
  18.  
  19.   > --with-zlib=/usr/include  
  20.  
  21.   [root @tsai mrtg-2.9.17]# make; make install  
  22.  

  [root @tsai mrtg-2.9.17]# mkdir /usr/local/apache/htdocs/mrtg (請注意,這裡與你的 WWW 主頁的放置地點有關(guān),請依你的系統(tǒng)來設(shè)定,另外,由于我們需要設(shè)定 網(wǎng)路流量、CPU與RAM使用率,因此在 mrtg 中,可以再建立叁個子目錄,比較容易管理啦!)

  1.   [root @tsai mrtg-2.9.17]# mkdir /usr/local/apache/htdocs/mrtg/net  
  2.  
  3.   [root @tsai mrtg-2.9.17]# cp images/* /usr/local/apache/htdocs/mrtg/net (將一些影像檔拷貝到即將使用的目錄中去備用)  
  4.  

  就樣就安裝妥當了!再來就是開始要設(shè)定 MRTG 的組態(tài)啰!

【編輯推薦】

RedHat上安裝MRTG監(jiān)控本機網(wǎng)卡流量

Linux下的mrtg使用

cacti 匯總流量圖-將數(shù)據(jù)合并后作圖

責任編輯:zhaolei 來源: vbird
相關(guān)推薦

2011-03-30 11:34:26

流量MRTG

2011-03-30 11:31:10

MRTG

2011-03-30 11:31:10

MRTG

2011-03-30 13:29:49

MRTG

2011-03-30 11:31:10

MRTG

2011-03-31 11:14:29

MRTG監(jiān)測

2011-03-31 10:24:15

2011-03-31 13:40:48

MRTGsquid流量

2010-06-01 12:51:00

2011-04-01 09:18:03

FreeBSD安裝MRTG

2010-06-01 11:20:39

Mrtg window

2010-06-01 10:32:04

linux Mrtg

2010-06-01 14:30:06

Mrtg教程

2011-03-30 13:29:55

MRTG

2011-03-31 11:14:30

MRTG監(jiān)測

2011-03-31 11:14:29

MRTG監(jiān)測

2011-03-31 11:14:28

2011-03-31 11:20:10

MRTG監(jiān)測

2010-01-27 10:01:20

2010-05-28 18:57:15

Mrtg配置
點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 视频在线一区二区 | 日本精品一区 | 免费看欧美一级片 | 欧美日韩在线视频观看 | 成人精品视频在线观看 | 99精品视频免费在线观看 | 欧美精品免费观看二区 | 久久人体视频 | 97天天干| 欧美一级欧美三级在线观看 | 国产精品一区一区三区 | 91中文字幕在线观看 | 亚洲久久久 | 日韩欧美1区2区 | 亚洲国产日韩欧美 | 国产精品美女久久久久久不卡 | 国产精品波多野结衣 | 一区二区三区高清在线观看 | 欧美涩涩网 | 亚洲视频在线看 | 免费在线观看av | 欧美一级免费 | 久久久久国产一区二区三区四区 | 欧美福利专区 | 国产视频91在线 | 99国产精品视频免费观看一公开 | 青青草这里只有精品 | 国产精品av久久久久久毛片 | 国产中文视频 | 久久久www成人免费无遮挡大片 | 日韩精品一区二区三区中文在线 | 91在线免费观看 | 久久精品国产一区二区电影 | 久久精品国产一区 | 久久精品视频在线播放 | 福利片在线观看 | 国产精品欧美日韩 | 欧美日韩高清在线一区 | 久久精品av麻豆的观看方式 | 亚洲xxxxx| 成人做爰www免费看视频网站 |