이전에 centos 6.6 버전에서 cacti 설치 했었는데 설치가 쉬워졌다.
ubuntu 로 설치 해본다
-- ubuntu 20.04 기준 --
# apt-get install cacti
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2 apache2-bin apache2-data apache2-utils dbconfig-common dbconfig-mysql default-mysql-client default-mysql-server fonts-dejavu-extra fonts-fork-awesome javascript-common libaio1 libapache2-mod-php libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libcgi-fast-perl libcgi-pm-perl libdbi1 libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl libjs-c3 libjs-chart.js libjs-d3 libjs-jquery libjs-jquery-colorpicker libjs-jquery-cookie libjs-jquery-hotkeys libjs-jquery-jstree
libjs-jquery-metadata libjs-jquery-tablesorter libjs-jquery-timepicker libjs-jquery-ui libjs-jquery-ui-theme-smoothness libjs-jquery-ui-theme-south-street libjs-jquery-ui-theme-ui-darkness libjs-jquery-ui-touch-punch liblua5.2-0 libmecab2 libonig5 libphp-phpmailer librrd8
mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0 php-common php-gd php-gmp php-ldap php-mbstring php-mysql php-phpmyadmin-motranslator php-phpseclib php-psr-cache php-psr-container php-psr-log php-snmp
php-symfony-cache php-symfony-cache-contracts php-symfony-expression-language php-symfony-service-contracts php-symfony-var-exporter php-twig php-xml php7.4-cli php7.4-common php7.4-gd php7.4-gmp php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline
php7.4-snmp php7.4-xml rrdtool snmp
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom cacti-spine moreutils snmpd php-pear libipc-sharedcache-perl libjs-jquery-ui-docs mail-transport-agent mailx tinyca php-libsodium php-mcrypt php-symfony-service-implementation php-twig-doc librrds-perl
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils cacti dbconfig-common dbconfig-mysql default-mysql-client default-mysql-server fonts-dejavu-extra fonts-fork-awesome javascript-common libaio1 libapache2-mod-php libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libcgi-fast-perl libcgi-pm-perl libdbi1 libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl libjs-c3 libjs-chart.js libjs-d3 libjs-jquery libjs-jquery-colorpicker libjs-jquery-cookie libjs-jquery-hotkeys libjs-jquery-jstree
libjs-jquery-metadata libjs-jquery-tablesorter libjs-jquery-timepicker libjs-jquery-ui libjs-jquery-ui-theme-smoothness libjs-jquery-ui-theme-south-street libjs-jquery-ui-theme-ui-darkness libjs-jquery-ui-touch-punch liblua5.2-0 libmecab2 libonig5 libphp-phpmailer librrd8
mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0 php-common php-gd php-gmp php-ldap php-mbstring php-mysql php-phpmyadmin-motranslator php-phpseclib php-psr-cache php-psr-container php-psr-log php-snmp
php-symfony-cache php-symfony-cache-contracts php-symfony-expression-language php-symfony-service-contracts php-symfony-var-exporter php-twig php-xml php7.4-cli php7.4-common php7.4-gd php7.4-gmp php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline
php7.4-snmp php7.4-xml rrdtool snmp
0 upgraded, 87 newly installed, 0 to remove and 101 not upgraded.
Need to get 56.0 MB of archives.
After this operation, 345 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2 [84.7 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2 [10.5 kB]
Get:4 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-ldap amd64 1.6.1-4ubuntu2 [8,736 B]
숄랑 숄랑 ~~~~~~~~~~~~~~~~~~~~~~~~~
어떤 web 서비스 할것인지 선택
yes 하고
db 암호 설정
확인 암호 입력
Creating config file /etc/lighttpd/conf-available/20-cacti.conf with new version
Loading default cacti templates (may take some time).... done.
apache2_invoke: Enable configuration cacti
Setting up libapache2-mod-php (2:7.4+75) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for ufw (0.36-6) ...
Processing triggers for systemd (245.4-4ubuntu3.11) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Processing triggers for php7.4-cli (7.4.3-4ubuntu2.6) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.6) ...
설치가 완료가 된다.
http://localhost/cacti 접속 해보면 위와 같이 접속 화면이 뜬다.
ID 는 : admin
Pass 는 아까 db 입력했던 암호 이다.
버전이 많이 올라가서 그런지 많이 변경됐다.
https://algo79.tistory.com/entry/cacti-backup-restore
백업 복원은 위 링크 참조하자.
'Ubuntu' 카테고리의 다른 글
libreNMS install for Ubuntu 20.04 (0) | 2021.10.15 |
---|---|
System log file is not available for writing, please enable write access Log: /usr/share/cacti/log/cacti.log (0) | 2021.10.13 |
ACPI Error No handler or method for GPE error for ubuntu install (0) | 2021.02.23 |
iredmail install for ubuntu 18.04 (0) | 2020.05.21 |
ubuntu 18.04 rc.local 구동 [snmp] (0) | 2019.11.14 |