Pages

Tuesday, November 17, 2020

Fedora 33 : Smokeping tool.

Smokeping is a latency measurement tool. It sends test packets out to the net and measures the amount of time they need to travel from one place to the other and back. SmokePing consists of a daemon process which organized the latency measurements and a CGI which presents the graphs. 
You can install it like a webpage, see a demo on this webpage with Customers.SALAG.
[root@desk mythcat]# dnf search SmokePing
Last metadata expiration check: 0:12:18 ago on Tue 17 Nov 2020 08:45:57 PM EET.
=============================== Name Matched: SmokePing ===============================
smokeping.noarch : Latency Logging and Graphing System
[root@desk mythcat]# dnf install smokeping.noarch
Last metadata expiration check: 0:12:24 ago on Tue 17 Nov 2020 08:45:57 PM EET.
Dependencies resolved.
=======================================================================================
 Package                    Architecture  Version                  Repository     Size
=======================================================================================
Installing:
 smokeping                  noarch        2.7.3-2.fc33             fedora        564 k
Installing dependencies:
 fedora-logos-httpd         noarch        30.0.2-5.fc33            fedora         15 k
 fping                      x86_64        5.0-1.fc33               fedora         38 k
 httpd                      x86_64        2.4.46-1.fc33            fedora        1.4 M
 httpd-filesystem           noarch        2.4.46-1.fc33            fedora         14 k
 httpd-tools                x86_64        2.4.46-1.fc33            fedora         83 k
 libdbi                     x86_64        0.9.0-16.fc33            fedora         50 k
 mod_fcgid                  x86_64        2.3.9-21.fc33            fedora         77 k
 mod_http2                  x86_64        1.15.14-2.fc33           fedora        152 k
 perl-CGI                   noarch        4.50-4.fc33              fedora        198 k
 perl-CGI-Fast              noarch        2.15-6.fc33              fedora         18 k
 perl-Config-Grammar        noarch        1.13-6.fc33              fedora         29 k
 perl-FCGI                  x86_64        1:0.79-5.fc33            fedora         47 k
 perl-Net-DNS               noarch        1.21-5.fc33              fedora        356 k
 perl-Net-Telnet            noarch        3.04-15.fc33             fedora         62 k
 perl-Path-Tiny             noarch        0.114-3.fc33             fedora         67 k
 perl-SNMP_Session          noarch        1.13-25.fc33             fedora         67 k
 perl-Unicode-UTF8          x86_64        0.62-13.fc33             fedora         26 k
 rrdtool                    x86_64        1.7.2-14.fc33            fedora        569 k
 rrdtool-perl               x86_64        1.7.2-14.fc33            fedora         43 k

Transaction Summary
=======================================================================================
Install  20 Packages

Total download size: 3.8 M
Installed size: 11 M
Is this ok [y/N]: y
Downloading Packages:
...
Complete!
[root@desk mythcat]# dnf install lighttpd
...
Complete!

[root@desk mythcat]# dnf install lighttpd-fastcgi
...
Complete!
Most users use the smokeping service:
sudo service smokeping start
sudo service smokeping status
You can set your configuration file using this file:
[mythcat@desk ~]$ sudo vi /etc/smokeping/config
I let this file unchanged and I run these commands:
[mythcat@desk ~]$ sudo smokeping --check
Configuration file '/etc/smokeping/config' syntax OK.
[mythcat@desk ~]$ sudo smokeping --debug
### Compiling alert detector pattern 'someloss'
### >0%,*12*,>0%,*12*,>0%
...
Smokeping version 2.007003 successfully launched.
Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for that.
FPing: probing 3 targets with step 300 s and offset 118 s.
FPing: Executing /usr/sbin/fping -C 20 -q -B1 -r1 -4 -i10 planet.fedoraproject.org fedoraproject.org 
docs.fedoraproject.org
FPing: Got fping output: 'planet.fedoraproject.org : 165 166 167 167 165 172 165 165 165 164 168 165 166 165
165 164 165 164 171 165'
FPing: Got fping output: 'fedoraproject.org        : 77.8 75.6 75.0 68.3 69.1 73.6 71.1 71.1 69.0 67.5
69.9 69.5 70.6 70.8 76.9 76.0 70.8 70.6 72.1 68.3'
FPing: Got fping output: 'docs.fedoraproject.org   : 171 165 165 165 180 164 170 164 164 165 163 171 
169 160 170 167 166 166 166 164'
Calling RRDs::update(/var/lib/smokeping/rrd/Ping/FedoraprojectOrg.rrd --template uptime:loss:median:
ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:
ping16:ping17:ping18:ping19:ping20 1605642550:U:0:7.0800000000e-02:6.7500000000e-02:
...
1.6700000000e-01:1.6800000000e-01:1.7100000000e-01:1.7200000000e-01)