In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Cacti monitoring 1) cacti is a software implemented in PHP language 2) snmp service is used to obtain data, nnmp is related to data collection 3) rrdtool is used to generate charts when users need to view data to build Cacti monitoring platform 1) deployment of Cacti service running environment LAMP/LNMP#yum -y install httpd php-mysql mariadb#systemctl restart httpd#systemctl restart mariadb2) build cacti server #yum -y install rrdtool net-snmp-* /install dependency package snmp Simple network management protocol #tar zxf cacti-0.8.8h.tar.gz#cp -r cacti-0.8.8h /var/www/html/cacti#chown apache:apache /var/www/html/cacti /owner, owner group Create a library and table for apache to store configuration information #create database cactidb;#grant all on cactidb.* to cacti@"localhost" identified by "123456"#mysql -ucacti -p123456 cactidb
< /var/www/html/cacti/cacti.sql /导入存储配置信息的表修改配置文件,设置存储配置信息使用的库/var/www/html/cacti/include/config.php$database_type = "mysql"; /类型为mysql数据库$database_default = "cactidb"; /库名为创建的cactidb$database_hostname = "localhost"; /数据库本地主机名 localhost$database_username = "cacti"; /登录数据库用户 cacti$database_password = "123456";$database_port = "3306";$database_ssl = false;安装数据高速采集器spine#yum -y install mariadb-devel#tar zxf cacti-0.8.8h.tar.gz#cd cacti-0.8.8h#./configure --with-mysql 默认目录为/usr/local/spine#make#make install#cp usr/local/spine/etc/spine.conf.dist /etc/spine.conf#vim /etc/spine.confDB_Host localhostDB_Database cactidbDB_User cactiDB_Pass 123456DB_Port 3306web页面上进行修改settings -->path --->Spine Poller File Path /usr/local/spine/bin/spine ---> poller--->poller Type spineMonitoring Remote Hostsa) Configure monitored end [host17]#yum -y install net-snmp-*#sed -n '41p,62p,85p' /etc/snmp/snmpd.conf#systemctl restart snmpd#systemctl enable snmpdb) Configure monitoring server 1) Add monitoring host and select monitoring template web page-->Devices-->add--> host17/192.168.4.17/...---> save2) Set monitoring items 3) Create Images Devices--->create Graphs for this Host4) Create image trees and add images of monitoring hosts to the image count Graph Trees--->add5) Write cron tasks to grab data */5 ** * php/var/www/html/cacti/poller.php &> /dev/null#ls /var/www/html/cacti/rra -l Monitoring Alarms 1) Install plugins: Extract and move to the plug-in directory and activate it. 2) Configure monitoring alarm requirements: monitor the number of logged in users. a) Create message list notification Listsb) Set monitoring alarm item Threshold sc) Specify server setting---> Mail/DNS
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: 0
*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.