LoginSignup
2
2

More than 5 years have passed since last update.

cacti を CentOS 6.2 へインストールする

Posted at

cacti-0.8.8a を CentOS 6.2 へインストールしたときのメモ。

下準備

sudo yum install php php-xml php-mbstring php-gd php-bcmath php-pdo php-mysql
sudo yum install php-snmp net-snmp net-snmp-devel
sudo yum install rrdtool

tar ball の取得

wget get http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
tar zxvf cacti-0.8.8a.tar.gz
cd cacti-0.8.8a

DB のセットアップ

mysqladmin -u root create cacti
mysql -u root

mysql> grant all on cacti.* to 'cactiuser'@'localhost' identified by 'cactiuser';
mysql> flush privileges;
mysql> quit;

mysql -ucactiuser -pcactiuser cacti < cacti.sql

cacti 本体のインストール

sudo groupadd cacti
sudo useradd -g cacti -d /var/www/html/cacti -s /sbin/nologin -M cacti
sudo cp -Ri . /var/www/html/cacti
sudo chown -R cacti:cacti /var/www/html/cacti/{rra,log}

ブラウザで http://"address"/cacti/ にアクセス。
表示に従って設定。
初期パスワードは admin/admin。

/etc/cron.d/cacti を以下のように登録。

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

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2