<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: KithupaG</title>
    <description>The latest articles on DEV Community by KithupaG (@trenation).</description>
    <link>https://dev.to/trenation</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1623578%2F2a7b831c-6be6-45f9-bee7-c18d3a997278.jpg</url>
      <title>DEV Community: KithupaG</title>
      <link>https://dev.to/trenation</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/trenation"/>
    <language>en</language>
    <item>
      <title>Building a Simple Server Monitoring Script in My Homelab</title>
      <dc:creator>KithupaG</dc:creator>
      <pubDate>Wed, 27 Aug 2025 16:47:01 +0000</pubDate>
      <link>https://dev.to/trenation/building-a-simple-server-monitoring-script-in-my-homelab-4d97</link>
      <guid>https://dev.to/trenation/building-a-simple-server-monitoring-script-in-my-homelab-4d97</guid>
      <description>&lt;p&gt;*&lt;em&gt;Why monitoring matters *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Monitoring matters because it provides a shared feedback loop, necessary visibility in the system metrics, performance, security, it also enables rapid issue detection, and continous improvement&lt;/p&gt;

&lt;p&gt;See my code in my github here:- &lt;a href="https://github.com/KithupaG/Homelab/blob/main/monitoring/server-stats.sh" rel="noopener noreferrer"&gt;https://github.com/KithupaG/Homelab/blob/main/monitoring/server-stats.sh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How I built it&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I used functions to house the processes, adhering to the laws of writing code, inside those functions I housed the shell commands such as &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;free&lt;/code&gt;, &lt;code&gt;df&lt;/code&gt;, &lt;code&gt;ps&lt;/code&gt; etc to fetch the data and used &lt;code&gt;awk&lt;/code&gt; to tabularize the data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Demo output.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fua3ojsivqlmrd2o6yat7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fua3ojsivqlmrd2o6yat7.png" alt=" " width="533" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Future plan&lt;/li&gt;
&lt;li&gt;Add &lt;strong&gt;logging to a file&lt;/strong&gt; → &lt;code&gt;server_stats.log&lt;/code&gt;.
&lt;/li&gt;
&lt;li&gt;Output as &lt;strong&gt;JSON&lt;/strong&gt; so it integrates with Prometheus/ELK.
&lt;/li&gt;
&lt;li&gt;Connect to &lt;strong&gt;Grafana&lt;/strong&gt; and make dashboards.
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>devops</category>
      <category>beginners</category>
      <category>programming</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
