Log inSign up

Long term latency and loss graphs with SmokePing

Install the smokeping package together with Apache, list the hosts you care about in /etc/smokeping/config.d/Targets, check the file with sudo smokeping --check and restart the service. Every five minutes it sends a burst of pings to each target and draws the median, the spread and the loss into graphs you open at /smokeping/smokeping.cgi, which you should protect with a password.

Topic: Networking and diagnostics · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

What does SmokePing show that ping and mtr do not?

A single ping or an mtr report shows the network at one moment. SmokePing keeps measuring, day and night, and stores the results in round robin databases so you can scroll back weeks. Each measurement round sends several pings (twenty by default) and plots the median as a line, the spread of the other answers as grey "smoke" around it, and packet loss as the colour of the line. A thin line with little smoke means a steady path; wide smoke means jitter; coloured segments mean loss.

Typical uses on a VPS: watch the path to a home line or office, compare latency to a backup server in another of our 32 cities, record how a node or game server peer behaves over time, and keep evidence when a user reports lag at a specific hour.

How do you install SmokePing?

This guide covers Ubuntu 24.04, Ubuntu 22.04, Debian 12 and Debian 13, where SmokePing, its fping probe and the Apache integration are packaged together. Check the version on offer, then install it with Apache for the web view:

sudo apt update
apt policy smokeping
sudo apt install -y smokeping fping apache2 apache2-utils
smokeping --version
systemctl status smokeping --no-pager

The package places a small Apache configuration snippet and enables the CGI module during installation. Confirm both, and enable them by hand if your system shows them missing:

ls /etc/apache2/conf-enabled/ | grep -i smokeping
apache2ctl -M | grep -i cgi
sudo a2enmod cgid
sudo systemctl restart apache2

Configuration lives in /etc/smokeping/config.d/, split into files such as General, Probes, Targets, Database and Alerts. Measurement data goes to /var/lib/smokeping.

How do you set the owner details and probes?

Open /etc/smokeping/config.d/General and set owner, contact and cgiurl to your own values, for example cgiurl = https://mon.example.net/smokeping/smokeping.cgi. Probes are the measuring methods. The default file already defines fping; add a DNS probe if you want resolver response times as well:

*** Probes ***

+ FPing
binary = /usr/bin/fping

+ DNS
binary = /usr/bin/dig

The DNS probe needs dig, which comes with sudo apt install -y bind9-dnsutils. Other probes exist for HTTP, SSH and more; the smokeping_examples and smokeping_config man pages list them with their options.

How do you define targets?

Targets form a tree: lines starting with one plus sign are groups, two plus signs are hosts inside a group. Each node needs a menu name and a title, and hosts need a host line. Replace the sample tree in /etc/smokeping/config.d/Targets with your own, keeping the header lines at the top:

*** Targets ***

probe = FPing
menu = Top
title = Latency from 198.51.100.24
remark = Round trip time and loss from this server.

+ Paths
menu = Paths
title = Important network paths

++ Home
menu = Home line
title = Home router
host = home.example.net

++ Backup
menu = Backup server
title = Backup server in another city
host = 203.0.113.80

+ Resolvers
menu = DNS
title = Resolver response time
probe = DNS

++ System
menu = System resolver
title = Resolver used by this server
host = 198.51.100.53
lookup = example.net

Use the address from the nameserver line in /etc/resolv.conf for the resolver target. Target names must contain only letters, digits, dashes and underscores. Check the syntax and restart:

sudo smokeping --check
sudo systemctl restart smokeping

How do you protect the web view?

The graphs reveal which hosts you care about, so put a password and HTTPS in front of them. Create a login with htpasswd and an Apache snippet that covers the SmokePing path:

sudo htpasswd -c /etc/apache2/.htpasswd-smokeping deploy

sudo tee /etc/apache2/conf-available/smokeping-auth.conf >/dev/null <<'EOF'
<Location "/smokeping">
    AuthType Basic
    AuthName "SmokePing"
    AuthUserFile /etc/apache2/.htpasswd-smokeping
    Require valid-user
</Location>
EOF

sudo a2enconf smokeping-auth
sudo apache2ctl configtest
sudo systemctl reload apache2

Open the web ports in the firewall and add a certificate so the password does not travel in clear text; the certbot guide covers the Apache plugin.

sudo ufw allow OpenSSH
sudo ufw allow 'Apache Full'
sudo ufw enable

How do you check that it works?

Measurements start right after the restart, but the first useful graph takes two or three rounds of five minutes each. Meanwhile, watch the log and confirm that database files appear:

journalctl -u smokeping -n 30 --no-pager
sudo ls -R /var/lib/smokeping | head
curl -s -o /dev/null -w '%{http_code}\n' -u deploy https://mon.example.net/smokeping/smokeping.cgi

The curl command should print 200 after it asks for the password. In the browser, open https://mon.example.net/smokeping/smokeping.cgi and select a target in the menu: you will see graphs for the last three hours, thirty hours, ten days and one year. Each graph legend shows median RTT, average loss and the standard deviation for the visible period.

How do you read the graphs?

Look at three things. The line height is the median round trip time; a sudden step up that stays usually means a routing change. The smoke width shows jitter; wide smoke at the same hours each evening often points at a busy link near the far end. The line colour shows loss per round; green means none, while blue, purple and red mean growing loss. Loss on every target at the same moment suggests something near your server, while loss on one target points at that path.

When you see trouble, run mtr -rwc 100 TARGET at that moment to locate the hop, and compare with the graph of another target in the same direction.

How do you maintain SmokePing?

Updates come with normal system upgrades. The step size and ping count in config.d/Database define the database layout; if you change them, the existing round robin files no longer match and must be removed from /var/lib/smokeping, which loses history, so settle those values early. Alerts are defined in config.d/Alerts and are sent by mail, so they need working outgoing mail; plan that through an authenticated relay on port 587 as in the SMTP relay guide, because direct sending on port 25 is not something to assume on a VPS. Ask support with a ticket if you need port 25.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
S1-2a few dozen targets1 vCPU, 2 GB RAM, 55 GB SSD$6.00/mo$72.00 for 12 months
A1-2when the server also runs other tools1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months

Questions about Latency graphs with SmokePing

How much load does SmokePing put on the server?

Very little. A few dozen targets measured every five minutes use small amounts of CPU and traffic, so the smallest plans handle it.

Can I measure from several cities at once?

Yes. SmokePing supports a main instance with secondary measuring nodes. Deploy a small server in another city and configure it as a secondary that reports to the main one.

Why is a target shown with 100 percent loss?

The host may block ICMP. Check with ping by hand, then switch that target to a TCP or HTTP based probe if pings are filtered.

Does SmokePing work with IPv6 targets?

Yes. fping handles IPv6 addresses, and SmokePing also offers an FPing6 probe. Check the smokeping_config man page for the probe options of your version.

Can I use nginx instead of Apache?

Yes, through fcgiwrap, but the Debian and Ubuntu packages are prepared for Apache, so Apache is the shortest path.