05.09.2019

Ubuntu Install Snmp Walk

Ubuntu Install Snmp Walk Rating: 6,1/10 463 reviews
  1. Snmpwalk V3
  2. Enable Snmp Ubuntu 16.04

Cacti is an open source web-based front end for the RRDtool that stores all the necessary information to display network and system graphics. Cacti makes use of the Simple Network Management Protocol to gather and monitor traffic from network devices, and can be installed on various Linux distributions. I'm going to walk you through the process of installing Cacti on Ubuntu 16.04 Server. The installation is quite involved and the majority of it is handled via the terminal. So log into your Ubuntu 16.04 server and prepare to type.

Configuring apt and update/upgrade

The first thing to do is to add the necessary repositories to apt. To do this create a new file with the command sudo nano /etc/apt/sources.list.d/cacti.list and add the following content:

  1. How To Monitor Linux Servers Using SNMP. In this article, we will show you how to install and configure SNMP on the remote Linux server and add the host to Atera. Install SNMPd agent on Ubuntu Server 17. Type the following command as root, then press Enter.
  2. Oct 28, 2017 - How To Install and Setup SNMP Service or Daemon For Linux. In this example we will use snmpwalk which will list all snmp data.

Save and close that file, and then update and upgrade ubuntu with the commands:

Installing dependencies

Next the necessary dependencies must be installed. This can be done with the following three commands:

If you have a firewall running, you'll need to open it up with the following command:

How to install Cacti SNMP Monitor on Ubuntu. I'm going to walk you through the process of installing Cacti on Ubuntu 16.04 Server. The installation is quite involved and the majority of it is.

Configure php

There are two lines to configure in /etc/php/7.0/apache2/php.ini. These two lines are:

Ubuntu Install Snmp Walk

If file_uploads isn't set to On, change it. You will also need to set your timezone. Find out your PHP-friendly timezone from the official PHP timezone listing. With those configurations in place, save and close the file and then restart Apache with the command:

The database

Cacti stores its data in an RDBMS database. To make that happen, we'll configure Cacti to work with MariaDB. Install this database with the command:

Next we secure the MariaDB root account with the following commands:

The final command will prompt you to answer a few questions. The first will be to enter the current password for the root user. Since there is no password, hit Enter on your keyboard and then type y to change the root password. Type and verify the new password, and then answer the remainder of the questions with the default answers.

Now we have to create the new database. This is done first by logging into the database with the command:

After you authenticate, issue the following commands to create the new database:

Next it is required to set permissions to the new database user according to the correct time zone. To do this, issue the following commands:

The next step is to append the following lines to the /etc/mysql/mariadb.conf.d/50-server.cnf file:

Restart Apache and MySQL with the following command:

Configure SNMP

Ubuntu Install Snmp Walk

Now it's time to install and configure the SNMP service. The installation is taken care of with the following command:

Since Cacti depends upon RRDtool, it must be installed with the following command:

Open the /etc/snmp/snmp.conf file and comment out the line mibs : by adding a # like so:

Save and close that file.

To configure SNMP, open the file /etc/snmp/snmpd.conf. The first thing that must be done is to comment out the line:

Now uncomment the line (by removing the #):

Scroll down and locate the line:

Below that line, add the following:

Save and close that file.

Restart the SNMP service with the command:

If you have a firewall running, open up the proper port with the command:

Install Cacti-Spine

Download resident evil 6 full version. It's time to install Cacti-Spine—a tool that replaces the default cmd.php poller. This is done with the following commands:


Next we configure Cacti-Spine to use our new database. Open the file /usr/local/spine/etc/spine.conf and edit the database credentials according to what you setup during the database installation/configuration. You'll need to change DB_User and DB_Pass.

Install Cacti

We finally get to the installation of Cacti. This is done with the following commands:


In similar fashion to Cacti-Spine, the Cacti configuration must be setup to connect to the database. Open the file /var/www/html/include/config.php and change the credentials as per the database install/configuration. You'll need to change database_username and database_password. In that same file, the line:

must be changed to:

Save and close that file.

Populate the cacti database with the command:

Issue the command mysql -u cacti_user cacti -p -e 'show tables' and you should see the newly populated data (Figure A).

Figure A

Before moving on to the web installation, issue the following commands:

Web installation

The last phase is to point your browser to http://SERVER_IP/install (Where SERVER_IP is the address of the server housing Cacti) and walk through the installation steps. Since we've already configured everything, this should require little more than clicking next a few times.

However, I did find one problem that took a bit of finagling to solve. The installer won't be able to find the spine executable. Out of the box, that executable is found in /usr/local/spine/bin. However, the installer wants it to be in /usr/local/spine/bin/spine/. To solve this, do the following:

It's an odd issue, but the above will take care of it.

After clicking Finish in the web installer, you'll be prompted to login. The default credentials are admin/admin. Once you enter those, you'll be prompted to set a new admin password (it must contain a mixture of upper/lowercase and at least one number). After that, you'll find yourself in the Cacti web interface where you can get busy working with your new installation of Cacti.

Happy graphing!

Cybersecurity Insider Newsletter

Strengthen your organization's IT security defenses by keeping abreast of the latest cybersecurity news, solutions, and best practices. Delivered Tuesdays and Thursdays

Sign up today Sign up today

Snmpwalk V3

Also see

Enable Snmp Ubuntu 16.04

  • How to easily share USB devices using USB Network Gate (TechRepublic)
  • How to monitor your Docker containers with ctop (TechRepublic)
  • Video: How to solve IPv6 network problems (TechRepublic Video)
  • How to install and use Logwatch on Linux (TechRepublic)
  • Uber says unauthorised transactions in Singapore not linked to global breach (ZDNet)