Network Monitoring with Cacti

Good Day my dear Linux Yogi’s,

in today’s illustration I am showing you how to install, setup and configure Cacti a Web-based Network Monitoring tool. Cacti can monitor all sort of network devices from servers to switches, firewalls and routers to simple power backup units. Cacti can also be enhanced with its plugin interface.

As usual you should make sure your system is up to date. Run the following commands:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove

Now you got this out of the way lets install cacti and everything we need with the following command:

sudo apt-get install apache2 mysql-server-5.7 php libapache2-mod-php apache2-utils snmp snmpd rrdtool cacti cacti-spine

At this point we have to set up the root users password for the MySQL Database

set mysql root password
set mysql root password

and now you have to confirm that password.

confirm mysql root password
confirm mysql root password

Then you have to choose which web server you are using. In our example we use Apache.

select desired webserver
select desired webserver

In the next step you have to select “Yes” in order to get the database configured for Cacti.

configure database for cacti
configure database for cacti

The Cacti Database needs the cacti user to have a password. Choose a strong password

enter cacti database user password
enter cacti database user password

and confirm it here.

confirm cacti database user password
confirm cacti database user password

So the terminal based installation is done and you have to move on to the web based set up. Start a web browser and enter the following URL: http://<server name or ip here>/cacti/install in my case it looks like this: http://192.168.0.133/cacti/install

Cacti installation guide
Cacti installation guide

Read the information displayed to you and click on next.

Cacti installation new install
Cacti installation new install

Then select the installation type. If you followed along it would be a “New Install“.

check cacti requirements
check cacti requirements

In the next step make sure that there are no red marked section. If you have something red then something went wrong. Click on “Finish” if everything is okay.

Cacti first login
Cacti first login

Now you are ready to log in. The default username and password is admin / admin

change password
change password

after successful login it makes you change the default password. Choose a good strong password.

Cacti Home Screen
Cacti Home Screen

Now you are logged in and the system is all ready to go. In the next article I will show you how to add certain equipment like firewall, router, switch, linux server and windows server.

I hope you liked this article until then, Namaste my friends!