<?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 Jatin Singh Chib on Medium]]></title>
        <description><![CDATA[Stories by Jatin Singh Chib on Medium]]></description>
        <link>https://medium.com/@jatinsinghchib?source=rss-c931f9a5d75d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CEvLMQN898LtvhaQ442p9g.jpeg</url>
            <title>Stories by Jatin Singh Chib on Medium</title>
            <link>https://medium.com/@jatinsinghchib?source=rss-c931f9a5d75d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:19:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jatinsinghchib/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[Self-Hosted Monitoring with Uptime Kuma: From Docker to Email Alerts]]></title>
            <link>https://medium.com/@jatinsinghchib/uptime-kuma-setup-monitoring-guide-f8d5a5524e84?source=rss-c931f9a5d75d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d5a5524e84</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[uptime]]></category>
            <category><![CDATA[hands-on-learning]]></category>
            <dc:creator><![CDATA[Jatin Singh Chib]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 20:11:09 GMT</pubDate>
            <atom:updated>2025-06-14T20:32:06.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVVPeIchE0F7jRWNgyxB7g.png" /></figure><h4>“Uptime Kuma is a lightweight, self-hosted monitoring solution perfect for DevOps engineers, SREs, and homelab enthusiasts. It offers real-time uptime checks across HTTP(s), Docker, TCP, Ping, and more — complete with rich alerting and status pages.”</h4><h3>Dashboard of uptime-kuma:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jZqtDh08-xpGq_oV" /></figure><h3>What is Uptime Kuma?</h3><p>Uptime Kuma is a self-hosted monitoring tool that helps track the availability of services such as websites, APIs, ports, and Docker containers.</p><p><strong>Key Features:</strong></p><ul><li>HTTP(s), TCP Port, Ping, Docker, and DNS monitoring</li><li>Status page support</li><li>Email, Discord, Telegram, Webhook notifications</li><li>Docker integration</li><li>Easy web UI for configuration</li></ul><h3>📂 Uptime Kuma Docker Deployment</h3><p>docker volume create uptime-kuma</p><pre>docker run -d \<br> - name uptime-kuma \<br> -p 3001:3001 \<br> -v /var/run/docker.sock:/var/run/docker.sock \<br> -v uptime-kuma:/app/data \<br> - restart=always \<br> louislam/uptime-kuma</pre><ul><li>The socket mount /var/run/docker.sock allows Docker container monitoring.</li></ul><h3>Docker Host Monitoring</h3><p><strong>Steps:</strong></p><ol><li>Go to Uptime Kuma Dashboard</li></ol><p>2. Click “+ New Monitor”</p><p>3. Select Docker Host as the monitor type</p><p>4. Enter the following:</p><ul><li><strong>Friendly Name:</strong> e.g., Local Docker</li><li><strong>Docker Socket:</strong> /var/run/docker.sock</li></ul><p>5. Save the monitor</p><p>For remote Docker host monitoring, use tcp://&lt;IP&gt;:2375, but ensure it’s secured or on a private network.</p><h3>📢 Email (SMTP) Notification Setup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lb0OWB8X_hNBgkobO97T3w.png" /></figure><p><strong>Steps:</strong></p><ol><li>Go to <strong>Settings &gt; Notifications &gt; Setup Notification</strong></li><li>Choose Notification Type: Email (SMTP)</li><li>Fill the form:</li></ol><ul><li><strong>Friendly Name:</strong> karyard</li><li><strong>Hostname:</strong> smtp.gmail.com</li><li><strong>Port:</strong> 587</li><li><strong>Security:</strong> STARTTLS</li><li><strong>Username:</strong> your email (e.g., jatin.chib@themarblex.ai)</li><li><strong>Password:</strong> App Password (not your Gmail login)</li><li><strong>From Email:</strong> same as username</li><li><strong>To Email:</strong> recipient email</li></ul><p>4. Optionally configure subject/body using:</p><ul><li>{{NAME}} — Monitor name</li><li>{{STATUS}} — Up/Down</li><li>{{HOSTNAME_OR_URL}} — URL or IP</li></ul><p>5. Save and test notification</p><p>Gmail users must use<a href="https://support.google.com/accounts/answer/185833"> App Passwords</a> if 2FA is enabled.</p><h3>📡 Webhook Notification Setup</h3><p><strong>Steps:</strong></p><ol><li>Go to Settings &gt; Notifications &gt; Setup Notification</li><li>Select Webhook</li><li>Add the <strong>Webhook URL</strong> (e.g., for Discord, Slack, or custom handler)</li><li>Configure body using Markdown or JSON payload</li><li>Save</li></ol><p><strong>Note:</strong> Some webhook integrations are restricted depending on the server config or permission level.</p><h3>📊 Monitoring Docker Containers (like NGINX)</h3><p>If both Kuma and the container (e.g., NGINX) are on the same Docker network:</p><p>docker network create kuma-net</p><pre>docker run -d \<br> - name uptime-kuma \<br> - network kuma-net \<br> -p 3001:3001 \<br> -v /var/run/docker.sock:/var/run/docker.sock \<br> -v uptime-kuma:/app/data \<br> - restart always \<br> louislam/uptime-kuma</pre><pre>docker run -d \<br> - name my-nginx \<br> - network kuma-net \<br> nginx</pre><p><strong>Monitor Config in Kuma:</strong></p><ul><li><strong>Type:</strong> HTTP(s)</li><li><strong>URL:</strong> <a href="http://my-nginx/">http://my-nginx</a></li></ul><h3>Attach Docker Network to Running Container</h3><p>docker network connect kuma-net my-nginx</p><h3>Common Issues</h3><p><strong>Issues and fixing</strong></p><ol><li>Empty Email Body -Use template variables in subject/body fields</li></ol><p>2. Email Login Error (535)-Use app password (not actual Gmail password)</p><p>3. Monitor shows DOWN-Confirm correct port/IP and container is reachable</p><p>4. Docker Host error-Ensure /var/run/docker.sock is mounted in Kuma container</p><p>5. Webhook restricted-Might need admin rights or proper permissions</p><h3><strong>Useful Commands</strong></h3><pre>docker ps # List running containers<br>docker network ls # List networks<br>docker network connect net cont # Connect container to network<br>docker inspect &lt;container&gt; # View container details<br>curl http://localhost:2375 # Test Docker API (if exposed)</pre><h3>Conclusion</h3><p>With Uptime Kuma, you can easily monitor your Docker containers, websites, and services in real time. Configure email and webhook alerts to stay informed of any outages. Integrating Docker socket allows real-time monitoring without exposing APIs.</p><p>Let me know if you want a ready-to-deploy Docker Compose setup or status page configuration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d5a5524e84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>