<?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: GrzegorzBukat | DevOps &amp; Laravel | @zuzia_app</title>
    <description>The latest articles on DEV Community by GrzegorzBukat | DevOps &amp; Laravel | @zuzia_app (@grzegorzbukat).</description>
    <link>https://dev.to/grzegorzbukat</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4275170%2F1afd5582-e3b5-47f6-aaf8-6fded0a50590.jpg</url>
      <title>DEV Community: GrzegorzBukat | DevOps &amp; Laravel | @zuzia_app</title>
      <link>https://dev.to/grzegorzbukat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/grzegorzbukat"/>
    <language>en</language>
    <item>
      <title>The server monitoring mistakes that bite small teams (and how to fix each one)</title>
      <dc:creator>GrzegorzBukat | DevOps &amp; Laravel | @zuzia_app</dc:creator>
      <pubDate>Wed, 02 Dec 2026 20:00:39 +0000</pubDate>
      <link>https://dev.to/grzegorzbukat/the-server-monitoring-mistakes-that-bite-small-teams-and-how-to-fix-each-one-hfe</link>
      <guid>https://dev.to/grzegorzbukat/the-server-monitoring-mistakes-that-bite-small-teams-and-how-to-fix-each-one-hfe</guid>
      <description>&lt;p&gt;Most outages I've seen on small servers weren't caused by missing tools. The tools were there. They were just pointed at the wrong thing, sending alerts to the wrong person, or quietly broken for weeks.&lt;/p&gt;

&lt;p&gt;The worst kind is the outage you hear about from a customer while every graph on your screen is green. Almost every mistake below leads there.&lt;/p&gt;

&lt;p&gt;If you run your own VPS, or a handful of servers for clients, here are the mistakes worth checking for. Each one has the symptom you'll notice, why it happens, and a fix you can do with plain shell.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. You only check from inside the server
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; the dashboard is green, and a customer emails to say the site is down.&lt;/p&gt;

&lt;p&gt;An agent on the box sees the box. It can't see a broken DNS record, an expired certificate, a firewall rule that blocks port 443, or a routing problem upstream. From &lt;code&gt;localhost&lt;/code&gt;, everything works, so every check passes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; hit the public URL from somewhere that isn't the server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sS -o /dev/null -w &lt;span class="s1"&gt;'%{http_code} %{time_total}s\n'&lt;/span&gt; https://example.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;200 0.412s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run that from your laptop, a second cheap VPS in another region, or a monitoring service. The important part is that the request goes through DNS, TLS and the public network, the same way your users' requests do.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. You only check from outside
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; the site returns 200 all day, then at 3 a.m. the disk fills up and the database stops accepting writes.&lt;/p&gt;

&lt;p&gt;This is the opposite mistake, and it's just as common. An HTTP check tells you the front door opens. It tells you nothing about a disk at 94%, a box that's swapping, or a background worker that died an hour ago.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; pair the external check with something on the server that reports disk, memory, load and the state of the services you care about. You need both views. Either one alone leaves a blind spot.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Your checks run from one location
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; a page at 2 a.m. for a 40-second blip, or no alert at all during an outage that only affects one region.&lt;/p&gt;

&lt;p&gt;A single probe can't tell your outage apart from its own network hiccup. It also can't see a CDN or routing problem that hits some users and not others.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; require more than one location to agree before anyone gets woken up. Most hosted uptime services do this already. If you roll your own, two small VPSes with different providers in different regions are enough to filter out most false alarms.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. You alert on every spike
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; fifty notifications a week, and you've stopped reading them.&lt;/p&gt;

&lt;p&gt;A ten-second CPU spike during the nightly backup doesn't need a human. When most alerts need no action, the one that does gets swiped away with the rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; alert on values that stay high for a while, and pick thresholds that mean something for your hardware. For load, start by comparing it to your core count:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nproc
uptime
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;4
 14:02:11 up 41 days,  3:12,  1 user,  load average: 6.20, 5.90, 5.10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A load of 6 on 4 cores, held for 15 minutes, deserves a page. A load of 6 for one sample doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Nothing watches the monitor
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; your monitoring broke two weeks ago. Nobody noticed, because silence looks exactly like health.&lt;/p&gt;

&lt;p&gt;If the monitoring host dies, its mail relay gets blocked, or an API token expires, alerts simply stop. You assume everything is fine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; have something independent watch the watcher. A simple version is a "dead man's switch": your server pings an external URL every few minutes, and the external side alerts you when the pings stop. Whatever you use, don't host your only monitoring on the server it's supposed to monitor.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. You graph CPU but not disk and inodes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; &lt;code&gt;No space left on device&lt;/code&gt;, while &lt;code&gt;df -h&lt;/code&gt; says there's plenty of room.&lt;/p&gt;

&lt;p&gt;CPU graphs are easy and look nice, so they get built first. Full disks and exhausted inodes take servers down far more often.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; check both space and inodes on every mounted filesystem.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;df -h /
df -i /
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        50G   31G   17G  65% /

Filesystem      Inodes   IUsed   IFree IUse% Mounted on
/dev/vda1      3276800 3112004  164796   95% /
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Space looks fine. Inodes are at 95%. That's usually millions of tiny files: PHP sessions, cache entries, mail queue leftovers. To find where they are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo find / -xdev -type f &lt;span class="o"&gt;|&lt;/span&gt; cut -d/ -f1-3 &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;|&lt;/span&gt; uniq -c &lt;span class="o"&gt;|&lt;/span&gt; sort -rn &lt;span class="o"&gt;|&lt;/span&gt; head
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the top of that list is a sessions or cache directory, the lasting fix is a cleanup job for that directory, so the file count stops growing back.&lt;/p&gt;

&lt;p&gt;Alert at 80% for both space and inodes, so you have time to react.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Nobody watches cron jobs and backups
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; you find out the nightly backup stopped three weeks ago on the day you need to restore it.&lt;/p&gt;

&lt;p&gt;Cron jobs fail quietly. There's no error page and no downtime. A job can break because a path changed, a password was rotated, or the disk filled up, and nothing tells you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; check the result, not the schedule. Is the output there, and is it recent?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find /var/backups/db -name &lt;span class="s1"&gt;'*.sql.gz'&lt;/span&gt; -mmin -1500 -size +1k &lt;span class="o"&gt;|&lt;/span&gt; grep -q . \
  &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"OK - backup is fresh"&lt;/span&gt; \
  &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"CRITICAL - no backup in the last 25 hours"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; 2&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;OK&lt;/code&gt;/&lt;code&gt;CRITICAL&lt;/code&gt; line and the exit code follow the Nagios plugin convention, so the same script works with cron mail, Nagios-style checkers or most monitoring tools that read exit codes. At the very least, set &lt;code&gt;MAILTO=you@example.com&lt;/code&gt; at the top of your crontab so failing jobs have somewhere to complain.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. You don't watch SSL and domain expiry
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; a full-page certificate warning at 9 a.m. on a Monday.&lt;/p&gt;

&lt;p&gt;Auto-renewal is great until it isn't. A DNS change, a closed port 80, or an expired card on the registrar account can break it, and you find out when the certificate expires.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; alert well before expiry, at 30 and 14 days. To check a certificate by hand:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; openssl s_client -connect example.com:443 -servername example.com 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; openssl x509 -noout -enddate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;notAfter=Feb 14 09:12:44 2027 GMT
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a script, &lt;code&gt;-checkend&lt;/code&gt; is handier. It exits with 1 if the certificate expires within the given number of seconds (here, 14 days):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; openssl s_client -connect example.com:443 -servername example.com 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; openssl x509 -noout -checkend 1209600 &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"CRITICAL - certificate expires within 14 days"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Domain expiry is easy to forget because it happens once a year. &lt;code&gt;whois example.com | grep -i expir&lt;/code&gt; works for most TLDs, though the output format varies.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Every alert goes to one inbox
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; the outage alert sits unread because the one person who gets it is on a plane, asleep, or on vacation.&lt;/p&gt;

&lt;p&gt;Email is also the slowest channel. A single inbox is a single point of failure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; send critical alerts to at least two people on at least two channels: something fast like Slack, Discord or push for the first response, and email as the record. And use a maintenance window when you do planned work, so the alerts you get stay worth reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. You've never tested your alerts
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; the first real incident is also the day you learn the Slack channel was archived.&lt;/p&gt;

&lt;p&gt;Alert paths rot. Webhooks get revoked, mailboxes fill up, people change phone numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; send a test alert after every change to contacts or channels, and once a quarter even if nothing changed. The most honest test is a controlled failure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl stop nginx
sleep 120
sudo systemctl start nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do it in a quiet window and tell your team first. Then check three things: did the alert arrive, on which channel, and how long did it take.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. You keep noisy alerts "just in case"
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you notice:&lt;/strong&gt; a list of alerts everyone has muted.&lt;/p&gt;

&lt;p&gt;An alert that fired fifty times without anyone acting on it teaches your team to ignore the whole channel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; once a month, go through the alerts that fired. For each one, ask: did someone have to do something? If not, raise the threshold, lengthen the window, or delete it.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you only do two things this week
&lt;/h2&gt;

&lt;p&gt;Add an external check on your public URL, and add a check that your latest backup is fresh. Those two catch a surprising share of the outages that hurt the most.&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://zuzia.app/" rel="noopener noreferrer"&gt;Zuzia&lt;/a&gt;, a monitoring service that does both: website checks from Poland, New York and Singapore, plus a lightweight Linux agent for disk, memory, load and services, with alerts by email, SMS, push, Slack or Discord. The free plan covers one server and ten websites. But everything above works with plain shell and cron, so start there.&lt;/p&gt;

&lt;p&gt;What's the one check you'd never run a server without? I'm curious what I missed.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>linux</category>
      <category>monitoring</category>
      <category>sysadmin</category>
    </item>
  </channel>
</rss>
