How To Set up Cacti monitoring on Ubuntu 22.04 | 20.04


This information is about How To Set up Cacti monitoring on Ubuntu 22.04 | 20.04. So learn this free information, How To Set up Cacti monitoring on Ubuntu 22.04 | 20.04 step-by-step. When you have question associated to identical article chances are you’ll contact us.

How To Set up Cacti monitoring on Ubuntu 22.04 | 20.04 – Information

we are going to present you the best way to set up Cacti Monitoring on Ubuntu 20.04 LTS. For many who don’t know, Cacti is an open-source web-based monitoring and graphing device developed as a front-end utility for the industry-standard open-source information logging device RRDtool. It’s used to get CPU utilization and community bandwidth information in a graphical format. MariaDB shouldn’t be protected by default.

You’ll be able to safe MariaDB with a mysql_secure_installationscript. It is best to rigorously learn every step that units a root password, removes nameless customers, disables distant root login, and removes the MariaDB check database and safety entry. By default, Cacti is offered on HTTP port 80. Open your browser of selection, navigate to or and comply with the steps to finish the set up. The set up of cacti information will seem on the display.

Steps to Set up Cacti Server on Ubuntu 22.04 | 20.04 Linux


  • Ubuntu server
  • DRR Instrument
  • MySQL, PHP
  • Internet server that helps PHP, e.g. Apache, Nginx or IIS
  • A non-root consumer with sudo rights
  • Web connection
  • Replace your Ubuntu 22.04 or 20.04 server

    Earlier than continuing with this tutorial let’s first replace our Ubuntu 22.04 or 20.04 server to make sure that all packages accessible on it are up Till the current date. This will even regenerate the APT package deal supervisor cache.

  • sudo apt replace && sudo apt improve
  • Set up Apache for Cacti

    To entry the Cacti monitoring server internet interface, we will need to have an internet server put in on our Ubuntu 22.04 or 20.04. Right here we’re selecting the favored open supply Apache.

    Begin and allow the Apache internet server:

  • sudo systemctl allow –now apache2
  • Set up PHP and MariaDB

    To retailer information, we’re utilizing MySQL/MariaDB, whereas Cacti internet UI relies on PHP, so we’d like this programming language put in on our system together with some extensions required by Cacti to work correctly…

    first arrange PHP:

  • sudo apt set up php php-{mysql,curl,net-socket,gd,intl,pear,imap,memcache,pspell,tidy,xmlrpc,snmp,mbstring,gmp,json,xml,frequent,ldap}
  • sudo apt set up libapache2-mod-php
  • Configure PHP’s reminiscence and runtime:

  • Edit the php.ini file:
  • sudo nano /and so on/php/*/apache2/php.ini
  • Press Ctrl+W and kind memory_limit
  • And alter its worth from 128 to 512M
  • Likewise, search for max_execution_time and alter its worth from 30 to 300.
  • Discover: date.timezone and set the PHP timezone in line with your nation. For those who don’t learn about your nation’s time zone format, go to PHP’s time zones web page to seek out out.
  • date.timezone = Asia/Calcutta
  • Save the file by urgent Ctrl + O then press the Enter key and use Ctrl + X to exit.
  • Now additionally edit the PHP CLI file php.ini and set the timezone there as nicely.
  • sudo nano /and so on/php/*/cli/php.ini
  • Ends and set the timezone once more:
  • date.timezone = Asia/Calcutta
  • Set up MariaDB

  • As soon as PHP is on our system, let’s set up the MySQL fork MariaDB Server accessible on Ubuntu 22.04 or 20.04 via its official repository utilizing the APT package deal supervisor.
  • sudo apt set up mariadb-server -y
  • Begin and allow the database server:
  • sudo systemctl allow –now mariadb
  • To test your standing:
  • sudo systemctl standing mariadb
  • Create MariaDB Database for Cacti
  • sudo mysql -u root -p
  • GRANT ALL PRIVILEGES ON cacti.* TO ‘cacti_user’@’localhost’ IDENTIFIED BY ‘strongpassword’;
  • GRANT SELECT ON mysql.time_zone_name TO [email protected];
  • ALTER DATABASE cacti CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
  • EXIT;
  • Configure MariaDB for Cacti:

  • sudo nano /and so on/mysql/mariadb.conf.d/50-server.cnf
  • Copy and add the next line given in –
  • innodb_file_format=Barracuda
  • innodb_large_prefix=1
  • collation-server=utf8mb4_unicode_ci
  • server-charset=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
  • Additionally, add the # tag in entrance of those two traces accessible in the identical file to make them unreadable:
  • #character-set-server = utf8mb4
  • #collation-server = utf8mb4_general_ci
  • Save the file: Ctrl+O, press the Enter key, then Ctrl+X to exit.
  • Now set timezone in MySQL
  • sudo su –
  • mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
  • Set up SNMP and different instruments for Cacti

  • We want some vital instruments for the right functioning of Cacti monitoring techniques, reminiscent of SNMP and rrdtool. So on this step we’re going to set up them.
  • sudo apt set up snmp snmpd rrdtool
  • Remaining word

    I hope you just like the information How To Set up Cacti monitoring on Ubuntu 22.04 | 20.04. In case if in case you have any question regards this text chances are you’ll ask us. Additionally, please share your love by sharing this text with your mates.

    Leave A Reply

    Please enter your comment!
    Please enter your name here