In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Link: https://pan.baidu.com/s/1Hu-RykIAs6xzahM2Ldby8g
Extraction code: 6un5
This experiment needs to be connected to the Internet, so two network cards are needed, one is host only and the other is bridged.
Systemctl stop firewalldsetenforce 0cd / etc/yum.repos.d/cp back/*. / add required yum source vi all.repo--- add Chinese University of Science and Technology mariadb source-[mariadb] name = MariaDBbaseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.3/centos7-amd64/gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDBgpgcheck=1
Install the required installation packages:
Yum install-y\
Httpd\
MariaDB-client MariaDB-server\
MariaDB-devel\
Php\
Php-snmp\
Php-ldap\
Php-pdo\
Php-mysql\
Php-devel\
Php-pear\
Php-common\
Php-gd\
Php-mbstring\
Php-xml\
Php-process\
Net-snmp\
Net-snmp-utils\
Net-snmp-libs\
Net-snmp-agent-libs\
Net-snmp-devel\
Rrdtool\
Rrdtool-php\
Rrdtool-perl\
Rrdtool-devel\
Gcc openssl-devel\
Dos2unix\
Autoconf\
Automake\
Binutils libtool\
Cpp postfix\
Glibc-headers\
Kernel-headers\
Glibc-devel\
Gd gd-devel\
Help2man\
Ntpdate\
Wget patch
Vi / etc/httpd/conf/httpd.confServerName www.aa.com DirectoryIndex index.html / / change html to phpvi / etc/httpd/conf.d/php.conf-add LoadModule php5_module modules/libphp5.so at the end
Vi / etc/php.inisafe_mode=off / / insert date.timezone = PRC / / remove comments under [PHP]
Systemctl stop firewalld
Setenforce 0
Systemctl start httpd
Systemctl start mariadb
Netstat-anpt | grep 80
Netstat-anpt | grep 3306
Mysql_secure_installation Security configuration Wizard
Y-n-y-y
Vi / var/www/html/index.php / / Edit web page test file
Test, enter 192.168.80.100 in the browser
Configure character_set_server = utf8mb4collation_server = utf8mb4_unicode_cicharacter_set_client = utf8mb4max_connections = 100max_heap_table_size = 256Mmax_allowed_packet = 16777216join_buffer_size = 64Mtmp_table_size = 64Minnodb_file_per_table = ONinnodb_buffer_pool_size = 1024Minnodb_doublewrite = OFFinnodb_lock_wait_timeout = 50innodb_flush_log_at_timeout = 3innodb_read_io_threads = 32innodb_write_io_threads = 16 under vi / etc/my.cnf.d/server.cnf / / [mysqld]
Mysql-u root-p / / Log into the database CREATE DATABASE cacti character set utf8 collate utf8_bin;GRANT all ON cacti.* TO 'cacti'@'%' IDENTIFIED BY' admin123';GRANT all ON cacti.* TO 'cacti'@'localhost' IDENTIFIED BY' admin123';flush privileges
Vi / var/www/html/index.php
To test whether mysql php is working together, enter 192.168.80.100 in the browser.
-at this point, the LAMP architecture ends--
Yum install-y lrz*s install cactitar xf cacti-1.1.26.tar.gzmv cacti-1.1.26 / var/www/html/cactimysql-ucacti-p cacti
< /var/www/html/cacti/cacti.sqlmysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot mysql -p mysql -u root -p grant select on mysql.time_zone_name to 'cacti'@'%' IDENTIFIED BY 'admin123'; //在数据库中为时区文件授权flush privileges; vi /var/www/html/cacti/include/config.php$database_hostname='192.168.80.100';$database_username = 'cacti';$database_password = 'admin123'; 配置SNMP 简单网络管理协议vi /etc/snmp/snmpd.conf access notConfigGroup "" any noauth exact all none none //把systemview改成all 62 view all included .1 80 // 去掉#号 85 systemctl restart snmpdsystemctl enable snmpduseradd -r -M cactichown -R 777 /var/www/html/cacti/rra/chown -R 777 /var/www/html/cacti/log/chown -R apache.apache /var/www/html/cacti/resource/chown -R apache.apache /var/www/html/cacti/cachechown -R apache.apache /var/www/html/cacti/scriptscrontab -e*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php >> / tmp/cacti_rrdtool.log
Install cacti-spine to optimize data polling speed ln-s / usr/lib64/libmysqlclient.so.18.0.0 / usr/lib64/libmysqlclient.so tar xf cacti-spine-1.1.26.tar.gzcd cacti-spine-1.1.26./configure & & make & & make install cp / usr/local/spine/etc/spine.conf.dist / usr/local/spine/etc/spine.conf vi / usr/local/spine/etc/spine.conf / / modify relevant parameters Number DB_Host localhostDB_Database cactiDB_User cactiDB_Pass admin123DB_Port 3306 RDB_Host localhostRDB_Database cactiRDB_User cactiRDB_Pass admin123RDB_Port 3306
/ usr/local/spine/bin/spine-c / usr/local/spine/etc/spine.conf
Systemctl restart httpdsystemctl restart mariadb
-Log in to the page-
192.168.80.100/cacti/
Installation process
The user name and password default to admin, and the password needs to be changed after login (at least eight digits and complex)
Reset the password, which is a combination of uppercase and lowercase special characters
Revisit: http://192.168.80.10/cacti/
(console) Console-> system configuration-> Settings (Cacti Settings)-> Paths-> enter the configuration file path / usr/local/spine/bin/spine in the Spine Binary File Location text box, and click Save (Save).
Console-> Settings (Cacti Settings)-> Poller-> Select spine in the Poller Type drop-down box, and click Save (Save). Note: if you use spine, the following two rotation training times and scheduled task intervals should be set to every Minute
If you report an error when viewing graphic data: / bin/rrdtool: symbol lookup error: / lib64/libpango-1.0.so.0:undefined symboll solution: yum update glib2-y if you report an error: error:opening'/ var/www/html/cacti/rra/local_linux_machine_load_1min_2.rrd':No such file or directory solution: chmod-R 777 / var/www/html/cacti/rra/usr/bin/php / var/www/html/cacti/poller.php
Add a device:
Win7 settings:
Control Panel-programs and Features
Open the Service Manager:
Win+r,services.msc
After adding devices and graphics, you need to rebuild the collector cache.
Check it on cacti.
Manage à equipment (device)
Just check that the linux status is UP. Be careful not to worry. It takes about 2-5 minutes for spine mode to just start, some fast and some slow.
Set the IP address of the host:
Then select the drawing directly, and you can view the picture processed by cacti
-add a linux server:-
Yum install-y\
Net-snmp\
Net-snmp-utils\
Net-snmp-libs\
Net-snmp-agent-libs\
Net-snmp-devel
Configure SNMP simple Network Management Protocol
Vi / etc/snmp/snmpd.conf
Com2sec notConfigUser 192.168.80.100 public # which server is allowed to monitor the native machine, public community name
Access notConfigGroup "" any noauth exact all none none / / change systemview to all 62
View all included. 180 / / remove # 85
Systemctl restart snmpd
You can execute the following command on the cacti server:
Snmpwalk-V2C-c public 192.168.80.101
Test whether the data can be crawled
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 210
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.