Centos8 Cacti¼³Ä¡(1)

   Á¶È¸ 10403   Ãßõ 0    

https://www.ehostidc.co.kr/ (508)
https://www.ehostidc.co.kr/cscenter/consulting.php (491)




안녕하세요! 무한도전입니다 😊

간만에 쓰는 포스팅인데요~

오늘은 Centos8 Cacti설치 방법에 대해 알아볼게요!



1) epel 및 패키지 설치

root@localhost:[~]: dnf -y install epel-release

root@localhost:[~]: dnf -y install cacti net-snmp net-snmp-utils php-mysqlnd php-snmp php-bcmath rrdtool


2) snmp 설정

root@localhost:[~]: vi /etc/snmp/snmpd.conf

#com2sec notConfigUser  default       public #line 41

com2sec mynetwork     IP       ehost #line 74

com2sec mynetwork     192.168.126.0/24     ehost #line 75

group MyRWGroup  any        local #line 79

group MyROGroup  any        mynetwork #line 80

view all    included  .1                               80 #line 86

access MyROGroup ""      any       noauth    0      all    none   none #line 94


3) mariaDB 설정



root@localhost:[~]: vi /etc/my.cnf.d/mariadb-server.cnf

default-time-zone='Asia/Tokyo'

character-set-server=utf8mb4

character_set_client=utf8mb4

collation-server=utf8mb4_unicode_ci

max_heap_table_size=128M

tmp_table_size=128M

join_buffer_size=256M

innodb_file_format=Barracuda

innodb_large_prefix=1

innodb_buffer_pool_size=2048M

innodb_flush_log_at_timeout=3

innodb_read_io_threads=32

innodb_write_io_threads=16

innodb_buffer_pool_instances=17

innodb_io_capacity=5000

innodb_io_capacity_max=10000


4) 시간대 설정



root@localhost:[~]: mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql

[root@dlp ~]# systemctl restart mariadb


5) DB생성 및 table 삽입



root@localhost:[~]: mysql -u root –p

MariaDB [(none)]> create database cacti;

MariaDB [(none)]> grant all privileges on cacti.* to cacti@'localhost' identified by 'password';

MariaDB [(none)]> grant select on mysql.time_zone_name to cacti@'localhost';

MariaDB [(none)]> flush privileges;

root@localhost:[~]: mysql -u cacti -p cacti < /usr/share/doc/cacti/cacti.sql


6) cacti DB환경설정



root@localhost:[~]: vi /usr/share/cacti/include/config.php

$database_type     = 'mysql'; #line 29

$database_default  = 'cacti';

$database_hostname = 'localhost';

$database_username = 'cactiuser';

$database_password = 'password';

$database_port     = '3306';

$database_retries  = 5;

$database_ssl      = false;

$database_ssl_key  = '';

$database_ssl_cert = '';

$database_ssl_ca   = '';


7) cacti.conf 설정



root@localhost:[~]: vi /etc/httpd/conf.d/cacti.conf

 #line 14

       

                # httpd 2.4

                Require all granted

       

       

                # httpd 2.2

                Order deny,allow

                Deny from all

                Allow from all

       


8) apache 설정



root@localhost:[~]: vi /etc/httpd/conf/httpd.conf

DocumentRoot "/usr/share/cacti" #line 122


9) php.ini 설정



root@localhost:[~]: vi /etc/php.ini

max_execution_time = 60 #line 383

memory_limit = 512M #line 404

date.timezone = Asia/Tokyo #line 902


10) demon 재시작 및 웹페이지 확인



root@localhost:[~]: systemctl restart httpd php-fpm mysqld

기본 계정: admin / admin



다음 시간에 이어서 Centos8 Cacti설치 방법에 대해 알아볼게요!

요즘 날씨가 급격히 추워졌어요. 다들 옷 단단히 챙겨입으시고 감기 조심하세요 😷

감사합니다 :-) 







https://www.aiocp.co.kr/ ( 딥러닝,머신러닝 서버 판매 ,컨설팅) https://bigbangcloud.co.kr/ ( GPU 클라우드 서비스) ::: AI 서버의 모든것 ::: 인공지능의 시작~ (주)이호스트ICT
Àϸ®ÄÉ 2020-10
À̾ß~ ÇѶ§ cacti À¸·Î À̹鿩´ë ¼­¹ö ¸ð´ÏÅ͸µ ¸ðµÎ ±¸ÃàÇßÀ»¶§°¡ »ý°¢³ª³×¿ä.
2016³âµµ ±îÁö¿´´Âµ¥...
Áö±ÝÀº cacti ¸¹ÀÌ ¹Ù²¼³ª¿ä?
Çѵ¿¾È ±â´ÉÀÇ º¯È­´Â ¾ø¾ú´ø°É·Î ±â¾ïÇϴµ¥.....
ÀÌÈÄ ¾î¶² º¯È­°¡ ÀÖ¾ú´ÂÁö ±Ã±ÝÇϳ׿ä.

Âü ¿À·£ ½Ã°£ µ¿¾È ÇÔ²² Çß´ø ÅøÀÌ¿´´ø ±â¾ïÀ̳׿ä.....
¾Æ ÁÁÀº ±Û °¨»çÇÕ´Ï´Ù


Á¦¸ñPage 9/28
2018-02   26084   ¹«¾Æ
02-22   25885   µö·¯´×¼­¹ö
2022-02   25871   È­Á¤Å¥»ï
2017-07   25798   stone92±è°æ¹Î
2016-07   25693   ¹é¸¸½º¹°Çϳª
2016-08   25511   ¹Ì³ª¸®³ª¹°
2014-07   25235   ºÐ³ëÀÇ´Ù¿îÈú
2014-11   25067   ±èȲÁß
2015-02   25038   ±èÁØ¿¬
2022-03   24947   ¹ÌÄ£°¨ÀÚ
2022-05   24940   ocarina
2022-08   24918   ¹ÌÄ£°¨ÀÚ
2019-07   24873   µö·¯´×¼­¹ö
2019-07   24814   ½ºÄµl¹ÎÇö±â
2017-07   24585   ¼¼¹ú½­
2016-06   24582   ¹éµÎ¼º
2018-04   24454   ȲÁø¿ì
2020-09   24454   PCMaster
2010-10   24430   theÃ̳ð
03-01   24429   tncsystem