• Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Tech Tips and Tutorials
Menu
  • Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Home  /  Linux  /  Install and configure Cacti in Ubuntu 18.04.1 LTS

Install and configure Cacti in Ubuntu 18.04.1 LTS

Written by
Linux Leave a Comment

You need a LAMP Stack to get cacti working on an Ubuntu server, get the server ready with all the updates and upgrades

apt-get update

apt-get upgrade

Cacti requires MySQL version 5.6 and to get it from the archives add the following custom repository:

add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' 

apt-get update 

Now install the required packages:

 apt-get install apache2 mysql-server-5.6 php libapache2-mod-php 

During the installation process you will be asked to add a root password for the mysql and you can set it and press OK . This is not mandatory

To get the Cacti functional we need some more packages :

apt-get install snmp snmpd rrdtool

Now we can install the cacti package as we have completed all the required dependencies :

 apt-get install cacti cacti-spine 

You will be asked to choose the installed webserver , so the installation will auto configure it for you :

You will also be asked to set a password for cacti db

choose the default connection type:

Then you will also be asked to set a db user for cacti


Now start all the services:

service snmpd restart

service mysql restart

service apache2 restart

So if all the services are running , you can finish the installation from the web URL

http://Your server IP /cacti

Configuring Cacti is very straight forward as it already has a number of Graph templates which you can use out of the box.

So Login to cacti and click on devices and click on the ‘+’ button at the top right .

Then you will be asked to add the details about your remote device :

In my example all my remote machines are Linux servers , but you can configure it for whatever devices for remote polling .

So you can use most of the default settings but make sure you choose the correct SNMP version as on your remote device . Also the SNMP community is mostly ‘Public’ which you can verify it from snmp conf:

/etc/snmp/snmpd.conf

If your remote machines are configured with specific SNMP community you need to use the same in the device config . For eg : most of the production Firewalls has specific SNMP groups for security reasons .

You can choose one of the device templates as below :

These templates are customizable . You can go to Templates >> Device option on the left side of the GUI and choose the selected template . By default , it has lots of parameters ready for polling ,you can delete the unwanted ones :

So back to the device configuration , you can choose the associated data queries . Its a drop down box and you can choose ‘Interface statistics’. You need this if you are tracking specific the interface traffic .

Select the inteface statistics and ‘Add’ and ‘Save’

If your conneection succeeds , at the very top of the page you will see the SNMP connection information . You can then choose ‘Create Graphs for the device’ option at the top :

So the Graph template is already customized with the required paramerts you can tick all the boxes .

Also from SNMP-Inteface statistics , choose the interfaces you need to poll

You can the go back to the devices and list graphs , please note it might take few minutes to get the data updated depends upon the polling interval set at configuration >> settings . So start troublehsooting only after giving it few minutes .

Share On
Share on Facebook
Share on Twitter
Share on Google+
Share on Whatsapp

Next Article   Cacti 1.1.38 ERROR Opening .rrd No Such file or directory

Related Posts

  • Linux Shell Scripts for System Administrators

  • SOCKS PROXY

  • How to grep IP addresses from log files in Linux

Leave a Reply

Cancel reply

  • Popular Posts
  • Recent Posts
  • Linux Shell Scripts for System Administrators
  • Cacti 1.1.38 ERROR Opening .rrd No Such file or directory
  • Apache configuration for Cacti
  • How to create RAM disk in Ubuntu 18.04
  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to install XAMPP and access phpMyAdmin in MAC OS
  • How to increase the root volume in a Linux ec2 instance

Linux

  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to grep IP addresses from log files in Linux
  • How to empty or delete a large file in Linux

Categories

  • AWS (5)
  • FreeBSD (12)
  • Linux (29)
  • Networking (3)
  • Python (5)
  • Uncategorized (4)
  • WebDev (1)
  • Connect on Facebook
  • Connect on YouTube
© Copyright 2020.TechieNix. All Rights Reserved.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.