How to Install SmokePing with Docker-Compose on Ubuntu 24.04

How to Install SmokePing with Docker-Compose on Ubuntu 24.04

SmokePing is a network latency monitoring tool that provides real-time insights into network performance. Installing it with Docker-Compose on Ubuntu 24.04 is straightforward. This guide will walk you through the process, from setting up your environment to configuring and running SmokePing.

Prerequisites

Before you begin, ensure that your system meets the following requirements:

  1. Ubuntu 24.04: Make sure you have Ubuntu 24.04 installed.
  2. Docker and Docker-Compose: These must be installed on your system.
  3. Basic Terminal Knowledge: You should be comfortable using the terminal.

Create a Directory for SmokePing

You need a dedicated directory for your SmokePing configuration files and data. Let’s create one.

  1. Create a directory for SmokePing:
mkdir ~/smokeping-docker
cd ~/smokeping-docker

Create a Docker-Compose file within this directory:

touch docker-compose.yml

Write the Docker-Compose Configuration

Your Docker-Compose file defines how Docker should run the SmokePing container. Open the file you created and add the following configuration.

  1. Open the Docker-Compose file for editing:
nano docker-compose.yml

2. Add the following configuration to the file:

version: "3.8"
services:
  smokeping:
    image: lscr.io/linuxserver/smokeping
    container_name: smokeping
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Sofia
    volumes:
      - ./config:/config
      - ./data:/data

    ports:
      - 8083:80
    restart: unless-stopped

3. Save and close the file by pressing CTRL+X, then Y, and Enter.

Configure monitoring targets

Modify the Targets file located at /smokeping/config/ to specify the target to be monitored.

For clarity, it’s recommended to clear the Targets file and replace its contents with the following example:

*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of WORKS Company. \
         Here you will learn all about the latency of our network.
+ Moite-proverki
menu = Moite-proverki
title = Moite-proverki
++ Bulsat-GW
menu = Bulsat-GW
title = Bulsat-46.40.64.1
host = 46.40.64.1
++ Abv-ping
menu = Abv-ping
title = Abv-194.153.145.104
host = 194.153.145.104
++ Cloudfare-DNS
menu = Cloudfare-DNS
title = Cloudfare-1.1.1.1
host = 1.1.1.1
++ Google-DNS
menu = Google-DNS
title = Google-8.8.8.8
host = 8.8.8.8

Manage and Monitor SmokePing

Managing your SmokePing instance with Docker-Compose is straightforward. Here are some essential commands.

  • Start SmokePing:
docker-compose up -d

Access SmokePing via your web browser by navigating to:

http://SERVER_IP:8083/smokeping/

Conclusion

Installing SmokePing with Docker-Compose on Ubuntu 24.04 offers a powerful and flexible monitoring solution. With Docker-Compose, you can easily manage your SmokePing instance, ensuring continuous monitoring of your network latency. By following this guide, you should have a fully functional SmokePing setup, ready to monitor your network’s performance.

This setup is just the beginning. Explore SmokePing’s documentation to customize and expand your monitoring capabilities. With this powerful tool, you’ll have detailed insights into your network’s health, helping you to troubleshoot and optimize it effectively.

Fedya Serafiev

Fedya Serafiev

Fedya Serafiev owns the website linuxcodelab.eu. He finds satisfaction in helping people solve even the most complex technical problems. His current goal is to write easy-to-follow articles so that such problems do not arise at all.

Thank you for reading the article! If you found the information useful, you can donate using the buttons below: