<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by dadywarbucks on Medium]]></title>
        <description><![CDATA[Stories by dadywarbucks on Medium]]></description>
        <link>https://medium.com/@dadywarbucks?source=rss-316cbfb987c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*h7lr8h0kh5W6fs1TpB0CHg.jpeg</url>
            <title>Stories by dadywarbucks on Medium</title>
            <link>https://medium.com/@dadywarbucks?source=rss-316cbfb987c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:00:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dadywarbucks/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to install and configure Smokeping on Debian 12.5]]></title>
            <link>https://dadywarbucks.medium.com/how-to-install-and-configure-smokeping-on-debian-12-5-dfe852e98ed9?source=rss-316cbfb987c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfe852e98ed9</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[dadywarbucks]]></dc:creator>
            <pubDate>Thu, 29 Feb 2024 02:05:40 GMT</pubDate>
            <atom:updated>2024-06-20T07:58:41.023Z</atom:updated>
            <content:encoded><![CDATA[<p>Smokeping is a latency measurement tool that is used to monitor hosts, such as IPs and Websites. It is used throughout the Security and Networking industry to measure network connectivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OucrpoSH7D_14EDP" /><figcaption>Photo by <a href="https://unsplash.com/@theshubhamdhage?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>References:</p><ul><li><a href="https://oss.oetiker.ch/smokeping/">Smokepings Homepage</a></li><li><a href="https://oss.oetiker.ch/smokeping/doc/index.en.html">Smokeping Documentation</a></li></ul><h4><strong>Getting started:</strong></h4><h3><strong><em>Update and Upgrade your System:</em></strong></h3><pre>sudo apt update &amp;&amp; sudo apt upgrade -y</pre><h3><strong><em>Install Dependencies:</em></strong></h3><pre>sudo apt install --no-install-recommends \<br>        dnsutils curl \<br>        rrdtool fping \<br>        dnsutils libwww-perl \<br>        librrds-perl wget</pre><h3><strong><em>Download Smokeping:</em></strong></h3><pre>wget https://oss.oetiker.ch/smokeping/pub/smokeping-2.8.2.tar.gz</pre><h3><strong><em>Extract and Build Smokeping:</em></strong></h3><pre>sudo tar -xvzf smokeping-2.8.2.tar.gz<br>cd smokeping-2.8.2.tar.gz<br>LC_ALL=C ./configure --prefix=/usr/local/smokeping<br>sudo make install</pre><p>This will take a while… When it is done it should look something like this:</p><figure><img alt="smokeping done installing" src="https://cdn-images-1.medium.com/max/814/1*VIT_B1xsHNRueBa-FIdMrA.png" /></figure><h3><strong><em>Verify Install:</em></strong></h3><p>Verify the installation by checking the version by running this command:</p><pre>/usr/local/smokeping/bin/smokeping --version</pre><p>And should show this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*E_Neu9pw-5xvsogWmrASCw.png" /></figure><h3><strong><em>Configure Smokeping:</em></strong></h3><p>First backup the original files by running and by replacing YOUR_USER with your username:</p><pre>sudo tar -czvf /home/YOUR_USER/smokeping-2.8.2.tar.gz /usr/local/smokeping/</pre><p>Then open this file with your preferred text editor at /usr/local/smokeping/etc/config</p><pre>*** General ***<br><br>owner    = YOUR NAME<br>contact  = YOUR_USER@localhost<br>mailhost = localhost<br>sendmail = /usr/sbin/sendmail<br># NOTE: do not put the Image Cache below cgi-bin<br># since all files under cgi-bin will be executed ... this is not<br># good for images.<br>imgcache = /usr/local/smokeping/cache<br>imgurl   = cache<br>datadir  = /usr/local/smokeping/data<br>piddir  = /usr/local/smokeping/var<br># Bellow allows the web gui to be accessed<br>cgiurl   = http://0.0.0.0/smokeping.cgi<br>smokemail = /usr/local/smokeping/etc/smokemail.dist<br>tmail = /usr/local/smokeping/etc/tmail.dist<br># specify this to get syslog logging<br>syslogfacility = local0<br># each probe is now run in its own process<br># disable this to revert to the old behaviour<br># concurrentprobes = no<br><br><br>*** Alerts ***<br>to   = root@localhost<br>from = smokealert@localhost<br><br>+someloss<br>type = loss<br># in percent<br>pattern = &gt;0%,*12*,&gt;0%,*12*,&gt;0%<br>comment = loss 3 times  in a row<br><br>*** Database ***<br><br>step     = 300<br>pings    = 20<br><br># consfn mrhb steps total<br><br>AVERAGE  0.5   1  28800<br>AVERAGE  0.5  12   9600<br>    MIN  0.5  12   9600<br>    MAX  0.5  12   9600<br>AVERAGE  0.5 144   2400<br>    MAX  0.5 144   2400<br>    MIN  0.5 144   2400<br><br>*** Presentation ***<br><br>template = /usr/local/smokeping/etc/basepage.html.dist<br>htmltitle = yes<br>graphborders = no<br><br>+ charts<br><br>menu = Charts<br>title = The most interesting destinations<br><br>++ stddev<br>sorter = StdDev(entries=&gt;4)<br>title = Top Standard Deviation<br>menu = Std Deviation<br>format = Standard Deviation %f<br><br>++ max<br>sorter = Max(entries=&gt;5)<br>title = Top Max Roundtrip Time<br>menu = by Max<br>format = Max Roundtrip Time %f seconds<br><br>++ loss<br>sorter = Loss(entries=&gt;5)<br>title = Top Packet Loss<br>menu = Loss<br>format = Packets Lost %f<br><br>++ median<br>sorter = Median(entries=&gt;5)<br>title = Top Median Roundtrip Time<br>menu = by Median<br>format = Median RTT %f seconds<br><br>+ overview<br><br>width = 600<br>height = 50<br>range = 10h<br><br>+ detail<br><br>width = 600<br>height = 200<br>unison_tolerance = 2<br><br>&quot;Last 3 Hours&quot;    3h<br>&quot;Last 30 Hours&quot;   30h<br>&quot;Last 10 Days&quot;    10d<br>&quot;Last 360 Days&quot;   360d<br><br>#+ hierarchies<br>#++ owner<br>#title = Host Owner<br>#++ location<br>#title = Location<br><br>*** Probes ***<br><br>+ FPing<br>binary = /usr/bin/fping<br><br>*** Targets ***<br>menu  = Top<br>probe = FPing<br>title = Network Latency Grapher<br>remark = Network Latency Grapher<br><br>+ SearchEngine<br>menu = Search-Engine<br>title = Search Engine<br><br>++ Google<br>menu = Google<br>title = google.com<br>host = google.com<br><br>++ Bing<br>menu = Bing<br>title = Bing.com<br>host = bing.com<br><br>++ DuckDuckGo<br>menu = DuckDuckGo<br>title = DuckDuckGo.com<br>host = duckduckgo.com<br><br>++ Yahoo<br>menu = Yahoo<br>title = Yahoo.com<br>host = yahoo.com</pre><p>The use of this code is to track the packets to the sites.</p><p>Verify that it works by running as root:</p><pre>/usr/local/smokeping/bin/smokeping --debug</pre><p>And the output should look like this:</p><figure><img alt="smokeping’s debug output" src="https://cdn-images-1.medium.com/max/1024/1*y1u6KpZco7-wf_WsnooErg.png" /></figure><h3><strong><em>Configure Systemd Service:</em></strong></h3><p>Open with your preferred editor <em>/lib/systemd/system/smokeping.service</em></p><p>And add the configuration below:</p><pre>[Unit]<br>Description=Smokeping Server: Latency Logging and Graphing System<br>Documentation=man:smokeping(1) file:/usr/share/doc/smokeping/examples/systemd/slave_mode.conf<br>After=network.target<br><br>[Service]<br># It would in theory be simpler to run smokeping with the --nodaemon option and<br># Type=simple, but smokeping does not work properly when in &quot;slave&quot; mode with<br># --nodaemon set.<br>Type=Simple<br><br># If you need to run smokeping in slave/master mode, see the example unit<br># override in /usr/share/doc/smokeping/examples/systemd/slave_mode.conf<br>ExecStart=/usr/local/smokeping/bin/smokeping --nodaemon /usr/local/smokeping/etc/config --logfile=/var/log/smokeping.log<br><br><br>[Install]<br>WantedBy=multi-user.target</pre><p>Then to start it run:</p><p>Enables:</p><pre>sudo systemctl enable smokeping.service</pre><p>Starts:</p><pre>sudo systemctl start smokeping.service</pre><p>Checks the status:</p><pre>sudo systemctl status smokeping.service</pre><p>Stops the service: (optional)</p><pre>sudo systemctl stop smokeping.service</pre><h3><strong><em>Enable the web Interface:</em></strong></h3><p>Install Apache if not already installed:</p><pre>sudo apt install libapache2-mod-fcgid apache2 -y</pre><p>After installing, add the web user to the Smokingping directory so it can reach it:</p><pre>sudo chown www-data:www-data -R /usr/local/smokeping/</pre><p>Add an Apache Virtual Host:</p><p>Then open this file with your preferred text editor at:</p><p><em>/etc/apache2/conf-available/smokeping.conf</em></p><p>And then add the code bellow:</p><pre>Alias /smokeping/cache /usr/local/smokeping/cache<br>Alias /smokeping /usr/local/smokeping/htdocs/<br><br>&lt;Directory &quot;/usr/local/smokeping/cache&quot;&gt;<br>  AllowOverride all<br>  Require all granted<br>&lt;/Directory&gt;<br><br>&lt;Directory &quot;/usr/local/smokeping/htdocs/&quot;&gt;<br> Options FollowSymLinks ExecCGI<br> AllowOverride all<br> Require all granted<br>&lt;/Directory&gt;</pre><p>Then enable the config:</p><pre>sudo a2enconf smokeping</pre><p>Enable CGI Mod and Restart Apache:</p><pre>sudo a2enmod cgi<br>sudo systemctl restart apache2.service</pre><p>Once that has been restarted you can access the dashboard at:</p><p><a href="http://server_ip/smokeping/smokeping.fcgi.dist"><em>http://SERVER_IP/smokeping/smokeping.fcgi.dist</em></a></p><p>And you will see this!</p><figure><img alt="smokeping’s web interface" src="https://cdn-images-1.medium.com/max/1024/1*Aah3cNmKcb6VmZ0zdRIBOQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfe852e98ed9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>