2020年9月18日

cacti 1.x 簡單筆記

wget https://www.cacti.net/downloads/cacti-latest.tar.gz
wget https://www.cacti.net/downloads/spine/cacti-spine-latest.tar.gz

yum install net-snmp-devel mysql-devel openssl-devel gcc autoconf automake libtool dos2unix help2man

tar zxvf cacti-latest.tar.gz
mv cacti-1.2.14 cacti
cd cacti
mkdir -p rra log
chmod 2664 rra log
cd include
vim config.php
vim globe.php
mysql -p -e "create database cacti;grant all on cacti.* to 'cacti'@'localhost' identified by 'password';"
mysql -p cacti < cacti.sql


tar zxvf cacti-spine-latest.tar.gz
cd cacti-spine.1.2.14
./bootstrap
./configure
make && make install
chown root:root /usr/local/spine/bin/spine
chmod +s /usr/local/spine/bin/spine
cd /usr/local/spine/etc
cp spine.conf.dist spine.conf
vim spine.conf


check cacti setting
path, poller

0 意見:

張貼留言