自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Cacti的安裝配置

運維 系統(tǒng)運維
Cacti 安裝配置:cacti是一套開源的網(wǎng)絡(luò)監(jiān)控工具,基于rrdtool的良好繪圖功能,可以完美的監(jiān)控主機的狀態(tài)和負載情況,添加相應(yīng)的模板后,可以用來監(jiān)控apache服務(wù)器和mysql服務(wù)器的運行狀態(tài)。本文講述的是Cacti安裝配置

  Cacti 安裝配置:回大綱

  安裝和配置Cacti

  1.解壓縮壓縮包,把 Cacti 解壓到你網(wǎng)絡(luò)服務(wù)器的 DOCUMENT_ROOT 文件夾下:

  shell> tar xzvf cacti-version.tar.gz

  2.創(chuàng)建 MySQL 數(shù)據(jù)庫:

  1.   shell> mysqladmin --user=root create cacti  
  2.  

  3.導(dǎo)入默認的 Cacti 數(shù)據(jù)庫:

  1.   shell> mysql cacti < cacti.sql 
  2.  

  4.(可選)為 Cacti 數(shù)據(jù)庫設(shè)置用戶名和密碼:

  1.   shell> mysql --user=root mysqlmysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';mysql> flush privileges;  
  2.  

  5.編輯 "include/config.php" 設(shè)置數(shù)據(jù)庫類型,數(shù)據(jù)庫名稱,主機名,用戶和密碼:

  1.   $database_type = "mysql";$database_default = "cacti";$database_hostname = "localhost";$database_username = "cactiuser";$database_password = "cacti";/* load up old style plugins here */$plugins = array();//$plugins[] = 'thold';/* Edit this to point to the default URL of your Cacti install ex: if your cacti install as at http://serverip/cacti/ this would be set to /cacti/*/$url_path = "/cacti/";/* Default session name - Session name must contain alpha characters */#$cacti_session_name = "Cacti";  
  2.  

  只有在使用 Plugin Architecture (PIA) 時才需要設(shè)置$Plugins 數(shù)組。對老版本的插件,這些變量需要設(shè)置在 global.php,現(xiàn)在這些插件配置已經(jīng)從 global.php 中移出,被放置在 config.php 中。這樣改變的目的是使 global.php 盡量保持簡單的結(jié)構(gòu)。global.php 應(yīng)該是一個盡量不被編輯的文件,所以如果安裝了 PIA,那么就盡量不要編輯 global.php 文件。

  基于同樣的原因,"URL_PATH" 變量也從 global.php 中被移動到 config.php。對于哪些從較老的 PIA 升級升級而來的人來說,需要了解的是,過去我們會嘗試"探測"這個路徑,但是,這種處理是不可靠的。因此,你需要在 config.php 中顯式的指定這一路徑。

  6.為 Cacti 的目錄文件夾設(shè)置合適的權(quán)限,以支持圖形文件/日志文件的生成。你需要在 Caacti 目錄文件夾中執(zhí)行如下命令:

  1.   shell> chown -R cactiuser rra/ log/  
  2.  

  (使用有效的用戶名來替換上文中的 cactiuser, 這個用戶在下面配置數(shù)據(jù)采集的時候還要使用。)

  7.在 "/etc/crontab" 文件中增加類似如如下的內(nèi)容:

  1.   */5 * * * * cactiuser php /var/www/html/cacti /poller.php > /dev/null 2>&1  
  2.  

  使用在上一步中指定的有效的用戶名來替換 cactiuser, 使用你的 cacti 完整路徑來替換 "/var/www/html/cacti/"。

  (如果使用二進制包安裝的話,請確認crontab的這些內(nèi)容是否已經(jīng)在安裝時被設(shè)置了。)

  譯者注:在RedHat及其衍生版本上,如此配置crontab是不可行的,crontab文件是不支持用戶名的配置的。推薦以確定用戶執(zhí)行 "crontab -u cacti -e" 然后添加:

  1.   */5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1  
  2.  

  8.請確認cron守護進程已經(jīng)運行:

  1.   shell> service crond startshell> chkconfig crond level 345 on  
  2.  

  9.使用瀏覽器訪問 http://your-sever/cacti,初始的用戶名和密碼都是 "admin"。首次登錄時,系統(tǒng)會強制要求你立即修改密碼。

  在下一步的配置中,請確認仔細填寫了所有的路徑,并且確保他們是正確的。

【編輯推薦】

Cacti安裝篇

Cacti配置下的使用技巧

Cacti如何監(jiān)控Tomcat

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

2011-03-25 13:40:28

Cacti安裝配置

2011-04-02 15:17:59

2011-04-02 15:26:58

Cacti安裝

2011-03-25 15:01:44

Cacti安裝

2011-04-02 15:17:48

Cacti安裝

2011-04-02 15:26:45

Cacti安裝

2010-01-13 11:17:50

2011-04-02 15:30:20

Cacti安裝

2011-03-31 15:51:51

cacti

2011-04-01 12:22:35

2011-04-02 15:30:41

Cacti安裝

2011-03-25 11:02:19

Cacti安裝

2014-01-16 14:20:38

CactiCacti監(jiān)控

2011-03-30 15:05:40

MRTG安裝

2011-11-08 21:55:58

MRTG 配置

2011-02-25 17:48:52

2010-06-07 11:22:28

2011-03-24 13:00:30

2011-02-23 10:43:17

2011-03-02 10:41:41

Vsftpd安裝
點贊
收藏

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