<?xml version="1.0" encoding="utf-8" standalone="yes"?><?xml-stylesheet href="/rss.xsl" type="text/xsl" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Statping | Bacardi55&#39;s Web Cave</title>
    <link>https://bacardi55.io/tags/statping/</link>
    <description>Recent content in Statping on Bacardi55&#39;s Web Cave</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>bac@rdi55.pl (bacardi55)</managingEditor>
    <webMaster>bac@rdi55.pl (bacardi55)</webMaster>
    <copyright>2010-2025 bacardi55</copyright>
    <lastBuildDate>Tue, 28 Apr 2020 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://bacardi55.io/tags/statping/index.xml" rel="self" type="application/rss+xml" />
    <item>
      
      <title>My Home Lab 2020, part 5: External application status with Statping</title><link>https://bacardi55.io/2020/04/28/my-home-lab-2020-part-5-external-application-status-with-statping/</link><pubDate>Tue, 28 Apr 2020 00:00:00 +0200</pubDate><author>bac@rdi55.pl (bacardi55)</author><guid>https://bacardi55.io/2020/04/28/my-home-lab-2020-part-5-external-application-status-with-statping/</guid><description>&lt;h2 id=&#34;context&#34;&gt;Context&lt;/h2&gt;&#xA;&lt;p&gt;Today, a new article for my &lt;a href=&#34;https://bacardi55.io/pages/home-lab/&#34;&gt;Home Lab 2020 series&lt;/a&gt;&#xA;to talk about &amp;ldquo;external application status&amp;rdquo;. What I mean by that, is&#xA;having a simple tool that will check if your applications are responding&#xA;by doing a simple http request to the applications.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Attention&lt;/strong&gt;, this is not really a monitoring tool per say. It doesn&amp;rsquo;t&#xA;check each servers of the cluster resources or availability or any&#xA;specific server check. It just send a simple http request to an endpoint&#xA;and check if the service is still available.&lt;/p&gt;&#xA;&lt;p&gt;In the case of a swarm cluster like me, having all services available&#xA;does not mean that everything is working correctly on the cluster. For&#xA;example, a non manager node (&lt;code&gt;ptitcell{1,2,3}&lt;/code&gt;&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;) could be down but&#xA;all services still running. So while having that kind of external&#xA;application monitoring is very important (simulate a user request), this&#xA;is definitely not enough for a real monitoring of your cluster, this is&#xA;why there will be a dedicated post about monitoring later on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Attention2&lt;/strong&gt;: To be effective, this verification should be done from a&#xA;server that is not hosting the said services (Otherwise, if the cluster&#xA;fails, the check won&amp;rsquo;t happen and you won&amp;rsquo;t receive alerts)! If you are&#xA;selfhosting in your house like me, you should definitely think about&#xA;hosting this tool outside of your network for better relevance (if not,&#xA;there are multiple use cases where the check will be positive even&#xA;though the apps are not reachable from the outside). # Which tool or&#xA;services?&lt;/p&gt;&#xA;&lt;p&gt;There are multiple tools available online SaaS solution to do so&#xA;(eg:&lt;a href=&#34;https://pingdom.com&#34;&gt;pingdom.com&lt;/a&gt;). But as you may have guessed,&#xA;I also want a tool that can be self hosted and is of course opensource.&#xA;My requirements are dead simple:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Opensource and can be selfhosted&lt;/li&gt;&#xA;&lt;li&gt;Check every X minutes my different applications&lt;/li&gt;&#xA;&lt;li&gt;Alert me when one goes down (or is up again)&lt;/li&gt;&#xA;&lt;li&gt;Provides a simple status page&lt;/li&gt;&#xA;&lt;li&gt;Provides some statistics (nice to have)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;statping&#34;&gt;Statping&lt;/h2&gt;&#xA;&lt;p&gt;I found the perfect tool for my use case:&#xA;&lt;a href=&#34;https://statping.com/&#34;&gt;statping&lt;/a&gt;! Check the website for more&#xA;information but it did answer my main requirements and more. With it, I:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Have a dedicated status page showing status and some statistics of my&#xA;services uptime&lt;/li&gt;&#xA;&lt;li&gt;Get an email alert when a service change status (up or down) (You can&#xA;also configure other channel like telegram)&lt;/li&gt;&#xA;&lt;li&gt;Have a configurable health check, as I don&amp;rsquo;t want to spam my server&#xA;but just make sure regularly that the services are working&lt;/li&gt;&#xA;&lt;li&gt;Bonus: it checks the ssl certificate as well (useful when using&#xA;letsencrypt to ensure they are still valid)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;installation&#34;&gt;Installation&lt;/h3&gt;&#xA;&lt;p&gt;As said above, it is better to install such a tool outside the &amp;ldquo;hosting&#xA;network&amp;rdquo;. Ideally, you could find a friend that agree to host your&#xA;statping instance (and you could do the same for him) or use a hosting&#xA;provider for that, some of them can be quite cheap. In my case, I&#xA;already had a &lt;a href=&#34;https://www.digitalocean.com/&#34;&gt;digital ocean&lt;/a&gt; droplet&#xA;with docker running on it (for some services still not self hosted) so I&#xA;used it to install statping.&lt;/p&gt;&#xA;&lt;p&gt;As this existing server of mine is not part of a swarm cluster, the&#xA;installation will be different than usual for the home lab containers.&#xA;In this case, I&amp;rsquo;m using docker-compose to run the containers and nginx&#xA;as reverse proxy (as this is the existing reverse proxy on that server).&lt;/p&gt;&#xA;&lt;h4 id=&#34;service-definition&#34;&gt;Service definition&lt;/h4&gt;&#xA;&lt;p&gt;First, as usual, create the&#xA;&lt;code&gt;/var/containers-data/statping/config/docker-compose.yml&lt;/code&gt;&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    version: &amp;#34;3&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    services:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      statping:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        container_name: statping&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        image: hunterlong/statping:latest&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        restart: always&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ports:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          - 8080:8080 #todo: changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        volumes:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          - /var/containers-data/statping/data:/app&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        environment:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          DB_CONN: sqlite&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Don&amp;rsquo;t forget to create the volume directory, if you haven&amp;rsquo;t change the&#xA;docker-compose above:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    mkdir -p /var/containers-data/statping/data/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&#34;nginx-configuration&#34;&gt;Nginx configuration&lt;/h4&gt;&#xA;&lt;p&gt;I won&amp;rsquo;t go in this post into the global nginx configuration, just the&#xA;setup of this particular rule. For this I created a new configuration&#xA;file in &lt;code&gt;/etc/nginx/sites-enabled/&lt;/code&gt; called &lt;code&gt;statping.domain.com.conf&lt;/code&gt;&#xA;(adapt for your domain of course :)) with the following content:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    upstream statping {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        server 127.0.0.1:8080; # change according to docker-compose.yml file.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    map $http_upgrade $connection_upgrade {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      default upgrade;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#39;&amp;#39;      close;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    # Listen on http:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    server {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      listen 80;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      listen [::]:80;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      server_name statping.domain.com; # changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      # For Let&amp;#39;s encrypt:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      location /.well-known/acme-challenge {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        root /var/www/html/letsencrypt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        index index.html;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      # Redirection to https:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      location / {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        return 301 https://$host$request_uri;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    # Listen on https:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    server {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      listen 443 ssl;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      listen [::]:443 ssl;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      server_name statping.domain.com; # changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl on;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_certificate /etc/letsencrypt/live/statping.domain.coms/fullchain.pem; # changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_certificate_key /etc/letsencrypt/live/statping.domain.com/privkey.pem; # changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_trusted_certificate /etc/letsencrypt/live/statping.domain.com/chain.pem; # changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_protocols TLSv1.2;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_ciphers EECDH+AESGCM:EECDH+AES;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_ecdh_curve prime256v1;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_prefer_server_ciphers on;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssl_session_cache shared:SSL:10m;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      keepalive_timeout    70;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      sendfile             on;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      client_max_body_size 0;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip on;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_disable &amp;#34;msie6&amp;#34;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_vary on;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_proxied any;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_comp_level 6;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_buffers 16 8k;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_http_version 1.1;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      location / {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        proxy_pass         http://statping;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        proxy_redirect     off;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        proxy_set_header   Host $host;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        proxy_set_header   X-Real-IP $remote_addr;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        proxy_set_header   X-Forwarded-Host $server_name;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      location /.well-known/acme-challenge {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        root /var/www/html/letsencrypt/;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        index index.html;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can then restart nginx:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    sudo systemctrl restart nginx.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then generate the SSL certificate. If like me you are using certbot:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    sudo certbot certonly --webroot -n -m your@email.com --agree-tos -w /var/www/html/letsencrypt/ -d statpint.domain.com&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&#34;start-stop-the-service&#34;&gt;Start/Stop the service&lt;/h4&gt;&#xA;&lt;p&gt;Then, inside the &lt;code&gt;/var/containers-data/statping/config/&lt;/code&gt; directory, run:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    cd /var/containers-data/statping/config/ &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; docker-compose up -d&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and restart nginx:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    sudo systemctrl restart nginx.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If everything worked smoothly, you should be able to access statping&#xA;from the url: &lt;code&gt;https://statping.domain.com&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To stop the service:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    cd /var/containers-data/statping/config/ &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; docker-compose down&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, you can go to &lt;code&gt;status.domain.com&lt;/code&gt; and should see the statping page.&#xA;Connect with &lt;code&gt;admin/admin&lt;/code&gt; and change the login and password right away&#xA;before configuring anything else :).&lt;/p&gt;&#xA;&lt;h3 id=&#34;configuration&#34;&gt;Configuration&lt;/h3&gt;&#xA;&lt;p&gt;First, go to the settings page to change the global settings like the&#xA;page name, description, domain, &amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;If like me, only one message is enough to tell me a service is down (and&#xA;not a message every X minutes telling me it is still down&amp;hellip;), configure&#xA;the notification for &amp;ldquo;updates only&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;Then you can configure the notification system, I personally chose email&#xA;for now, but I may switch to telegram at some point, as my&#xA;&lt;a href=&#34;https://bacardi55.io/categories/homeautomation/&#34;&gt;home automation&lt;/a&gt; system is based a lot&#xA;around telegram as well&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;After that, all you need is to configure Services (that can be grouped&#xA;if needed for visibility). For example for testing this blog:&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://bacardi55.io/images/posts/2020/04/28/homelabp5/statpingservice.png&#34;&#xA;    alt=&#34;Figure 1: Statping service config&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;&lt;span class=&#34;figure-number&#34;&gt;Figure 1: &lt;/span&gt;Statping service config&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Then you can enjoy a nice dashboard with some stats (uptime and response&#xA;time):&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://bacardi55.io/images/posts/2020/04/28/homelabp5/statpingdashboard.png&#34;&#xA;    alt=&#34;Figure 2: Statping dashboard&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;&lt;span class=&#34;figure-number&#34;&gt;Figure 2: &lt;/span&gt;Statping dashboard&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;figure&gt;&lt;img src=&#34;https://bacardi55.io/images/posts/2020/04/28/homelabp5/statpingdashboard2.png&#34;&#xA;    alt=&#34;Figure 3: Statping dashboard blog&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;&lt;span class=&#34;figure-number&#34;&gt;Figure 3: &lt;/span&gt;Statping dashboard blog&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;That&amp;rsquo;s it for now, I will write followup posts for &amp;ldquo;internal monitoring&amp;rdquo;&#xA;(servers and containers) as well as backups, as this series is not over&#xA;yet! :-)&lt;/p&gt;&#xA;&lt;p&gt;You can follow all posts about my Home Lab setup on the&#xA;&lt;a href=&#34;https://bacardi55.io/pages/home-lab/&#34;&gt;dedicated page&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;*[SaaS]: Software as a Service&lt;/p&gt;&#xA;&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;&#xA;&lt;hr&gt;&#xA;&lt;ol&gt;&#xA;&lt;li id=&#34;fn:1&#34;&gt;&#xA;&lt;p&gt;See my cluster &lt;a href=&#34;https://bacardi55.io/posts/2020/03/27/my-home-lab-2020-part-3-docker-swarm-setup/&#34;&gt;setup&lt;/a&gt;.&amp;#160;&lt;a href=&#34;#fnref:1&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:2&#34;&gt;&#xA;&lt;p&gt;Same warning as usual: either really understand the container&#xA;your using by looking at the build file or build your own and&#xA;manage your own docker registry!&amp;#160;&lt;a href=&#34;#fnref:2&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/div&gt;&#xA;</description></item>
  </channel>
</rss>
