Install and Configure Smokeping on Ubuntu 17.04

Smokeping is an open-source deluxe latency measurement application that you can simply use it to measure, store and display latency, latency distribution, and packet loss and much more.

Smokeping can easily keep track of your network with latency monitoring. Smokeping allows you to maintain a longterm data-store and generate statistical charts based on RRDtool’s output. In this tutorial, we are going to explain how to install and configure Smokeping on Ubuntu 17.04.

“Smokeping” can easily keep track of your network with latency monitoring. Smokeping allows you to maintain a longterm data-store and generate statistical charts based on RRDtool’s output. In this tutorial, we are going to explain how to install and configure Smokeping on Ubuntu 17.04.

Install Smokeping

1. Before you install “Smokeping” you have to install “Nginx” webserver with fcgiwrap and sendmail, you can install all these packages, by the command below.

sudo apt-get install nginx sendmail fcgiwrap

Type “Y” and press Enter to continue

2. Now the 3 packages are successfully installed, start Ngnix service and also make it start with the boot of your Linux, do that by the below command.

sudo /etc/init.d/nginx start sudo update-rc.d nginx defaults

3. Time to install “Smokeping”, install it by the below command.

sudo apt-get install smokeping

Type “Y” and press Enter to continue.

4. You will have to use “Fcgiwrap” with “Nginx”, first copy the configuration files by the command below.

sudo cp /usr/share/doc/fcgiwrap/examples/nginx.conf /etc/nginx/fcgiwrap.conf

5. Open “fcgiwrap” configuration file with nano editor by the command below.

sudo nano /etc/nginx/fcgiwrap.conf

6. Edit the file as it shown in the below screenshot, then save and exit.

7. Create a link from “Smokeping” to “www” directory, by the below command.

sudo ln -s /usr/share/smokeping/www /var/www/smokeping sudo ln -s /usr/lib/cgi-bin/smokeping.cgi /usr/share/smokeping/www/smokeping.cgi

Configure Smokeping

It’s time to configure “Smokeping” tool, and we shall start with the general file.

1. We have to open the general file with nano editor, use the command below to open it.

sudo nano /etc/smokeping/config.d/General

2. Make changes to the file as this screenshot is showing.

3. Now change the “sendmail” values as  false in the directory “/etc/smokeping/config.d/pathnames”, open it by the command below.

sudo nano /etc/smokeping/config.d/pathnames

4. Change the content of the file, as the below screenshot below.

5. Now edit the alert file, open it with the command below, and edit it like the below screenshot

sudo nano /etc/smokeping/config.d/Alerts

6. Open your web browser and enter your local IP address following by “/Smokeping”, and the tool will run automatically.

Leave a Reply