Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Cacti monitoring

Shulou Source: shulou.com Published: 2022-06-01 07:12:37 10月01日 Update

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

Tags: Monitoring service data monitoring alarm alarm configuration host server image picture plug-in user task information chart platform time template message activation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn macOS Microsoft Huawei