Тёмный

Setting Up Cacti Server with Weather Map Plugin on Ubuntu 22.04: Step-by-Step Guide 

The SysAdm
Подписаться 426
Просмотров 2,2 тыс.
50% 1

#ubuntu #cacti #learnbengali #linux #linuxadministration #learnlinux
Welcome to our comprehensive tutorial on configuring a Cacti server with the Weather Map plugin on Ubuntu 22.04! In this step-by-step guide, we'll walk you through the entire process, making it easy to monitor your network with Cacti and visualize network weather data using the Weather Map plugin.
*Prerequisites:*
Before we begin, ensure you have a clean Ubuntu 22.04 server ready and a basic understanding of Linux server administration.
Follow our easy-to-follow instructions to set up Cacti for network monitoring and enhance it with the Weather Map plugin. Whether you're an IT professional, network administrator, or just someone looking to manage their network effectively, this tutorial is designed for you.
Don't forget to like, subscribe, and hit the notification bell to stay updated with our latest tutorials on Linux server administration, network monitoring, and more!
If you have any questions or encounter any issues during the configuration process, please leave a comment below, and we'll be happy to assist you.
Thanks for watching!
---
*Steps*
apt update
apt install apache2
systemctl status apache2
systemctl enable --now apache2
apt install php php-{mysql,curl,net-socket,gd,intl,pear,imap,memcache,pspell,tidy,xmlrpc,snmp,mbstring,gmp,json,xml,common,ldap}
apt install libapache2-mod-php
vim /etc/php/8.1/apache2/php.ini
memory_limit = 512M
max_execution_time = 300
date.timezone = Asia/Kolkata
vim /etc/php/8.1/cli/php.ini
date.timezone = Asia/Kolkata
apt install mariadb-server -y
systemctl status mariadb
systemctl enable --now mariadb
mysql
CREATE DATABASE cacti DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
GRANT ALL PRIVILEGES ON cacti.* TO 'cacti_user'@'localhost' IDENTIFIED BY 'Password';
GRANT SELECT ON mysql.time_zone_name TO cacti_user@localhost;
ALTER DATABASE cacti CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
FLUSH PRIVILEGES;
EXIT;
vim /etc/mysql/mariadb.conf.d/50-server.cnf
Copy and Add the following given line under- [mariadb]
------------------------------------------------------
innodb_file_format=Barracuda
innodb_large_prefix=1
collation-server=utf8mb4_unicode_ci
character-set-server=utf8mb4
innodb_doublewrite=OFF
max_heap_table_size=128M
tmp_table_size=128M
join_buffer_size=128M
innodb_buffer_pool_size=1G
innodb_flush_log_at_timeout=3
innodb_read_io_threads=32
innodb_write_io_threads=16
innodb_io_capacity=5000
innodb_io_capacity_max=10000
innodb_buffer_pool_instances=9
add # tag in front of these two lines available in the same file to make them unreadable
----------------------------------------------------------------------------------------
#character-set-server = utf8mb4
#collation-server = utf8mb4_general_ci
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
apt install snmp snmpd rrdtool
apt install git
git clone -b 1.2.x github.com/Cac...
ls
mv cacti /var/www/html
Use the Cacti SQL configuration file to pre-populate the database created for it.
---------------------------------------------------------------------------------
mysql -u root cacti /var/www/html/cacti/cacti.sql
cd /var/www/html/cacti/include
cp config.php.dist config.php
vim config.php
Change the Database values - Database name, username, and password.
chown -R www-data:www-data /var/www/html/cacti
Create Cacti Systemd service
----------------------------
vim /etc/systemd/system/cactid.service
Add the following lines:
------------------------
[Unit]
Description=Cacti Daemon Main Poller Service
After=network.target
[Service]
Type=forking
User=www-data
Group=www-data
EnvironmentFile=/etc/default/cactid
ExecStart=/var/www/html/cacti/cactid.php
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
-----
Create an environment file:
---------------------------
touch /etc/default/cactid
Start the daemon
-----------------
systemctl daemon-reload
systemctl status cactid
systemctl enable --now cactid
systemctl status cactid
systemctl restart apache2 mariadb
Login Cacti monitoring on Ubuntu 22.04
---------------------------------------
server-IP-address/cacti/
Start Cacti web installation.
Let’s Add the WeatherMap Plugin to Our Cacti Server
---------------------------------------------------
git clone github.com/Cac...
ls
mv plugin_weathermap weathermap
cp weathermap /var/www/html/cacti/plugins/
cd /var/www/html/cacti/plugins/
chmod -R 777 weathermap/
systemctl restart cactid

Опубликовано:

 

16 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@ikhsansetiawan2649
@ikhsansetiawan2649 4 месяца назад
Please provide more tutorials for cacti, because I'm very interested in these cacti
@prashantdatir
@prashantdatir Год назад
Thanks for this informative vids Good Job Done 👌
@TheSysAdminOfficial
@TheSysAdminOfficial Год назад
It's my pleasure that it is helpful. 😊
@amirhossan7614
@amirhossan7614 Год назад
thanks Boss Amar request er video der Jonno ❤❤❤❤❤
@amirhossan7614
@amirhossan7614 Год назад
ISP sector er Jono khob opokare tool
@sayedakther
@sayedakther 11 месяцев назад
please share how to add weathermap or new weathermap on this version
@TheSysAdminOfficial
@TheSysAdminOfficial 7 месяцев назад
I'm sorry to say that, this is out of my scope, thank you for your co-operation.
@phyomaungmaung715
@phyomaungmaung715 7 месяцев назад
Thank you brother. How to contact your any social account?
@TheSysAdminOfficial
@TheSysAdminOfficial 7 месяцев назад
Thank you for your interest! I prefer to keep my social accounts private at the moment. However, I appreciate your understanding and support. Feel free to engage with me here on RU-vid!
Далее
Cacti Syslog Plugin Installation & Configuration
17:47
Sending Wazuh Alerts to Elasticsearch
18:02
How to Install Cacti Network Monitoring Tool on Ubuntu
19:15
Free Network Monitoring Cacti Step by Step
19:22
Просмотров 101 тыс.
How to install cacti on Ubuntu 22.04
21:59
Просмотров 12 тыс.