<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Pingstack blog</title><description>Guides for keeping jobs and services healthy</description><link>https://pingstack.io/blog/</link><language>en-us</language><item><title>Writing incident updates customers trust (with templates)</title><link>https://pingstack.io/blog/writing-incident-updates/</link><guid isPermaLink="true">https://pingstack.io/blog/writing-incident-updates/</guid><description>During an outage, customers want to know three things: what&apos;s broken, whether you know, and when to check back. Here&apos;s how to write each update, with templates you can copy.</description><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When something breaks, customers start refreshing your status page within minutes. What they read there decides whether they wait patiently or open a support ticket, tweet at you, and start looking at competitors.&lt;/p&gt; &lt;p&gt;Good incident updates aren’t about sounding polished. They answer the same few questions every time, quickly, in plain words.&lt;/p&gt; &lt;h2 id=&quot;what-customers-want-from-an-update&quot;&gt;What customers want from an update&lt;/h2&gt; &lt;p&gt;Every update should answer three questions:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;What’s affected?&lt;/strong&gt; Name the feature in the customer’s words. “Checkout” beats “payments-api.” “Some customers in Europe” beats “eu-west-1.”&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Do you know about it, and what are you doing?&lt;/strong&gt; One sentence is enough.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;When will you say more?&lt;/strong&gt; Give a time and keep it, even if the update is “no change yet.”&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;That third one does more than people expect. A promised update at 14:30 that arrives at 14:30 tells customers someone’s on it. Silence for 90 minutes tells them the opposite, even if the team is working flat out.&lt;/p&gt; &lt;h2 id=&quot;rules-that-hold-for-every-update&quot;&gt;Rules that hold for every update&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Post the first update fast.&lt;/strong&gt; “We’re looking into it” in five minutes beats a full explanation in forty.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Write for the customer, not the engineer.&lt;/strong&gt; Impact first. Save root causes for the postmortem.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Use times with a zone.&lt;/strong&gt; “14:30 UTC,” not “in about half an hour.”&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Don’t guess at a fix time.&lt;/strong&gt; If you don’t know, say when the next update is coming instead.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Don’t blame a vendor in public mid-incident.&lt;/strong&gt; “A provider we use” is fine. Naming and shaming can wait until you know the whole story.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Leave out credentials, hostnames and customer data.&lt;/strong&gt; Status pages are public, and screenshots of them get shared.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Say when it’s over, and what you’ll do next.&lt;/strong&gt; A resolved update with no follow-up feels like the door closing.&lt;/li&gt; &lt;/ul&gt; &lt;h2 id=&quot;templates&quot;&gt;Templates&lt;/h2&gt; &lt;p&gt;Replace the bracketed parts and post. They’re written to be short on purpose.&lt;/p&gt; &lt;h3 id=&quot;investigating&quot;&gt;Investigating&lt;/h3&gt; &lt;blockquote&gt; &lt;p&gt;We’re investigating reports that [feature] is [unavailable / slow / returning errors] for [all / some] customers. We’ll post an update by [time and zone].&lt;/p&gt; &lt;/blockquote&gt; &lt;h3 id=&quot;identified&quot;&gt;Identified&lt;/h3&gt; &lt;blockquote&gt; &lt;p&gt;We’ve found the cause of the [feature] problem and are working on a fix. [Customers can’t X / X is delayed]. [Data is safe / No data has been lost], if you know that for certain. Next update by [time and zone].&lt;/p&gt; &lt;/blockquote&gt; &lt;h3 id=&quot;monitoring&quot;&gt;Monitoring&lt;/h3&gt; &lt;blockquote&gt; &lt;p&gt;We’ve applied a fix and [feature] is working again. We’re watching closely to make sure it stays that way. If you still see problems, [contact path]. We’ll mark this resolved once we’re confident it’s fixed.&lt;/p&gt; &lt;/blockquote&gt; &lt;h3 id=&quot;resolved&quot;&gt;Resolved&lt;/h3&gt; &lt;blockquote&gt; &lt;p&gt;This incident is resolved. Between [start time] and [end time] [zone], [what customers experienced]. [What we changed]. We’ll publish a short summary of what happened and what we’re doing to prevent it [by date / in the next few days].&lt;/p&gt; &lt;/blockquote&gt; &lt;h3 id=&quot;scheduled-maintenance&quot;&gt;Scheduled maintenance&lt;/h3&gt; &lt;blockquote&gt; &lt;p&gt;On [date] from [start] to [end] [zone], we’ll be [doing what]. During this window, [feature] will be [unavailable / read-only / slower]. [Everything else] won’t be affected. We’ll post here when it starts and when it’s done.&lt;/p&gt; &lt;/blockquote&gt; &lt;h3 id=&quot;short-postmortem&quot;&gt;Short postmortem&lt;/h3&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;What happened:&lt;/strong&gt; On [date] from [start] to [end] [zone], [impact in one or two sentences].&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Why it happened:&lt;/strong&gt; [Cause in plain terms, without blaming a person.]&lt;/p&gt; &lt;p&gt;&lt;strong&gt;How we fixed it:&lt;/strong&gt; [What restored service.]&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What we’re changing:&lt;/strong&gt; [Two or three specific follow-ups, with owners or dates if you can share them.]&lt;/p&gt; &lt;p&gt;We’re sorry for the disruption. If you were affected and need help, [contact path].&lt;/p&gt; &lt;/blockquote&gt; &lt;h2 id=&quot;a-worked-example&quot;&gt;A worked example&lt;/h2&gt; &lt;p&gt;Here’s how an incident might read, start to finish:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;14:02 UTC, Investigating.&lt;/strong&gt; We’re investigating reports that sign-in is failing for some customers. We’ll post an update by 14:30 UTC.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;14:21 UTC, Identified.&lt;/strong&gt; We’ve found the cause: a configuration change to our sign-in service. We’re rolling it back now. Existing sessions aren’t affected. Next update by 14:45 UTC.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;14:38 UTC, Monitoring.&lt;/strong&gt; The rollback is done and sign-in is working again. We’re watching to make sure it stays that way.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;15:10 UTC, Resolved.&lt;/strong&gt; Between 13:55 and 14:35 UTC, some customers couldn’t sign in. We’ve rolled back the change that caused it and added a check to catch it before release. We’ll post a short summary by Friday.&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Four updates, about a hundred words in all. Nobody reading that has to guess what’s going on.&lt;/p&gt; &lt;h2 id=&quot;posting-updates-in-pingstack&quot;&gt;Posting updates in Pingstack&lt;/h2&gt; &lt;p&gt;When a check goes down or degraded, Pingstack opens an incident on it automatically and notifies the check’s notification groups. Editors and Admins can then post text updates on that incident from the check or from a dashboard. When a public status page shows incident history, the updates appear there under the incident, with their times.&lt;/p&gt; &lt;p&gt;Posting an update doesn’t change the check’s status. The incident resolves when monitoring shows the check is fully up again, so a “resolved” note can’t accidentally hide an outage that’s still going on. Details are in the &lt;a href=&quot;https://docs.pingstack.io/incidents/updates/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;incident updates docs&lt;/a&gt;, and the &lt;a href=&quot;https://pingstack.io/features/status-pages/&quot;&gt;status pages feature page&lt;/a&gt; covers branding and custom domains.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt;, make a status page for your main service, and save these templates somewhere your team can find them at 3am.&lt;/p&gt;</content:encoded><category>sre</category><category>devops</category><category>webdev</category><category>monitoring</category></item><item><title>How many probe regions do you need? False alarms explained</title><link>https://pingstack.io/blog/how-many-probe-regions/</link><guid isPermaLink="true">https://pingstack.io/blog/how-many-probe-regions/</guid><description>A website check from one place can&apos;t tell your outage from its own bad network day. Checking from three regions and setting a quorum can, and here&apos;s how to choose the numbers.</description><pubDate>Thu, 19 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You get paged at 3am. The site is down! You open your laptop and it loads fine. By the time you’ve checked the logs, the alert has recovered on its own.&lt;/p&gt; &lt;p&gt;That’s usually not your site. It’s the path between the monitoring probe and your site: a congested link, a routing change at a transit provider, a DNS hiccup near the probe. From one location, a probe can’t tell any of that apart from a real outage. All it knows is that its request failed.&lt;/p&gt; &lt;h2 id=&quot;why-one-region-produces-false-alarms&quot;&gt;Why one region produces false alarms&lt;/h2&gt; &lt;p&gt;A probe in one region sees the internet from one place. If something breaks between that place and your server, every request fails, and the check looks exactly like your site went down. Nothing about the failed request says “this was the network, not you.”&lt;/p&gt; &lt;p&gt;The fix people reach for first is retries. Retrying helps with a single dropped request, but it doesn’t help when the problem lasts a few minutes, because every retry takes the same broken path.&lt;/p&gt; &lt;h2 id=&quot;why-more-regions-help&quot;&gt;Why more regions help&lt;/h2&gt; &lt;p&gt;Probes in different regions take different paths to your server. A routing problem near one of them rarely affects the others at the same moment. So if US East can’t reach you but EU West and AP South can, the likely story is a network problem near US East, not an outage.&lt;/p&gt; &lt;p&gt;That’s the whole idea behind multi-region checks. You stop asking “did the request fail?” and start asking “how many places agree that it failed?”&lt;/p&gt; &lt;h2 id=&quot;quorum-how-many-failures-count-as-down&quot;&gt;Quorum: how many failures count as down&lt;/h2&gt; &lt;p&gt;Pingstack website and TCP checks let you choose that number. Each check has two counts:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Locations required for healthy.&lt;/strong&gt; Below this, the check is degraded.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Locations required to avoid failing.&lt;/strong&gt; Below this, the check is down.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;With three regions, here’s how the common settings behave:&lt;/p&gt;                                      &lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Healthy needs&lt;/th&gt;&lt;th&gt;Avoid failing needs&lt;/th&gt;&lt;th&gt;3 regions OK&lt;/th&gt;&lt;th&gt;2 OK&lt;/th&gt;&lt;th&gt;1 OK&lt;/th&gt;&lt;th&gt;0 OK&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;All (default)&lt;/td&gt;&lt;td&gt;1 (default)&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Degraded&lt;/td&gt;&lt;td&gt;Degraded&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Degraded&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;The default is the most forgiving about calling something down: the check only goes down when every region fails, and anything less is degraded. Both degraded and down open an incident and notify the check’s groups, so you still hear about a partial problem. It just says degraded, which tells you to look at the network before you wake the whole team.&lt;/p&gt; &lt;p&gt;If you’d rather treat two failing regions as a real outage, set “avoid failing” to 2. If you don’t want to hear about a single region at all, set “healthy” to 2 as well. That’s the quietest option, and a single-region outage won’t open an incident.&lt;/p&gt; &lt;h2 id=&quot;when-the-problem-is-the-probe-itself&quot;&gt;When the problem is the probe itself&lt;/h2&gt; &lt;p&gt;There’s one more kind of false alarm: the probe’s own network has trouble. Pingstack watches the health of each probe location. When a location’s infrastructure looks unhealthy and its request fails with a network error, the result is recorded but doesn’t change the check’s health. A real HTTP error, like your site returning &lt;code&gt;500&lt;/code&gt;, still counts, because that’s an answer from your server, not a network failure.&lt;/p&gt; &lt;h2 id=&quot;so-how-many-regions-do-you-need&quot;&gt;So how many regions do you need?&lt;/h2&gt; &lt;p&gt;For most public websites and APIs, &lt;strong&gt;three regions on different continents&lt;/strong&gt; is the sweet spot. It’s enough to tell a regional network problem from an outage, and enough to notice when your site is slow or broken for one part of the world.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;One region&lt;/strong&gt; is fine for a side project, a homelab, or anything where an occasional false alarm doesn’t cost you sleep.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Three regions&lt;/strong&gt; suits most production sites. If your users are spread across North America, Europe and Asia, it also tells you who’s affected.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;More than three&lt;/strong&gt; mostly adds cost and noise for a typical site. It starts to make sense when you need to see performance from many specific countries, which is a different job from uptime alerting.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Pingstack checks from US East (Virginia), EU West (Ireland) and AP South (Mumbai). Free checks every 5 minutes from one region, and paid plans check every minute from all three.&lt;/p&gt; &lt;h2 id=&quot;a-few-settings-that-also-cut-noise&quot;&gt;A few settings that also cut noise&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Expected status code.&lt;/strong&gt; If your health endpoint returns &lt;code&gt;204&lt;/code&gt;, set the check to expect &lt;code&gt;204&lt;/code&gt;, or every probe looks like a failure.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Redirects.&lt;/strong&gt; With redirects off, the check compares the first response. A site that always redirects to &lt;code&gt;https://www&lt;/code&gt; needs either the final URL or redirects turned on.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Firewalls and WAFs.&lt;/strong&gt; A WAF that challenges unknown traffic can block probes from one region and not another, which looks exactly like a regional outage. Make an allow rule for Pingstack’s probes. The &lt;a href=&quot;https://docs.pingstack.io/monitoring/firewall/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;firewall docs&lt;/a&gt; cover the options, including verification headers where your plan has them.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The &lt;a href=&quot;https://docs.pingstack.io/monitoring/status-and-thresholds/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;statuses and thresholds docs&lt;/a&gt; cover quorum in full, and the &lt;a href=&quot;https://pingstack.io/features/website-monitoring/&quot;&gt;website monitoring page&lt;/a&gt; shows how the checks alert.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt;, add your homepage, and try a paid plan when you want all three regions.&lt;/p&gt;</content:encoded><category>monitoring</category><category>devops</category><category>sre</category><category>webdev</category></item><item><title>Heartbeat vs. active monitoring: which checks you need</title><link>https://pingstack.io/blog/heartbeat-vs-active-monitoring/</link><guid isPermaLink="true">https://pingstack.io/blog/heartbeat-vs-active-monitoring/</guid><description>An active check asks your service if it&apos;s up. A heartbeat waits for your service to say it did its job. Most apps need both, and here&apos;s how to tell which goes where.</description><pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There are two ways to know something is working. You can go and look, or you can wait for it to tell you. Monitoring works the same way.&lt;/p&gt; &lt;p&gt;An &lt;strong&gt;active check&lt;/strong&gt; goes and looks. A probe sends a request to your website, opens a connection to a port, or asks DNS resolvers for a record, on a schedule, and alerts you when the answer is wrong.&lt;/p&gt; &lt;p&gt;A &lt;strong&gt;heartbeat check&lt;/strong&gt; waits. Your job calls a private URL when it finishes, and the check alerts you when that call doesn’t arrive on time. Some people call it a dead man’s switch, which is a pretty good description.&lt;/p&gt; &lt;p&gt;They catch different failures, and the gap between them is where the quiet outages live.&lt;/p&gt; &lt;h2 id=&quot;what-active-checks-catch&quot;&gt;What active checks catch&lt;/h2&gt; &lt;p&gt;Active checks are the right tool for anything that answers requests:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Websites and APIs.&lt;/strong&gt; Is the endpoint returning the status code you expect?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Ports.&lt;/strong&gt; Does your database, mail server or game server still accept TCP connections?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;DNS.&lt;/strong&gt; Do public resolvers still return the records you expect?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Certificates and domains.&lt;/strong&gt; How many days until the certificate your server presents, or the domain registration, expires?&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The big advantage is that they need nothing from your side. There’s no code to add and nothing to deploy. If the server is off, the probe notices, because the probe isn’t running on that server.&lt;/p&gt; &lt;h2 id=&quot;what-active-checks-miss&quot;&gt;What active checks miss&lt;/h2&gt; &lt;p&gt;A probe can only test what it can reach from the outside. It has no idea whether your nightly backup ran, whether the invoice job sent today’s invoices, or whether the queue worker has been crashing since Tuesday. The website returns &lt;code&gt;200&lt;/code&gt; the whole time.&lt;/p&gt; &lt;p&gt;That’s the common way a “monitored” app still loses a week of backups. The homepage was up. The thing that broke wasn’t the homepage.&lt;/p&gt; &lt;h2 id=&quot;what-heartbeat-checks-catch&quot;&gt;What heartbeat checks catch&lt;/h2&gt; &lt;p&gt;Heartbeats are for work that runs on its own schedule and has no endpoint to probe:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Cron jobs and scheduled tasks&lt;/li&gt; &lt;li&gt;Backups and database dumps&lt;/li&gt; &lt;li&gt;Queue workers and recurring background jobs&lt;/li&gt; &lt;li&gt;Scheduled CI workflows, like GitHub Actions on a cron trigger&lt;/li&gt; &lt;li&gt;Scripts on machines a probe can’t reach, like a NAS or a server behind a firewall&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Because the job reports in, a heartbeat catches failures nothing else can see: the crontab that didn’t survive a server rebuild, the scheduler process that didn’t start, the job that hangs forever. The job can also send a number with the ping, like rows exported, and the check can alert when the number is too low. That catches the job that “succeeds” and does nothing.&lt;/p&gt; &lt;p&gt;Heartbeats work anywhere with outbound HTTPS, so a job inside a private network is fine. Nothing has to be opened to the internet.&lt;/p&gt; &lt;h2 id=&quot;what-heartbeat-checks-miss&quot;&gt;What heartbeat checks miss&lt;/h2&gt; &lt;p&gt;A heartbeat tells you the job reported. It doesn’t tell you your website is up, and it can’t tell you anything about a service that doesn’t have a job calling home. It also depends on where you put the ping. Send it at the start of the script and you’ve only proven the script started. Send it after the work succeeds.&lt;/p&gt; &lt;h2 id=&quot;picking-checks-for-a-typical-app&quot;&gt;Picking checks for a typical app&lt;/h2&gt; &lt;p&gt;Take a common setup: a web app, a Postgres database, a nightly backup, a queue worker with a few recurring jobs, and a custom domain with a certificate.&lt;/p&gt;                                                   &lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you’re watching&lt;/th&gt;&lt;th&gt;Check type&lt;/th&gt;&lt;th&gt;Why&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;The app’s homepage or health endpoint&lt;/td&gt;&lt;td&gt;Website (active)&lt;/td&gt;&lt;td&gt;It answers requests, so test it from outside&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The public API&lt;/td&gt;&lt;td&gt;Website (active)&lt;/td&gt;&lt;td&gt;Same, with the status code you expect&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The database port, if it’s public&lt;/td&gt;&lt;td&gt;TCP (active)&lt;/td&gt;&lt;td&gt;Catches a database that stopped accepting connections&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The nightly backup&lt;/td&gt;&lt;td&gt;Heartbeat&lt;/td&gt;&lt;td&gt;No endpoint to probe; it has to report in&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Each important recurring job&lt;/td&gt;&lt;td&gt;Heartbeat, one per job&lt;/td&gt;&lt;td&gt;A shared check stays green if any one job reports&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The certificate&lt;/td&gt;&lt;td&gt;SSL certificate (active)&lt;/td&gt;&lt;td&gt;Warns days before it expires&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The domain&lt;/td&gt;&lt;td&gt;Domain (active)&lt;/td&gt;&lt;td&gt;Warns before the registration lapses&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;DNS records&lt;/td&gt;&lt;td&gt;DNS (active)&lt;/td&gt;&lt;td&gt;Catches a changed or missing record&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;A simple rule: if it answers requests, use an active check. If it runs on a schedule, use a heartbeat. If it expires, use an expiry check.&lt;/p&gt; &lt;h2 id=&quot;use-both-on-the-same-service&quot;&gt;Use both on the same service&lt;/h2&gt; &lt;p&gt;Some services deserve one of each. A queue-backed app can have a website check on the app and a heartbeat on its most important job. When the website check alerts, users can see the problem. When only the heartbeat alerts, the problem is behind the scenes, which tells you where to look first.&lt;/p&gt; &lt;p&gt;Pingstack has all six check types in every plan, Free included. The &lt;a href=&quot;https://docs.pingstack.io/monitoring/choose-a-check/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;check type guide&lt;/a&gt; compares them in more detail, and the &lt;a href=&quot;https://pingstack.io/features/cron-job-monitoring/&quot;&gt;cron job monitoring&lt;/a&gt; and &lt;a href=&quot;https://pingstack.io/features/website-monitoring/&quot;&gt;website monitoring&lt;/a&gt; pages show how each one alerts.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; with one website check and one heartbeat on the job you trust least.&lt;/p&gt;</content:encoded><category>monitoring</category><category>devops</category><category>sre</category><category>webdev</category></item><item><title>Monitoring Sidekiq and Rails scheduled jobs</title><link>https://pingstack.io/blog/monitor-sidekiq-rails-scheduled-jobs/</link><guid isPermaLink="true">https://pingstack.io/blog/monitor-sidekiq-rails-scheduled-jobs/</guid><description>A Rails recurring job can stop because the scheduler isn&apos;t running, the queue is stuck or the job raises on every attempt. Here&apos;s how to catch all three with Solid Queue or Sidekiq.</description><pubDate>Thu, 12 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A recurring job in Rails has more moving parts than a line in a crontab. A scheduler enqueues it, a queue holds it, a worker runs it, and retries hide the first few failures. Any of those can break without an error that anyone sees, and the job just stops doing its work.&lt;/p&gt; &lt;p&gt;We’ll cover Solid Queue (the default in Rails 8) and Sidekiq with sidekiq-cron. The approach is the same for both: the job reports to a heartbeat check when it succeeds, and the check alerts you when that report doesn’t show up on time.&lt;/p&gt; &lt;h2 id=&quot;how-rails-recurring-jobs-fail-silently&quot;&gt;How Rails recurring jobs fail silently&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;The scheduler isn’t running.&lt;/strong&gt; With Solid Queue, recurring tasks are enqueued by the dispatcher in &lt;code&gt;bin/jobs&lt;/code&gt; (or the Puma plugin). With sidekiq-cron, Sidekiq loads the schedule when it boots. If that process didn’t start on the new server, nothing gets enqueued and no job fails, because no job ever runs.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The queue is stuck.&lt;/strong&gt; The job is enqueued but sits behind a slow import, or the worker that handles its queue isn’t running. It’ll run eventually, maybe hours late.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The job raises every time.&lt;/strong&gt; Active Job and Sidekiq both retry. That’s good for a network blip and bad for a real bug, because the error turns into a string of retries in a dashboard nobody’s watching.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The job runs but does nothing.&lt;/strong&gt; It finishes without error and sends zero emails because a scope returned no records in production.&lt;/p&gt; &lt;p&gt;Exception trackers catch the third case and none of the others. A heartbeat catches all four, because it waits for proof that the job finished.&lt;/p&gt; &lt;h2 id=&quot;create-a-heartbeat-check-with-the-jobs-schedule&quot;&gt;Create a heartbeat check with the job’s schedule&lt;/h2&gt; &lt;p&gt;With Solid Queue, the schedule lives in &lt;code&gt;config/recurring.yml&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;production:
  nightly_report:
    class: NightlyReportJob
    schedule: &quot;0 2 * * * UTC&quot;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;With sidekiq-cron, it’s the job’s &lt;code&gt;cron&lt;/code&gt; entry in your schedule file or initializer.&lt;/p&gt; &lt;p&gt;Create a heartbeat check in Pingstack with the same cron expression and time zone. If the schedule has no zone, it follows the server’s zone, so pick that one. Set a grace period that covers the run time, time in the queue and a couple of retries. For a nightly report that takes five minutes, 30 to 60 minutes is a reasonable start.&lt;/p&gt; &lt;p&gt;Store the check’s ping URL in your encrypted credentials:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;bin/rails credentials:edit --environment production&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;pingstack:
  nightly_report: YOUR_PING_URL&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;report-after-a-successful-run&quot;&gt;Report after a successful run&lt;/h2&gt; &lt;p&gt;For Active Job (Solid Queue, or Sidekiq as the Active Job adapter), a small concern does it with &lt;code&gt;after_perform&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-ruby&quot;&gt;# app/jobs/concerns/pingstack_heartbeat.rb
require &quot;net/http&quot;

module PingstackHeartbeat
  extend ActiveSupport::Concern

  class_methods do
    def pingstack_heartbeat(credential_key)
      after_perform do
        PingstackHeartbeat.report(Rails.application.credentials.dig(:pingstack, credential_key))
      end
    end
  end

  def self.report(url, path: nil)
    return if url.blank?

    uri = URI(&quot;#{url}#{path}&quot;)
    Net::HTTP.start(uri.host, uri.port, use_ssl: true, open_timeout: 5, read_timeout: 10) do |http|
      http.get(uri.request_uri)
    end
  rescue StandardError =&gt; error
    Rails.logger.warn(&quot;Pingstack heartbeat failed: #{error.class}&quot;)
  end
end&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code class=&quot;language-ruby&quot;&gt;class NightlyReportJob &amp;#x3C; ApplicationJob
  include PingstackHeartbeat
  pingstack_heartbeat :nightly_report

  def perform
    Reports::Nightly.new.deliver
  end
end&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;code&gt;after_perform&lt;/code&gt; only runs when &lt;code&gt;perform&lt;/code&gt; returns without raising, so a failed attempt sends nothing. If a retry succeeds later, it reports then. The &lt;code&gt;rescue&lt;/code&gt; in &lt;code&gt;report&lt;/code&gt; matters: a network error talking to Pingstack gets logged and can’t make a good job look failed and retry.&lt;/p&gt; &lt;p&gt;For a plain Sidekiq job (&lt;code&gt;include Sidekiq::Job&lt;/code&gt;), call the same method at the end of &lt;code&gt;perform&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-ruby&quot;&gt;class NightlyReportWorker
  include Sidekiq::Job

  def perform
    Reports::Nightly.new.deliver
    PingstackHeartbeat.report(Rails.application.credentials.dig(:pingstack, :nightly_report))
  end
end&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;report-a-failure-once-retries-run-out&quot;&gt;Report a failure once retries run out&lt;/h2&gt; &lt;p&gt;Without this step, a job that raises every time alerts you when the next deadline plus grace period passes. That’s fine for a nightly job. For a job every 10 minutes, you’ll want to hear sooner. Adding &lt;code&gt;/fail&lt;/code&gt; to the ping URL marks the check down right away, so send it once the job has really given up, not on every attempt.&lt;/p&gt; &lt;p&gt;With Active Job, the block on &lt;code&gt;retry_on&lt;/code&gt; runs after the last attempt fails:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-ruby&quot;&gt;class NightlyReportJob &amp;#x3C; ApplicationJob
  include PingstackHeartbeat
  pingstack_heartbeat :nightly_report

  retry_on StandardError, attempts: 5 do |job, error|
    PingstackHeartbeat.report(Rails.application.credentials.dig(:pingstack, :nightly_report), path: &quot;/fail&quot;)
    raise error
  end
end&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;With Sidekiq, use &lt;code&gt;sidekiq_retries_exhausted&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-ruby&quot;&gt;class NightlyReportWorker
  include Sidekiq::Job
  sidekiq_options retry: 5

  sidekiq_retries_exhausted do |job, exception|
    PingstackHeartbeat.report(Rails.application.credentials.dig(:pingstack, :nightly_report), path: &quot;/fail&quot;)
  end
end&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The next successful run sends a normal heartbeat and the check recovers.&lt;/p&gt; &lt;h2 id=&quot;check-the-first-report-then-the-scheduler&quot;&gt;Check the first report, then the scheduler&lt;/h2&gt; &lt;p&gt;Run the job once from a production console:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-ruby&quot;&gt;NightlyReportJob.perform_now&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Open the check and confirm it got a heartbeat and shows a next deadline. Then make sure the scheduler really runs in production. A working job proves very little if &lt;code&gt;bin/jobs&lt;/code&gt; isn’t in your Procfile or your deploy config. That’s the failure this whole setup exists to catch, and you’ll find out at 02:00 plus the grace period if it’s missing.&lt;/p&gt; &lt;h2 id=&quot;a-few-traps&quot;&gt;A few traps&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Time zones.&lt;/strong&gt; &lt;code&gt;0 2 * * *&lt;/code&gt; with no zone means 02:00 on the server. Rails’ &lt;code&gt;config.time_zone&lt;/code&gt; doesn’t change that. Match the check to the zone the scheduler uses.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;One check per job.&lt;/strong&gt; A single heartbeat shared by five jobs stays green as long as any one of them reports. Give each important job its own check.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Long queues.&lt;/strong&gt; If a job can wait a long time in the queue on busy nights, widen the grace period or move it to its own queue. Constant late alerts teach people to ignore them.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Jobs that succeed with nothing to do.&lt;/strong&gt; Send a count with the heartbeat (&lt;code&gt;?value=42&lt;/code&gt;) and set thresholds on the check, so “sent 0 emails” raises an alert even though the job didn’t fail.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The full recipe, with the count example, is in the &lt;a href=&quot;https://docs.pingstack.io/recipes/rails-recurring-jobs/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Rails recurring jobs docs&lt;/a&gt;. More on how heartbeat checks work is on the &lt;a href=&quot;https://pingstack.io/features/cron-job-monitoring/&quot;&gt;cron job monitoring page&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add a check for the one job you’d least like to find out about from a customer.&lt;/p&gt;</content:encoded><category>cron</category><category>devops</category><category>linux</category><category>monitoring</category></item><item><title>Domain expiry checklist for agencies</title><link>https://pingstack.io/blog/domain-expiry-checklist-for-agencies/</link><guid isPermaLink="true">https://pingstack.io/blog/domain-expiry-checklist-for-agencies/</guid><description>When a client&apos;s domain lapses, the site, the email and the login links all stop at once, and the client calls you. Here&apos;s a checklist for keeping every client domain renewed.</description><pubDate>Tue, 10 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A client’s domain expires on a Saturday. Their website goes dark, their email starts bouncing, and the links in last week’s newsletter lead nowhere. The registrar sent reminders, to an address that belonged to someone who left years ago. On Monday, the client calls their agency.&lt;/p&gt; &lt;p&gt;It happens to big companies too. In July 2017, Marketo’s own domain expired after an auto-renewal failed, and its website, customer logins and the links in its customers’ marketing emails went down for several hours. Its CEO blamed “&lt;a href=&quot;https://www.theregister.com/2017/07/26/marketo_forgot_to_renew_domain/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;process errors with auto renewals as well as human errors&lt;/a&gt;.”&lt;/p&gt; &lt;p&gt;If you look after domains for 20 or 200 clients, the odds of one slipping through go up every year. This checklist is how to keep that from happening.&lt;/p&gt; &lt;h2 id=&quot;build-one-list-of-every-client-domain&quot;&gt;Build one list of every client domain&lt;/h2&gt; &lt;p&gt;You can’t renew what you don’t know about. For each domain, record:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;The domain and the client it belongs to&lt;/li&gt; &lt;li&gt;The registrar, and whose account it’s in&lt;/li&gt; &lt;li&gt;The expiry date&lt;/li&gt; &lt;li&gt;Whether auto-renew is on&lt;/li&gt; &lt;li&gt;Which card or account pays for it, and when that card expires&lt;/li&gt; &lt;li&gt;Where DNS is hosted, if it’s not at the registrar&lt;/li&gt; &lt;li&gt;The email address the registrar sends notices to&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Include the domains clients forget they have: the old brand name that redirects, the campaign microsite, the &lt;code&gt;.co&lt;/code&gt; they bought to stop squatters. Those are the ones that lapse, and a lapsed redirect domain can still break links and email.&lt;/p&gt; &lt;h2 id=&quot;settle-who-owns-each-registrar-account&quot;&gt;Settle who owns each registrar account&lt;/h2&gt; &lt;p&gt;Mixed ownership is where things fall through. Sometimes the client owns the account and you have a login. Sometimes you registered it for them years ago. Sometimes it’s in a former freelancer’s personal account.&lt;/p&gt; &lt;p&gt;Pick one rule and write it down: either the client owns the registrar account and you’re a delegated user, or you hold it and the contract says how it’s handed over. Either way, two people at your agency should be able to sign in.&lt;/p&gt; &lt;h2 id=&quot;send-renewal-notices-somewhere-a-person-reads&quot;&gt;Send renewal notices somewhere a person reads&lt;/h2&gt; &lt;p&gt;For generic domains like &lt;code&gt;.com&lt;/code&gt; and &lt;code&gt;.org&lt;/code&gt;, ICANN’s &lt;a href=&quot;https://www.icann.org/resources/pages/errp-2013-02-28-en&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Expired Registration Recovery Policy&lt;/a&gt; requires registrars to send reminders about one month and about one week before expiry, plus one within five days after. Those emails are only as good as the address they go to.&lt;/p&gt; &lt;p&gt;Use a shared role address you control, like &lt;code&gt;domains@youragency.com&lt;/code&gt;, as the contact on every account you manage. Personal addresses leave with people. Check it after any staff change.&lt;/p&gt; &lt;h2 id=&quot;turn-on-auto-renew-then-check-what-pays-for-it&quot;&gt;Turn on auto-renew, then check what pays for it&lt;/h2&gt; &lt;p&gt;Auto-renew is the most common safety net and the most common silent failure. It does nothing at all when the card on file expired, the client cancelled it, or the registrar account was locked.&lt;/p&gt; &lt;p&gt;Check each card’s expiry date against the domain’s renewal date. For domains that matter, renew for several years at once, so a card problem has time to surface.&lt;/p&gt; &lt;h2 id=&quot;know-what-happens-after-a-domain-expires&quot;&gt;Know what happens after a domain expires&lt;/h2&gt; &lt;p&gt;The good news is that an expired generic domain isn’t gone right away. The bad news is that it starts breaking almost immediately. For gTLDs, &lt;a href=&quot;https://www.icann.org/en/system/files/files/domain-name-renewal-complaint-27jun17-en.pdf&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;ICANN describes&lt;/a&gt; this sequence:&lt;/p&gt;                               &lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Stage&lt;/th&gt;&lt;th&gt;Length&lt;/th&gt;&lt;th&gt;What it means&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Auto-renew grace period&lt;/td&gt;&lt;td&gt;0 to 45 days, depends on the registrar&lt;/td&gt;&lt;td&gt;Often renewable at the normal price, but the site and email may already be down&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Redemption grace period&lt;/td&gt;&lt;td&gt;30 days&lt;/td&gt;&lt;td&gt;Recoverable, usually for a much higher fee&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Pending delete&lt;/td&gt;&lt;td&gt;5 days&lt;/td&gt;&lt;td&gt;Can’t be recovered&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Released&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Anyone can register it&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Country-code domains like &lt;code&gt;.uk&lt;/code&gt;, &lt;code&gt;.io&lt;/code&gt; and &lt;code&gt;.ca&lt;/code&gt; set their own rules, so look them up for the ones you manage. Don’t plan on the grace period. Plan on never needing it.&lt;/p&gt; &lt;h2 id=&quot;watch-the-expiry-dates-from-outside&quot;&gt;Watch the expiry dates from outside&lt;/h2&gt; &lt;p&gt;A spreadsheet tells you what the dates were when someone last updated it. An expiry check looks the date up for you and warns before it gets close.&lt;/p&gt; &lt;p&gt;With Pingstack, add a domain check for each client domain and pick two thresholds:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Warning:&lt;/strong&gt; the check turns degraded when this many days are left.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Critical:&lt;/strong&gt; the check goes down when this many days are left.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Pingstack looks up the expiry date every hour. When a domain crosses a threshold, the check opens an incident and alerts the notification group you chose. When the domain renews, the new date shows up in the next lookup and the check recovers on its own.&lt;/p&gt; &lt;p&gt;For agencies we’d use a longer warning than usual, like &lt;strong&gt;60 days warning and 14 days critical&lt;/strong&gt;. Client approvals, missing logins and expired cards take time to sort out, and 60 days gives you room for a couple of slow email threads.&lt;/p&gt; &lt;p&gt;Pingstack watches the registration date. It doesn’t renew anything or change registrar settings, so keep the registrar’s own reminders going too.&lt;/p&gt; &lt;h2 id=&quot;add-the-checks-that-fail-next&quot;&gt;Add the checks that fail next&lt;/h2&gt; &lt;p&gt;When a domain is healthy, the next things to break are usually the certificate and the DNS records. While you’re adding a client:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;An &lt;strong&gt;SSL certificate check&lt;/strong&gt; on the main hostname warns before the served certificate expires.&lt;/li&gt; &lt;li&gt;A &lt;strong&gt;DNS check&lt;/strong&gt; on the records that matter, like the site’s &lt;code&gt;A&lt;/code&gt; record or the &lt;code&gt;MX&lt;/code&gt; records, catches the day someone changes nameservers without telling you.&lt;/li&gt; &lt;li&gt;A &lt;strong&gt;website check&lt;/strong&gt; confirms the site actually loads.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Group each client’s checks on its own dashboard. You can share it as a public status page, which also helps when the client asks “is it just me?”&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;https://pingstack.io/for/agencies/&quot;&gt;agencies page&lt;/a&gt; shows how agencies run client monitoring in Pingstack, and the &lt;a href=&quot;https://pingstack.io/features/domain-expiry-monitoring/&quot;&gt;domain expiry monitoring page&lt;/a&gt; covers the check itself.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add the five client domains you’d least like to explain to a client on a Monday.&lt;/p&gt;</content:encoded><category>ssl</category><category>security</category><category>devops</category><category>monitoring</category></item><item><title>Pingstack is live</title><link>https://pingstack.io/blog/pingstack-is-live/</link><guid isPermaLink="true">https://pingstack.io/blog/pingstack-is-live/</guid><description>Pingstack opened to everyone on November 6. Here&apos;s what you get on day one, what&apos;s new since October, and how to try it.</description><pubDate>Sat, 07 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Pingstack launched yesterday, November 6, and anyone can sign up at &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;app.pingstack.io&lt;/a&gt;. It watches your cron jobs, websites, ports, DNS records, SSL certificates and domains, and tells the right person when one of them breaks.&lt;/p&gt; &lt;p&gt;We built it for ourselves first. Jacob and Jason have run SaaS apps for over 20 years, and for most of that time we paid one service for uptime, another for cron jobs and kept a calendar reminder for every certificate and domain renewal. Things still slipped through. So we put it all in one place, with one set of alerts and one idea of who gets woken up.&lt;/p&gt; &lt;h2 id=&quot;what-you-get-on-day-one&quot;&gt;What you get on day one&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Heartbeat checks&lt;/strong&gt; for cron jobs and scheduled tasks. Each job calls a private ping URL when it finishes, and you hear about it when the call doesn’t show up on time. A job can also send a number, like a backup’s size, and alert when it crosses a threshold.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Website and API checks&lt;/strong&gt; from US East, EU West and AP South, plus TCP port checks and DNS checks across the Cloudflare, Google and Quad9 resolvers.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;SSL certificate and domain expiry checks&lt;/strong&gt; that warn you at the number of days you pick.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Alerts&lt;/strong&gt; by email, Slack, Microsoft Teams, Discord and webhooks on every plan, PagerDuty, Jira Service Management and Jira on Team and Business, and phone calls on paid plans. Rosters and schedules send each alert to the person on call.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Status pages and wallboards&lt;/strong&gt; with your name, colors and logo.&lt;/li&gt; &lt;/ul&gt; &lt;h2 id=&quot;new-since-october&quot;&gt;New since October&lt;/h2&gt; &lt;p&gt;We first wrote about Pingstack in &lt;a href=&quot;https://pingstack.io/blog/introducing-pingstack/&quot;&gt;October&lt;/a&gt;. Here’s what shipped between then and launch.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Phone calls.&lt;/strong&gt; When an incident opens, Pingstack can call whoever’s on duty. Calls go to numbers in the US, Canada and the UK, and each one uses 1 credit. Pro includes 50 credits a month, Team 250 and Business 600, and extra credits are $10 for 100. Text alerts are coming soon.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Status pages on your own domain.&lt;/strong&gt; Put a status page on a hostname you own, like status.example.com, or on a pingstackhosted.com subdomain that works right away. That’s on Pro, Team and Business. Status page charts also got gridlines, dates and a reading for every point when you hover or tap.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;https://pingstack.io/changelog/&quot;&gt;changelog&lt;/a&gt; has the full list.&lt;/p&gt; &lt;h2 id=&quot;set-it-up-from-your-ai-agent&quot;&gt;Set it up from your AI agent&lt;/h2&gt; &lt;p&gt;Pingstack has a remote MCP server with browser sign-in, and it’s now listed in Claude’s connector directory. Settings → Connected apps has setup steps for Claude Code, OpenAI Codex, Cursor, GitHub Copilot, VS Code and Google Antigravity. For Claude Code it’s one command:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;claude mcp add --transport http pingstack https://app.pingstack.io/mcp&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Then ask it to “add a heartbeat check for the nightly backup and alert the on-call group if it misses a run.” The agent works inside your role’s permissions and your plan’s limits. It can’t buy anything, and it can only pause or delete checks if you turn those permissions on. The &lt;a href=&quot;https://docs.pingstack.io/recipes/claude-code/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Claude Code recipe&lt;/a&gt; walks through it, and there are &lt;a href=&quot;https://docs.pingstack.io/recipes/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;recipes for 25 schedulers&lt;/a&gt;.&lt;/p&gt; &lt;h2 id=&quot;pricing&quot;&gt;Pricing&lt;/h2&gt; &lt;p&gt;Free covers 15 checks, checked every 5 minutes from one region. Pro is $12 a month for 50 checks every minute from all three regions. Team is $29 a month for 250 checks and 5 seats. Business is $79 a month for 1,000 checks and 15 seats, then $5 a seat. Pay yearly and you get 2 months free. The &lt;a href=&quot;https://pingstack.io/pricing/&quot;&gt;pricing page&lt;/a&gt; has the full comparison.&lt;/p&gt; &lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add a heartbeat to the job you’d least like to fail silently. Then tell us what’s confusing, broken or missing. We read every message, and you’ll see what we change because of it in the &lt;a href=&quot;https://pingstack.io/changelog/&quot;&gt;changelog&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>showdev</category><category>monitoring</category><category>devops</category><category>startup</category></item><item><title>Monitoring GitHub Actions scheduled workflows (cron that GitHub can skip)</title><link>https://pingstack.io/blog/monitor-github-actions-scheduled-workflows/</link><guid isPermaLink="true">https://pingstack.io/blog/monitor-github-actions-scheduled-workflows/</guid><description>A GitHub Actions schedule can start late, get dropped under load, or be switched off after 60 quiet days. Here&apos;s how to find out, with a final step that reports every run.</description><pubDate>Sat, 17 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;GitHub Actions is a handy place for a scheduled job. There’s no server to run, and the workflow lives right next to the code. It’s also one of the easiest schedulers to lose track of. GitHub can delay or drop a scheduled run under load, it switches schedules off in quiet public repositories, and it only emails one person when a run fails. A workflow that stopped running sends no failure email at all.&lt;/p&gt; &lt;h2 id=&quot;how-github-actions-schedules-fail-silently&quot;&gt;How GitHub Actions schedules fail silently&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;The run is late or never happens.&lt;/strong&gt; GitHub queues scheduled runs and starts them when runners are free. At busy times, especially the top of each hour, runs can start well after the cron time, and GitHub’s documentation notes that some queued runs may be dropped.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The schedule is switched off.&lt;/strong&gt; In public repositories, GitHub disables scheduled workflows after 60 days without repository activity. The workflow file is still there. It just doesn’t run.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The schedule was never on.&lt;/strong&gt; Schedules only run from the workflow file on the default branch. A &lt;code&gt;schedule:&lt;/code&gt; trigger added on a feature branch, or a workflow whose default branch changed, never fires.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The run fails and the email goes to the wrong person.&lt;/strong&gt; Failure emails for a scheduled workflow go to whoever last changed its cron line. That person may have left the team, or filtered out Actions emails a long time ago.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The run succeeds and does nothing.&lt;/strong&gt; The export step exits 0 after exporting zero rows, because a token expired and the API returned an empty list.&lt;/p&gt; &lt;h2 id=&quot;why-the-actions-tab-isnt-monitoring&quot;&gt;Why the Actions tab isn’t monitoring&lt;/h2&gt; &lt;p&gt;The Actions tab shows runs that happened. It can’t show you the run that should have happened at 02:00 and didn’t. And honestly, who opens it to check on a job that seems fine? You want a signal that has to arrive for everything to be OK. The workflow reports each run to an outside heartbeat check, and the check alerts you when that report is late or missing.&lt;/p&gt; &lt;h2 id=&quot;set-up-github-actions-schedule-monitoring&quot;&gt;Set up GitHub Actions schedule monitoring&lt;/h2&gt; &lt;h3 id=&quot;1-create-a-heartbeat-check-with-the-workflows-cron&quot;&gt;1. Create a heartbeat check with the workflow’s cron&lt;/h3&gt; &lt;p&gt;Copy the expression from &lt;code&gt;on.schedule.cron&lt;/code&gt;, for example &lt;code&gt;0 2 * * *&lt;/code&gt;, into a heartbeat check. GitHub Actions schedules run in UTC unless the schedule sets a &lt;code&gt;timezone&lt;/code&gt; with an IANA name such as &lt;code&gt;America/New_York&lt;/code&gt;, so give the check the same time zone: UTC, or whatever &lt;code&gt;timezone&lt;/code&gt; says. The &lt;a href=&quot;https://pingstack.io/tools/cron-expression-explainer/&quot;&gt;cron expression explainer&lt;/a&gt; shows what an expression means and when it next runs in any time zone.&lt;/p&gt; &lt;p&gt;Give it a generous grace period, because GitHub starts scheduled runs late when runners are busy. Thirty to sixty minutes works for most daily workflows. It also helps to move the schedule off the top of the hour, say &lt;code&gt;17 2 * * *&lt;/code&gt; instead of &lt;code&gt;0 2 * * *&lt;/code&gt;.&lt;/p&gt; &lt;h3 id=&quot;2-store-the-ping-url-as-a-repository-secret&quot;&gt;2. Store the ping URL as a repository secret&lt;/h3&gt; &lt;p&gt;Anyone with the ping URL can report a run, so don’t commit it. In the repository’s &lt;strong&gt;Settings › Secrets and variables › Actions&lt;/strong&gt;, add a secret named &lt;code&gt;PINGSTACK_PING_URL&lt;/code&gt;. GitHub masks secret values in logs.&lt;/p&gt; &lt;h3 id=&quot;3-report-each-run-as-the-last-step&quot;&gt;3. Report each run as the last step&lt;/h3&gt; &lt;p&gt;The free, open-source &lt;a href=&quot;https://pingstack.io/integration/github-actions/&quot;&gt;Pingstack Heartbeat action&lt;/a&gt; does the reporting:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;name: Nightly export

on:
  schedule:
    - cron: &apos;17 2 * * *&apos;
  workflow_dispatch:

jobs:
  export:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run the export
        run: ./scripts/export.sh
      - name: Report to Pingstack
        if: always()
        uses: pingstack-io/heartbeat-action@v1
        with:
          ping-url: ${{ secrets.PINGSTACK_PING_URL }}&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;code&gt;if: always()&lt;/code&gt; runs the report even when an earlier step failed. A successful run sends a heartbeat. A failed run reports the failure, so you get an alert right away with a link to the run, without waiting for the deadline. The action keeps the ping URL out of the logs, and &lt;code&gt;workflow_dispatch&lt;/code&gt; adds a &lt;strong&gt;Run workflow&lt;/strong&gt; button for testing.&lt;/p&gt; &lt;p&gt;Prefer plain &lt;code&gt;curl&lt;/code&gt;? The &lt;a href=&quot;https://docs.pingstack.io/recipes/github-actions/#without-the-action&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;docs recipe&lt;/a&gt; has a version without the action.&lt;/p&gt; &lt;h3 id=&quot;4-test-it&quot;&gt;4. Test it&lt;/h3&gt; &lt;p&gt;Open the &lt;strong&gt;Actions&lt;/strong&gt; tab, select the workflow and choose &lt;strong&gt;Run workflow&lt;/strong&gt;. When it finishes, the check should show a heartbeat and its next deadline. A manual run counts like any other, and the check then expects the next scheduled time.&lt;/p&gt; &lt;h2 id=&quot;catch-succeeded-but-did-nothing&quot;&gt;Catch “succeeded but did nothing”&lt;/h2&gt; &lt;p&gt;Report a count with each run and set warning and critical thresholds on the check, so an export of zero rows still raises an alert:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;- name: Run the export
  id: export
  run: echo &quot;rows=$(./scripts/export.sh --count)&quot; &gt;&gt; &quot;$GITHUB_OUTPUT&quot;
- name: Report to Pingstack
  if: always()
  uses: pingstack-io/heartbeat-action@v1
  with:
    ping-url: ${{ secrets.PINGSTACK_PING_URL }}
    value: ${{ steps.export.outputs.rows }}&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;workflows-with-several-jobs&quot;&gt;Workflows with several jobs&lt;/h2&gt; &lt;p&gt;If a workflow has several jobs that all have to succeed, report from a final job that &lt;code&gt;needs&lt;/code&gt; the others. A report from inside one job only proves that one job worked. Give each scheduled workflow its own check and secret.&lt;/p&gt; &lt;h2 id=&quot;common-questions&quot;&gt;Common questions&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;How late can a GitHub Actions scheduled run be?&lt;/strong&gt; GitHub doesn’t promise a start time. Delays of several minutes are common at busy times, and longer ones happen. If a check alerts late and then recovers on its own, make the grace period longer and leave the workflow alone.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Can a GitHub Actions schedule use my time zone?&lt;/strong&gt; Yes. Add &lt;code&gt;timezone: &quot;Europe/London&quot;&lt;/code&gt; (any IANA name) next to &lt;code&gt;cron&lt;/code&gt; under &lt;code&gt;schedule&lt;/code&gt;. Without it, the schedule runs in UTC. Either way, set the same time zone on the check.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;How often can a scheduled workflow run?&lt;/strong&gt; The shortest interval GitHub allows is every 5 minutes. If something has to run more often, or right on time, I’d use a dedicated scheduler.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;How do I stop GitHub disabling my schedule?&lt;/strong&gt; Any repository activity resets the 60-day clock in a public repository. A disabled workflow can be turned back on from the &lt;strong&gt;Actions&lt;/strong&gt; tab. A heartbeat check tells you the day it happens, so you don’t find out weeks later from the missing output.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Will the report step run in forks?&lt;/strong&gt; Forks and pull requests from forks don’t receive repository secrets, so the step has no URL there. Schedules don’t run in forks by default either.&lt;/p&gt; &lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt; &lt;p&gt;Pingstack’s &lt;a href=&quot;https://pingstack.io/features/cron-job-monitoring/&quot;&gt;cron job monitoring&lt;/a&gt; takes the workflow’s cron expression and time zone, alerts when a run is missing or late, and tracks a reported number against thresholds. Free covers 15 checks. The full &lt;a href=&quot;https://docs.pingstack.io/recipes/github-actions/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;GitHub Actions recipe&lt;/a&gt; is in the docs, and the &lt;a href=&quot;https://pingstack.io/blog/how-to-monitor-cron-jobs/&quot;&gt;cron monitoring guide&lt;/a&gt; covers the general setup. &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add a check to the workflow you’d least like to stop without anyone noticing.&lt;/p&gt;</content:encoded><category>cron</category><category>devops</category><category>linux</category><category>monitoring</category></item><item><title>Monitoring a Kubernetes CronJob (and catching the runs that never happen)</title><link>https://pingstack.io/blog/monitor-kubernetes-cronjobs/</link><guid isPermaLink="true">https://pingstack.io/blog/monitor-kubernetes-cronjobs/</guid><description>A CronJob can be suspended, stuck pulling an image or out of retries, and the cluster stays quiet. Here&apos;s a heartbeat setup that reports only real successes, with YAML you can copy.</description><pubDate>Sat, 17 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A Kubernetes CronJob looks healthy right up until you need what it was supposed to produce. The pods crashed through their retries on Tuesday, or the image tag was deleted, or someone set &lt;code&gt;suspend: true&lt;/code&gt; during an incident and forgot. &lt;code&gt;kubectl get cronjobs&lt;/code&gt; still shows a schedule and a last schedule time, and nothing tells you the job hasn’t succeeded in a week.&lt;/p&gt; &lt;h2 id=&quot;how-kubernetes-cronjobs-fail-without-telling-you&quot;&gt;How Kubernetes CronJobs fail without telling you&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;The job runs and fails.&lt;/strong&gt; The container exits non-zero, Kubernetes retries up to &lt;code&gt;backoffLimit&lt;/code&gt;, and the Job gets marked failed. Unless something’s watching Job status, that’s the end of it.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The job never really runs.&lt;/strong&gt; The pod sits in &lt;code&gt;Pending&lt;/code&gt; waiting for capacity, or in &lt;code&gt;ImagePullBackOff&lt;/code&gt; because a tag or registry credential changed. The CronJob did its part by creating the Job, so &lt;code&gt;LAST SCHEDULE&lt;/code&gt; looks fine.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The schedule stops.&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Someone suspended the CronJob with &lt;code&gt;spec.suspend: true&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;The controller was down long enough to miss more than 100 schedules. It then stops starting runs until you intervene, unless &lt;code&gt;startingDeadlineSeconds&lt;/code&gt; limits how far back it counts.&lt;/li&gt; &lt;li&gt;The CronJob was deleted or never applied to the new cluster after a migration.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;&lt;strong&gt;The job succeeds at the wrong time.&lt;/strong&gt; Without &lt;code&gt;spec.timeZone&lt;/code&gt;, the schedule follows the controller manager’s time zone, usually UTC. A report you meant for 02:00 in Chicago runs at 21:00 the day before.&lt;/p&gt; &lt;h2 id=&quot;whykubectland-cluster-metrics-arent-enough&quot;&gt;Why&lt;code&gt;kubectl&lt;/code&gt;and cluster metrics aren’t enough&lt;/h2&gt; &lt;p&gt;&lt;code&gt;kubectl get cronjob&lt;/code&gt; shows when a Job was last &lt;em&gt;scheduled&lt;/em&gt;. It doesn’t say whether it succeeded. Prometheus with kube-state-metrics can alert on failed Jobs, but it lives inside the cluster it’s watching. If the cluster, the node pool or the monitoring stack is what broke, the alert goes down with it. And a CronJob that’s suspended or deleted doesn’t produce a failure to alert on.&lt;/p&gt; &lt;p&gt;What you want is a signal from outside that has to arrive for everything to be OK. That’s a heartbeat. The job reports success to an outside check, and the check alerts you when the report doesn’t show up on time.&lt;/p&gt; &lt;h2 id=&quot;set-up-kubernetes-cronjob-monitoring&quot;&gt;Set up Kubernetes CronJob monitoring&lt;/h2&gt; &lt;h3 id=&quot;1-create-a-heartbeat-check-with-the-same-schedule&quot;&gt;1. Create a heartbeat check with the same schedule&lt;/h3&gt; &lt;p&gt;Take the CronJob’s &lt;code&gt;schedule&lt;/code&gt;, for example &lt;code&gt;0 2 * * *&lt;/code&gt;, and create a heartbeat check with the same cron expression. Set &lt;code&gt;spec.timeZone&lt;/code&gt; on the CronJob (stable since Kubernetes 1.27) and choose the same time zone on the check, so both agree about when 02:00 is. If you’re unsure what an expression means, paste it into the &lt;a href=&quot;https://pingstack.io/tools/cron-expression-explainer/&quot;&gt;cron expression explainer&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Give the check a grace period that covers pod scheduling, the image pull, the job’s normal runtime and any retries &lt;code&gt;backoffLimit&lt;/code&gt; allows. A job that sometimes succeeds on its third try will report late, and that’s fine.&lt;/p&gt; &lt;h3 id=&quot;2-put-the-ping-url-in-a-secret&quot;&gt;2. Put the ping URL in a Secret&lt;/h3&gt; &lt;p&gt;Anyone with the ping URL can report a run, so keep it out of manifests you commit:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;read -rs URL
kubectl create secret generic pingstack-nightly-report \
  --from-literal=ping-url=&quot;$URL&quot;
unset URL&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;If you use Sealed Secrets or External Secrets, store it there instead.&lt;/p&gt; &lt;h3 id=&quot;3-report-only-after-the-work-succeeds&quot;&gt;3. Report only after the work succeeds&lt;/h3&gt; &lt;p&gt;I like running the work in an init container and the report in the main container. Kubernetes only starts the main container after every init container exits successfully, so a failed run never reports. Your job’s image doesn’t need &lt;code&gt;curl&lt;/code&gt; either:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;apiVersion: batch/v1
kind: CronJob
metadata:
  name: nightly-report
spec:
  schedule: &quot;0 2 * * *&quot;
  timeZone: &quot;Etc/UTC&quot;
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 600
  jobTemplate:
    spec:
      backoffLimit: 2
      template:
        spec:
          restartPolicy: Never
          initContainers:
            - name: report
              image: registry.example.com/reports:1.4.0
              command: [&quot;./run-report&quot;]
          containers:
            - name: pingstack
              image: curlimages/curl:8.10.1
              command: [&quot;sh&quot;, &quot;-c&quot;]
              args:
                - curl --fail --silent --show-error --max-time 10 --retry 3 &quot;$PINGSTACK_PING_URL&quot; &gt; /dev/null
              env:
                - name: PINGSTACK_PING_URL
                  valueFrom:
                    secretKeyRef:
                      name: pingstack-nightly-report
                      key: ping-url&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;If your image already has a shell and &lt;code&gt;curl&lt;/code&gt;, one container is enough. Chain the report with &lt;code&gt;&amp;#x26;&amp;#x26;&lt;/code&gt; so it only runs after a successful command:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;command: [&quot;sh&quot;, &quot;-c&quot;, &quot;./run-report &amp;#x26;&amp;#x26; curl --fail --silent --show-error --max-time 10 \&quot;$PINGSTACK_PING_URL\&quot;&quot;]&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;code&gt;concurrencyPolicy: Forbid&lt;/code&gt; stops a slow run overlapping the next one. &lt;code&gt;startingDeadlineSeconds: 600&lt;/code&gt; lets the controller still start a run up to ten minutes late, for example after a control-plane restart, and keeps it from counting a long backlog of missed schedules.&lt;/p&gt; &lt;h3 id=&quot;4-test-it-without-waiting-for-0200&quot;&gt;4. Test it without waiting for 02:00&lt;/h3&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;kubectl create job --from=cronjob/nightly-report nightly-report-test
kubectl logs -f job/nightly-report-test --all-containers&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The check should show a heartbeat and its next deadline. Delete the test Job when you’re done.&lt;/p&gt; &lt;h2 id=&quot;catch-succeeded-but-did-nothing&quot;&gt;Catch “succeeded but did nothing”&lt;/h2&gt; &lt;p&gt;Exit code 0 doesn’t mean the job did its work. A report that ran against an empty table succeeds in seconds. Send a number with the ping, like rows processed or file size, and set warning and critical thresholds on the check:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;COUNT=$(./run-report --count) &amp;#x26;&amp;#x26; \
  curl --fail --silent --show-error --max-time 10 \
    --get --data-urlencode &quot;value=$COUNT&quot; &quot;$PINGSTACK_PING_URL&quot;&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;several-clusters-or-cronjobs&quot;&gt;Several clusters or CronJobs&lt;/h2&gt; &lt;p&gt;Give each CronJob its own check and Secret. If the same CronJob runs in several clusters and each run matters, use one named location per cluster on the check. Each location expects its own heartbeat, so a healthy cluster can’t hide a silent one.&lt;/p&gt; &lt;h2 id=&quot;common-questions&quot;&gt;Common questions&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;Can I monitor a CronJob from inside the cluster?&lt;/strong&gt; You can watch Job status with kube-state-metrics, and I’d definitely keep it. It can’t tell you about a suspended or deleted CronJob, though, and it fails along with the cluster. An outside heartbeat covers both.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Why did my check alert when the job was fine?&lt;/strong&gt; Usually a time zone mismatch between the check and &lt;code&gt;spec.timeZone&lt;/code&gt;, or a grace period shorter than pod scheduling plus retries. Pods stuck in &lt;code&gt;Pending&lt;/code&gt; during a capacity crunch also report late.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Should the job also ping when it starts?&lt;/strong&gt; No. Every report counts as a run, so a ping at the start would mark the check healthy even when the work then fails. Report once, after success.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What if the job runs more often than every minute?&lt;/strong&gt; Kubernetes CronJobs can’t schedule more often than once a minute. For anything more frequent, use a long-running worker and report on an interval check.&lt;/p&gt; &lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt; &lt;p&gt;Pingstack’s &lt;a href=&quot;https://pingstack.io/features/cron-job-monitoring/&quot;&gt;cron job monitoring&lt;/a&gt; takes your CronJob’s cron expression and time zone, alerts when a run is missing or late, and tracks a reported number against thresholds. Free covers 15 checks. The full &lt;a href=&quot;https://docs.pingstack.io/recipes/kubernetes-cronjob/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Kubernetes recipe&lt;/a&gt; is in the docs, and the &lt;a href=&quot;https://pingstack.io/blog/how-to-monitor-cron-jobs/&quot;&gt;cron monitoring guide&lt;/a&gt; covers the same ideas for plain crontab. &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add a check to the CronJob you’d least like to fail silently.&lt;/p&gt;</content:encoded><category>cron</category><category>devops</category><category>linux</category><category>monitoring</category></item><item><title>Monitoring the Laravel scheduler: catch tasks that stop running</title><link>https://pingstack.io/blog/monitor-laravel-scheduler/</link><guid isPermaLink="true">https://pingstack.io/blog/monitor-laravel-scheduler/</guid><description>Laravel runs every scheduled task from one cron entry, so one problem can stop them all. Here&apos;s how to monitor each task with Laravel&apos;s own pingOnSuccess hook, and the traps to avoid.</description><pubDate>Sat, 17 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Laravel’s scheduler is a single point of failure by design. Every task in &lt;code&gt;routes/console.php&lt;/code&gt; runs from one cron entry calling &lt;code&gt;schedule:run&lt;/code&gt; each minute. When that entry is missing on a new server, or the container you deploy to doesn’t run cron at all, every scheduled task stops at once. Laravel can’t tell you, because nothing is running to notice.&lt;/p&gt; &lt;p&gt;The good news is you don’t need any extra packages to catch it. Laravel’s built-in &lt;code&gt;pingOnSuccess&lt;/code&gt; hook and an outside heartbeat check do the job.&lt;/p&gt; &lt;h2 id=&quot;how-laravel-scheduled-tasks-fail-silently&quot;&gt;How Laravel scheduled tasks fail silently&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;The scheduler never runs.&lt;/strong&gt; The &lt;code&gt;* * * * * php artisan schedule:run&lt;/code&gt; line didn’t make it onto the new server, the deploy moved to containers, or the &lt;code&gt;schedule:work&lt;/code&gt; process under Supervisor died. Every task stops together.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;A task throws.&lt;/strong&gt; The command fails, Laravel logs the exception, and the next run fails the same way. If nobody reads that log channel, the task can stay broken for weeks.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;A task is skipped.&lt;/strong&gt; &lt;code&gt;withoutOverlapping()&lt;/code&gt; takes a lock for each run. If the process is killed mid-run, the lock stays until it expires, 24 hours by default, and every run until then is skipped without an error.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;A task runs but does nothing.&lt;/strong&gt; The report “sends” to zero recipients, or the cleanup command finds nothing because a config value is empty in production.&lt;/p&gt; &lt;h2 id=&quot;why-the-laravel-scheduler-cant-watch-itself&quot;&gt;Why the Laravel scheduler can’t watch itself&lt;/h2&gt; &lt;p&gt;Laravel’s &lt;code&gt;onFailure&lt;/code&gt; hooks and exception reporting only fire when a task runs and fails. They can’t fire when &lt;code&gt;schedule:run&lt;/code&gt; itself never starts, and that’s the failure that takes everything down. What you want is a signal from outside that has to arrive. Each important task reports success to a heartbeat check, and the check alerts you when the report is late or missing.&lt;/p&gt; &lt;h2 id=&quot;monitor-the-laravel-scheduler-with-pingonsuccess&quot;&gt;Monitor the Laravel scheduler with pingOnSuccess&lt;/h2&gt; &lt;h3 id=&quot;1-create-a-heartbeat-check-for-the-task&quot;&gt;1. Create a heartbeat check for the task&lt;/h3&gt; &lt;p&gt;Find the task’s schedule. &lt;code&gt;php artisan schedule:list&lt;/code&gt; shows each task’s cron expression and next run time. For example, &lt;code&gt;dailyAt(&apos;02:00&apos;)&lt;/code&gt; is &lt;code&gt;0 2 * * *&lt;/code&gt;. Create a heartbeat check with that expression.&lt;/p&gt; &lt;p&gt;Laravel runs tasks in your application’s time zone (&lt;code&gt;APP_TIMEZONE&lt;/code&gt;, or &lt;code&gt;timezone&lt;/code&gt; in &lt;code&gt;config/app.php&lt;/code&gt;) unless a task sets &lt;code&gt;-&gt;timezone(...)&lt;/code&gt;. Pick the same time zone on the check, or a task at 02:00 in your app’s zone will look hours late. The &lt;a href=&quot;https://pingstack.io/tools/cron-expression-explainer/&quot;&gt;cron expression explainer&lt;/a&gt; shows the next run times for an expression in any time zone.&lt;/p&gt; &lt;p&gt;Set the grace period longer than the task’s slowest normal run.&lt;/p&gt; &lt;h3 id=&quot;2-keep-the-ping-url-in-configuration&quot;&gt;2. Keep the ping URL in configuration&lt;/h3&gt; &lt;p&gt;Anyone with the ping URL can report a run, so treat it like a secret. Put it in the server’s &lt;code&gt;.env&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;PINGSTACK_REPORTS_PING_URL=&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Read it through a config file, because &lt;code&gt;env()&lt;/code&gt; returns null outside config files once you run &lt;code&gt;php artisan config:cache&lt;/code&gt;. In &lt;code&gt;config/services.php&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;&apos;pingstack&apos; =&gt; [
    &apos;reports_ping_url&apos; =&gt; env(&apos;PINGSTACK_REPORTS_PING_URL&apos;),
],&lt;/code&gt;&lt;/pre&gt; &lt;h3 id=&quot;3-ping-only-on-success&quot;&gt;3. Ping only on success&lt;/h3&gt; &lt;p&gt;In &lt;code&gt;routes/console.php&lt;/code&gt; (Laravel 11 and later):&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;use Illuminate\Support\Facades\Schedule;

Schedule::command(&apos;reports:send&apos;)
    -&gt;dailyAt(&apos;02:00&apos;)
    -&gt;withoutOverlapping()
    -&gt;onOneServer()
    -&gt;pingOnSuccess(config(&apos;services.pingstack.reports_ping_url&apos;));&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;On Laravel 10 and earlier, use the same chain on &lt;code&gt;$schedule-&gt;command(...)&lt;/code&gt; in the &lt;code&gt;schedule()&lt;/code&gt; method of &lt;code&gt;app/Console/Kernel.php&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;&lt;code&gt;pingOnSuccess&lt;/code&gt; sends the request only when the command exits successfully, so a failed run sends nothing and the check alerts when the deadline passes. &lt;code&gt;onOneServer()&lt;/code&gt; stops several app servers from each running and reporting the task. It needs a cache driver that supports atomic locks, such as Redis or the database.&lt;/p&gt; &lt;p&gt;Avoid &lt;code&gt;thenPing&lt;/code&gt; here. It pings after every run, including failed ones, so a broken task would keep reporting as healthy.&lt;/p&gt; &lt;h3 id=&quot;4-test-it&quot;&gt;4. Test it&lt;/h3&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;php artisan schedule:test --name=&quot;reports:send&quot;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The check should show a heartbeat and its next deadline. If nothing arrives, run &lt;code&gt;php artisan tinker&lt;/code&gt; and check that &lt;code&gt;config(&apos;services.pingstack.reports_ping_url&apos;)&lt;/code&gt; isn’t empty. A stale config cache is the usual reason.&lt;/p&gt; &lt;h2 id=&quot;watch-out-for-queued-jobs&quot;&gt;Watch out for queued jobs&lt;/h2&gt; &lt;p&gt;&lt;code&gt;Schedule::job(new SendReports)&lt;/code&gt; dispatches the job to your queue. For the scheduler, success means the job was &lt;em&gt;dispatched&lt;/em&gt;, so &lt;code&gt;pingOnSuccess&lt;/code&gt; would report even if the queue worker is down and the job never runs. For queued work, report from the end of the job’s &lt;code&gt;handle&lt;/code&gt; method instead, after the work succeeds:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;use Illuminate\Support\Facades\Http;

Http::timeout(10)-&gt;retry(3, 1000)-&gt;get(
    config(&apos;services.pingstack.reports_ping_url&apos;),
);&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Bonus: this also catches a dead queue worker, which no scheduler hook can see.&lt;/p&gt; &lt;h2 id=&quot;catch-succeeded-but-did-nothing&quot;&gt;Catch “succeeded but did nothing”&lt;/h2&gt; &lt;p&gt;Send a count with the report and set warning and critical thresholds on the check. Report from the end of the command’s &lt;code&gt;handle&lt;/code&gt; method, and remove &lt;code&gt;pingOnSuccess&lt;/code&gt; from that task so it doesn’t report twice:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;Http::timeout(10)-&gt;retry(3, 1000)-&gt;get(
    config(&apos;services.pingstack.reports_ping_url&apos;),
    [&apos;value&apos; =&gt; $sentCount],
);&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;A report that sends to zero recipients then raises an alert.&lt;/p&gt; &lt;h2 id=&quot;one-check-per-task&quot;&gt;One check per task&lt;/h2&gt; &lt;p&gt;Give each task you care about its own check and its own variable. When the whole scheduler stops, every check alerts at once. That tells you straight away the problem is the cron entry or the server, and not one task.&lt;/p&gt; &lt;h2 id=&quot;common-questions&quot;&gt;Common questions&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;Do I need a package to monitor the Laravel scheduler?&lt;/strong&gt; No. &lt;code&gt;pingOnSuccess&lt;/code&gt; is built into Laravel’s scheduler and uses the HTTP client that new Laravel apps include.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Does &lt;code&gt;pingOnSuccess&lt;/code&gt; work with &lt;code&gt;runInBackground()&lt;/code&gt;?&lt;/strong&gt; Yes. Laravel reports when the background process finishes, so the ping arrives after the work is done.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Why does my task alert during deploys?&lt;/strong&gt; Tasks don’t run in maintenance mode unless they call &lt;code&gt;-&gt;evenInMaintenanceMode()&lt;/code&gt;. A long maintenance window can push a task past its grace period.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Can I monitor &lt;code&gt;schedule:run&lt;/code&gt; itself?&lt;/strong&gt; Add a cheap task that runs every few minutes and pings its own interval check. If that check goes quiet, the scheduler isn’t running at all.&lt;/p&gt; &lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt; &lt;p&gt;Pingstack’s &lt;a href=&quot;https://pingstack.io/features/cron-job-monitoring/&quot;&gt;cron job monitoring&lt;/a&gt; takes each task’s cron expression and your app’s time zone, alerts when a run is missing or late, and tracks a reported number against thresholds. Free covers 15 checks. The full &lt;a href=&quot;https://docs.pingstack.io/recipes/laravel-scheduler/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Laravel recipe&lt;/a&gt; is in the docs, and the &lt;a href=&quot;https://pingstack.io/blog/how-to-monitor-cron-jobs/&quot;&gt;cron monitoring guide&lt;/a&gt; covers the general setup. &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add a check to the task you’d least like to fail silently.&lt;/p&gt;</content:encoded><category>cron</category><category>devops</category><category>linux</category><category>monitoring</category></item><item><title>Let Claude Code add monitoring to your jobs</title><link>https://pingstack.io/blog/claude-code-adds-monitoring/</link><guid isPermaLink="true">https://pingstack.io/blog/claude-code-adds-monitoring/</guid><description>When Claude Code writes a scheduled job, it can create the check that watches it. Here&apos;s the setup, the prompts, and the guardrails that keep it safe.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Ask a coding agent for a nightly export job and you’ll get a pretty good one: a workflow file, a script, maybe a retry. What you almost never get is monitoring. Nobody asked for it, so the job ships, and the first time it stops running you hear about it from whoever needed the export.&lt;/p&gt; &lt;p&gt;Pingstack has an MCP server, so Claude Code can add the monitoring in the same change. It reads the job’s schedule, creates a matching &lt;a href=&quot;https://docs.pingstack.io/monitoring/heartbeat/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;heartbeat check&lt;/a&gt;, and adds a report step that only runs when the job succeeds.&lt;/p&gt; &lt;h2 id=&quot;connect-claude-code&quot;&gt;Connect Claude Code&lt;/h2&gt; &lt;p&gt;One command adds the server:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;claude mcp add --transport http pingstack https://app.pingstack.io/mcp&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;In Claude Code, run &lt;code&gt;/mcp&lt;/code&gt;, pick &lt;code&gt;pingstack&lt;/code&gt; and sign in through your browser. An Owner or Admin on your Pingstack account approves the connection and picks its permissions. For this workflow it needs permission to create checks. Leave heartbeat URL access off (it’s off by default). Claude doesn’t need to read ping URLs.&lt;/p&gt; &lt;p&gt;I’d start with a read-only request, so you know which account you’re talking to:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Read my Pingstack account capabilities and list my checks. Don’t change anything.&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;If it names the wrong account, disconnect it in Pingstack settings and connect again.&lt;/p&gt; &lt;h2 id=&quot;ask-for-a-check-that-matches-the-job&quot;&gt;Ask for a check that matches the job&lt;/h2&gt; &lt;p&gt;Point Claude at the job:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Look at the nightly export job in &lt;code&gt;.github/workflows/export.yml&lt;/code&gt;. Propose a Pingstack heartbeat check that matches its schedule and timezone, with a grace period that covers its runtime. Show me the configuration before you create it.&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Claude reads &lt;code&gt;cron: &quot;15 2 * * *&quot;&lt;/code&gt; from the workflow, knows GitHub Actions runs schedules in UTC, and proposes something like this:&lt;/p&gt;                          &lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Setting&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;Nightly export&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Schedule&lt;/td&gt;&lt;td&gt;Cron &lt;code&gt;15 2 * * *&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Time zone&lt;/td&gt;&lt;td&gt;UTC&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Grace period&lt;/td&gt;&lt;td&gt;45 minutes&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Say yes and it creates the check. Ask it to add the check to a dashboard or a notification group and it’ll do that too, if your role allows it.&lt;/p&gt; &lt;h2 id=&quot;add-the-report-step&quot;&gt;Add the report step&lt;/h2&gt; &lt;blockquote&gt; &lt;p&gt;Add a step that reports success to Pingstack only after the export succeeds, reading the URL from a &lt;code&gt;PINGSTACK_PING_URL&lt;/code&gt; secret. Don’t put the URL in the repository.&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;For GitHub Actions that’s a final step with &lt;code&gt;if: success()&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;      - name: Report success to Pingstack
        if: success()
        run: curl --fail --silent --show-error --max-time 10 --retry 3 &quot;$PINGSTACK_PING_URL&quot; &gt; /dev/null
        env:
          PINGSTACK_PING_URL: ${{ secrets.PINGSTACK_PING_URL }}&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Claude picks the pattern that fits your scheduler. That’s a wrapper script for crontab, a container command for a Kubernetes CronJob, or Laravel’s &lt;code&gt;pingOnSuccess&lt;/code&gt; for the Laravel scheduler. The &lt;a href=&quot;https://docs.pingstack.io/recipes/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;recipes&lt;/a&gt; cover 25 schedulers.&lt;/p&gt; &lt;h2 id=&quot;add-the-secret-yourself&quot;&gt;Add the secret yourself&lt;/h2&gt; &lt;p&gt;Open the new check in Pingstack, copy its ping URL and save it as the &lt;code&gt;PINGSTACK_PING_URL&lt;/code&gt; secret. Do this step yourself! Anyone with the URL can report a run, and a chat transcript is a terrible place to keep a secret. That’s why the connection doesn’t need ping URL access in the first place.&lt;/p&gt; &lt;p&gt;Then run the job once and ask:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Has the nightly export check received a heartbeat? What’s its next deadline?&lt;/p&gt; &lt;/blockquote&gt; &lt;h2 id=&quot;make-it-the-default&quot;&gt;Make it the default&lt;/h2&gt; &lt;p&gt;Add this to your project’s &lt;code&gt;CLAUDE.md&lt;/code&gt;, and Claude proposes a check every time it adds or changes a scheduled job:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;## Monitoring

When you add or change a scheduled job (cron, GitHub Actions schedule,
Kubernetes CronJob, Laravel scheduler task), propose a matching Pingstack
heartbeat check, show it to me before creating it, and add a success-only
report step that reads its URL from a secret. Never ask me to paste a ping
URL into chat.&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;I like this part the most. The check ships in the same pull request as the job, so there’s no follow-up ticket to forget about.&lt;/p&gt; &lt;h2 id=&quot;what-claude-cant-do&quot;&gt;What Claude can’t do&lt;/h2&gt; &lt;p&gt;The MCP connection works with your role’s permissions and your plan’s limits. Claude can create and update checks and dashboards, and read incidents, uptime, run history and latency. It can’t change your plan or buy anything, and it can only pause or delete checks if you turn those permissions on. If you’re at your plan’s check limit, the create fails and Pingstack hands back an upgrade link for a person to open.&lt;/p&gt; &lt;p&gt;I’d still review every write. The prompts above ask Claude to show the configuration first, and it’s a good habit to keep.&lt;/p&gt; &lt;h2 id=&quot;it-also-answers-questions&quot;&gt;It also answers questions&lt;/h2&gt; &lt;p&gt;The same connection reads your monitoring data, so you can ask things like:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Which checks had incidents in the last 7 days, and how long were they down?&lt;/p&gt; &lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;What’s the p95 latency for the API check over the last 30 days?&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;That’s often faster than opening the dashboard, especially when you’re in the middle of fixing the thing that broke.&lt;/p&gt; &lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt; &lt;p&gt;Free covers 15 checks, and MCP is on every plan. &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt;, then follow the &lt;a href=&quot;https://docs.pingstack.io/recipes/claude-code/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Claude Code recipe&lt;/a&gt;. Using Copilot CLI or another MCP client? Check out &lt;a href=&quot;https://docs.pingstack.io/mcp/clients/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;client setup&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>ai</category><category>mcp</category><category>devops</category><category>monitoring</category></item><item><title>How to monitor cron jobs (and know when they silently fail)</title><link>https://pingstack.io/blog/how-to-monitor-cron-jobs/</link><guid isPermaLink="true">https://pingstack.io/blog/how-to-monitor-cron-jobs/</guid><description>Cron runs your job and tells no one when it doesn&apos;t. A heartbeat check is the simplest way to find out, if you set it up so it can&apos;t lie to you.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Cron has one job: start a command at a time. It doesn’t check whether the command worked, and it can’t tell you about runs that never started. Nobody looks for those, so they cost the most. The backup that stopped in March gets noticed in June, when someone needs a restore.&lt;/p&gt; &lt;h2 id=&quot;the-ways-a-cron-job-fails&quot;&gt;The ways a cron job fails&lt;/h2&gt; &lt;p&gt;There are two kinds of failure, and you catch them in different ways.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The job runs and fails.&lt;/strong&gt; The script exits non-zero, a dependency is down, the disk is full or a credential expired. At least something got written somewhere, even if it’s just cron’s mail or a log file.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The job doesn’t run at all.&lt;/strong&gt; Nothing gets written anywhere. The usual causes:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;The crontab was lost when the server was rebuilt, migrated or replaced by a container that doesn’t run cron.&lt;/li&gt; &lt;li&gt;Someone edited the crontab and broke the line, or commented it out “for a minute”.&lt;/li&gt; &lt;li&gt;The machine was off, asleep or out of memory at the scheduled time. Standard cron doesn’t catch up on missed runs.&lt;/li&gt; &lt;li&gt;The scheduler itself stopped: a disabled systemd timer, a suspended Kubernetes CronJob, or a GitHub Actions schedule that GitHub turned off after 60 days without activity in a public repository.&lt;/li&gt; &lt;li&gt;The job is still running from last time, and an overlap lock (correctly) skipped this run. Every run after that is skipped too.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;&lt;strong&gt;And a third, sneakier one: the job runs, exits 0 and does the wrong thing.&lt;/strong&gt; The backup finished in two seconds because the source directory was empty. The sync processed zero rows.&lt;/p&gt; &lt;h2 id=&quot;why-logs-and-mailto-arent-enough&quot;&gt;Why logs and MAILTO aren’t enough&lt;/h2&gt; &lt;p&gt;Cron’s &lt;code&gt;MAILTO&lt;/code&gt; sends you a job’s output. Log alerts fire on error lines. Both only work when the job runs and writes something, so they can’t see the second kind of failure at all. They also fail open. If mail delivery breaks or the log shipper stops, you get silence, and silence looks exactly like success.&lt;/p&gt; &lt;p&gt;What you want is a signal that has to arrive for everything to be fine. That’s a heartbeat (also known as a dead man’s switch).&lt;/p&gt; &lt;h2 id=&quot;how-a-heartbeat-check-works&quot;&gt;How a heartbeat check works&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;You create a check with the job’s schedule and a grace period.&lt;/li&gt; &lt;li&gt;The job calls the check’s private URL when it succeeds.&lt;/li&gt; &lt;li&gt;If the call doesn’t arrive by the next expected time plus the grace period, the check alerts you.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Now silence is an alert. The job not running, the server being gone, the crontab getting deleted and the job failing all look the same from outside: no ping. You find out within one schedule interval.&lt;/p&gt; &lt;h2 id=&quot;set-it-up-so-it-cant-lie-to-you&quot;&gt;Set it up so it can’t lie to you&lt;/h2&gt; &lt;p&gt;I’ve seen heartbeat setups go wrong in the same few places over and over.&lt;/p&gt; &lt;h3 id=&quot;ping-only-after-success&quot;&gt;Ping only after success&lt;/h3&gt; &lt;p&gt;A common first attempt pings no matter what:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;# Wrong: pings even when the backup fails
0 3 * * * /opt/jobs/backup.sh; curl -fsS https://pingstack.io/ping/YOUR_TOKEN&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Use &lt;code&gt;&amp;#x26;&amp;#x26;&lt;/code&gt; so the ping only runs if the job exited 0:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;0 3 * * * /opt/jobs/backup.sh &amp;#x26;&amp;#x26; curl -fsS -m 10 --retry 3 https://pingstack.io/ping/YOUR_TOKEN &gt; /dev/null&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;For anything longer than one command, use a wrapper script with &lt;code&gt;set -euo pipefail&lt;/code&gt;, so a failure anywhere stops the script before the ping. Without &lt;code&gt;pipefail&lt;/code&gt;, &lt;code&gt;pg_dump mydb | gzip &gt; backup.gz&lt;/code&gt; succeeds whenever &lt;code&gt;gzip&lt;/code&gt; does, even if &lt;code&gt;pg_dump&lt;/code&gt; failed. The &lt;a href=&quot;https://docs.pingstack.io/recipes/crontab/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;crontab recipe&lt;/a&gt; has a complete wrapper.&lt;/p&gt; &lt;h3 id=&quot;keep-the-ping-url-out-of-the-crontab&quot;&gt;Keep the ping URL out of the crontab&lt;/h3&gt; &lt;p&gt;Anyone with the URL can report a run, so treat it like a password. Keep it in a file only the job’s user can read, or in your scheduler’s secret store. Keep it out of crontabs, repositories and shell history.&lt;/p&gt; &lt;h3 id=&quot;match-the-schedule-and-the-time-zone&quot;&gt;Match the schedule and the time zone&lt;/h3&gt; &lt;p&gt;Use the same cron expression for the check as for the job, and the same time zone. Cron runs in the server’s local time unless your cron supports and sets &lt;code&gt;CRON_TZ&lt;/code&gt;. Most cloud schedulers, including GitHub Actions and Vercel, run in UTC. A check that expects 03:00 UTC watching a job that runs at 03:00 in New York will alert every night.&lt;/p&gt; &lt;p&gt;Not sure what an expression means? Paste it into the &lt;a href=&quot;https://pingstack.io/tools/cron-expression-explainer/&quot;&gt;cron expression explainer&lt;/a&gt; to see it in plain English with its next 10 run times in any time zone.&lt;/p&gt; &lt;h3 id=&quot;set-a-grace-period-longer-than-the-slowest-normal-run&quot;&gt;Set a grace period longer than the slowest normal run&lt;/h3&gt; &lt;p&gt;The ping arrives when the job finishes. If a backup usually takes 20 minutes but sometimes 50, set the grace period to an hour. Check it again as your data grows. A job that slowly gets longer will eventually start alerting, and that’s a good thing, as long as you know that’s why.&lt;/p&gt; &lt;h3 id=&quot;stop-runs-from-overlapping&quot;&gt;Stop runs from overlapping&lt;/h3&gt; &lt;p&gt;If a run can take longer than the gap between runs, two copies can fight over the same files. Use &lt;code&gt;flock&lt;/code&gt; so a second copy exits instead:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;*/15 * * * * flock -n /tmp/sync.lock /opt/jobs/sync-monitored.sh&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;A skipped run doesn’t ping. So a job that’s stuck holding the lock shows up as a missed heartbeat, and you don’t end up with a pile of stuck processes.&lt;/p&gt; &lt;h3 id=&quot;report-a-number-to-catch-succeeded-but-wrong&quot;&gt;Report a number to catch “succeeded but wrong”&lt;/h3&gt; &lt;p&gt;For the third kind of failure, send a value with the ping and alert when it’s out of range. That could be the backup size, rows synced or queue length:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;SIZE_MB=$(du -sm /backups/latest | cut -f1)
curl -fsS -m 10 --retry 3 --get --data-urlencode &quot;value=$SIZE_MB&quot; \
  &quot;$PINGSTACK_PING_URL&quot; &gt; /dev/null&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;In Pingstack, set warning and critical thresholds on the check, for example warning below 500 MB and critical below 100 MB. A backup that “succeeds” with an empty dump then raises an alert.&lt;/p&gt; &lt;h2 id=&quot;beyond-crontab&quot;&gt;Beyond crontab&lt;/h2&gt; &lt;p&gt;The pattern is the same everywhere: report success at the end, and give the check the scheduler’s schedule and time zone.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;systemd timers:&lt;/strong&gt; add the ping as &lt;code&gt;ExecStartPost=&lt;/code&gt; or in the service’s script. See the &lt;a href=&quot;https://docs.pingstack.io/recipes/systemd-timers/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;systemd recipe&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Kubernetes CronJobs:&lt;/strong&gt; ping from the container after the main command succeeds, and remember a CronJob without &lt;code&gt;timeZone&lt;/code&gt; uses the controller’s time zone. See the &lt;a href=&quot;https://docs.pingstack.io/recipes/kubernetes-cronjob/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Kubernetes recipe&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;GitHub Actions schedules:&lt;/strong&gt; add a final step with &lt;code&gt;if: success()&lt;/code&gt;. Scheduled runs can start late under load, so allow a generous grace period. See the &lt;a href=&quot;https://docs.pingstack.io/recipes/github-actions/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;GitHub Actions recipe&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Framework schedulers:&lt;/strong&gt; Laravel, Rails, Celery beat, Sidekiq and others have hooks for after-success callbacks. The &lt;a href=&quot;https://docs.pingstack.io/recipes/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;recipes index&lt;/a&gt; covers 25 schedulers.&lt;/li&gt; &lt;/ul&gt; &lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt; &lt;p&gt;Pingstack’s heartbeat checks support interval and cron schedules, time zones, grace periods, numeric thresholds and named locations for jobs that run on several servers. Free covers 15 checks. &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add one to the job you’d least like to fail silently. Send alerts to a person who can fix the job (a shared inbox nobody reads doesn’t count).&lt;/p&gt;</content:encoded><category>cron</category><category>devops</category><category>linux</category><category>monitoring</category></item><item><title>Introducing Pingstack</title><link>https://pingstack.io/blog/introducing-pingstack/</link><guid isPermaLink="true">https://pingstack.io/blog/introducing-pingstack/</guid><description>Pingstack tells you when a scheduled job doesn&apos;t run, a site goes down or a certificate is about to expire. Your AI agent can set it up for you.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The failures that hurt most are the quiet ones. A nightly backup stops running weeks before anyone needs it. A certificate renewal fails behind a CDN. A server gets rebuilt and nobody puts the crontab back. Your first alert is a customer.&lt;/p&gt; &lt;p&gt;Jacob and I have run SaaS apps for over 20 years, and we watched them the hard way. We had one service for uptime, another for cron jobs, a dead man’s switch for the scripts nobody remembered, and a calendar reminder for every certificate and domain renewal. Each one had its own alerts, its own bill and its own idea of who should get woken up. Things still slipped through the cracks. Keeping it all wired together was a pain in the ass.&lt;/p&gt; &lt;p&gt;So we built the one tool we actually wanted. It watches the jobs and services you can’t afford to forget.&lt;/p&gt; &lt;h2 id=&quot;what-it-does&quot;&gt;What it does&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;Heartbeat checks for cron jobs and scheduled tasks.&lt;/strong&gt; Each job gets a private ping URL, and the job calls it when it finishes. If that call doesn’t show up on schedule (an interval, or a cron expression in a time zone you pick) plus a grace period, you get an alert. A job can also send a number with the ping, like a backup’s size or a queue’s length, and you’ll hear about it when that number crosses a threshold.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Active checks for everything else.&lt;/strong&gt; Websites and APIs get checked from three probe regions: US East, EU West and AP South. TCP checks make sure a port accepts connections. DNS checks compare a record across the Cloudflare, Google and Quad9 resolvers. SSL certificate and domain checks look up expiry dates every hour and warn you at the number of days you pick.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Alerts that go to the right person.&lt;/strong&gt; Checks alert a notification group, so the whole team doesn’t get pinged for everything. Groups deliver by email, Slack, Microsoft Teams, Discord and webhooks on every plan, through PagerDuty, Jira Service Management and Jira tickets on Team and Business, and by phone call on paid plans (texts are coming soon). Rosters and schedules make sure the person on call hears about it and everyone else gets to sleep.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Status pages and wallboards.&lt;/strong&gt; You can share any dashboard publicly with your name, colors and logo, or put it on a TV as a wallboard.&lt;/p&gt; &lt;h2 id=&quot;your-agent-can-set-it-up&quot;&gt;Your agent can set it up&lt;/h2&gt; &lt;p&gt;A lot of developers now ask an agent to write the job. In my experience the agent almost never adds monitoring unless you ask. Pingstack has a remote MCP server with browser sign-in, so Claude Code, GitHub Copilot and other MCP clients can create checks, add them to dashboards and read incidents, uptime and latency.&lt;/p&gt; &lt;p&gt;Connecting Claude Code takes one command:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;claude mcp add --transport http pingstack https://app.pingstack.io/mcp&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Then ask it to “add a heartbeat check for the nightly export job and a report step that reads the ping URL from a secret”. It stays inside your role’s permissions and your plan’s limits. It can’t buy anything, and it can only pause or delete checks if you turn those permissions on. When you hit a plan limit, it hands back an upgrade link for a person to open. The &lt;a href=&quot;https://docs.pingstack.io/recipes/claude-code/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Claude Code recipe&lt;/a&gt; walks through it, and there are &lt;a href=&quot;https://docs.pingstack.io/recipes/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;recipes for 25 schedulers&lt;/a&gt;, from crontab and systemd timers to Kubernetes, Laravel and GitHub Actions.&lt;/p&gt; &lt;h2 id=&quot;pricing&quot;&gt;Pricing&lt;/h2&gt; &lt;p&gt;Free covers 15 checks, with the API, MCP and every alert integration except SMS, calls, PagerDuty and Jira. Pro is $12 a month for 50 checks. Team is $29 a month for 250 checks and 5 seats. Business is $79 a month for 1,000 checks and 15 seats, then $5 a seat. Pay yearly and you get 2 months free. The full comparison is on the &lt;a href=&quot;https://pingstack.io/pricing/&quot;&gt;pricing page&lt;/a&gt;.&lt;/p&gt; &lt;h2 id=&quot;what-it-doesnt-do&quot;&gt;What it doesn’t do&lt;/h2&gt; &lt;p&gt;Pingstack isn’t an observability suite. There’s no APM, log search or tracing, and active checks can’t reach hosts inside a private network yet. Heartbeats work anywhere with outbound HTTPS, so jobs behind a firewall are fine. If you need SSO or a signed SLA today, we’re not the right fit yet.&lt;/p&gt; &lt;h2 id=&quot;try-it-and-tell-me-whats-missing&quot;&gt;Try it and tell me what’s missing&lt;/h2&gt; &lt;p&gt;&lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add a heartbeat to the job you’d least like to fail silently. Is something confusing, broken or missing? &lt;a href=&quot;https://pingstack.io/contact/&quot;&gt;Tell me&lt;/a&gt;. I read every message, and the &lt;a href=&quot;https://pingstack.io/changelog/&quot;&gt;changelog&lt;/a&gt; shows what changes because of them.&lt;/p&gt;</content:encoded><category>showdev</category><category>monitoring</category><category>devops</category><category>startup</category></item><item><title>Why Let&apos;s Encrypt renewals fail, and how to catch it before users do</title><link>https://pingstack.io/blog/why-lets-encrypt-renewals-fail/</link><guid isPermaLink="true">https://pingstack.io/blog/why-lets-encrypt-renewals-fail/</guid><description>Automatic renewal works until it doesn&apos;t, and Let&apos;s Encrypt no longer emails you first. The usual causes, and the two checks that catch them.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Let’s Encrypt made certificates free and renewal automatic, and most of the time it works so well that nobody thinks about it. Then a browser shows a full-page warning on a Saturday, and it turns out renewal stopped working two months ago. Fun!&lt;/p&gt; &lt;p&gt;Two things make this more likely now than it used to be.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Let’s Encrypt stopped sending expiry reminder emails in June 2025.&lt;/strong&gt; For years those emails were a lot of teams’ only warning. If renewal breaks today, nothing tells you unless you set something up yourself.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Certificate lifetimes are getting shorter.&lt;/strong&gt; Let’s Encrypt certificates last 90 days today. Its default certificates move to 64 days in February 2027 and 45 days in February 2028, and a 45-day option is already available. Shorter lifetimes mean more renewals, which means more chances to fail and less time between a failure and an outage.&lt;/p&gt; &lt;h2 id=&quot;how-renewal-is-supposed-to-work&quot;&gt;How renewal is supposed to work&lt;/h2&gt; &lt;p&gt;A client like Certbot runs on a schedule, usually twice a day from a systemd timer or cron. Each run checks your certificates and renews any that are close to expiry. Certbot renews at 30 days remaining by default. Renewal means proving control of the domain again (an HTTP-01 or DNS-01 challenge), getting a new certificate, writing it to disk, and reloading whatever serves it.&lt;/p&gt; &lt;p&gt;Every one of those steps can fail on its own.&lt;/p&gt; &lt;h2 id=&quot;eight-reasons-renewal-fails&quot;&gt;Eight reasons renewal fails&lt;/h2&gt; &lt;h3 id=&quot;1-the-renewal-job-stopped-running&quot;&gt;1. The renewal job stopped running&lt;/h3&gt; &lt;p&gt;The server was rebuilt and the timer wasn’t enabled. Certbot moved from a distro package to a snap, or the other way, and the old timer points at nothing. The app moved into a container that doesn’t run cron. Nothing errors, because nothing runs.&lt;/p&gt; &lt;h3 id=&quot;2-the-http-01-challenge-cant-reach-the-server&quot;&gt;2. The HTTP-01 challenge can’t reach the server&lt;/h3&gt; &lt;p&gt;HTTP-01 needs Let’s Encrypt to fetch a file from your domain over port 80. It breaks when port 80 is closed in a firewall or security group, when a CDN or WAF blocks or caches the challenge path, when a redirect sends the request somewhere that doesn’t have the file, or when the site moved to a new host but renewal still runs on the old one.&lt;/p&gt; &lt;h3 id=&quot;3-broken-ipv6&quot;&gt;3. Broken IPv6&lt;/h3&gt; &lt;p&gt;If your domain has an AAAA record, Let’s Encrypt will try IPv6. A stale or misconfigured AAAA record fails validation even though the site works fine for everyone on IPv4.&lt;/p&gt; &lt;h3 id=&quot;4-dns-01-credentials-expired&quot;&gt;4. DNS-01 credentials expired&lt;/h3&gt; &lt;p&gt;Wildcard certificates need DNS-01, which means the client holds an API token for your DNS provider. Tokens get rotated, expire, lose permissions in a cleanup, or belong to someone who left. The next renewal fails.&lt;/p&gt; &lt;h3 id=&quot;5-a-caa-record-doesnt-allow-lets-encrypt&quot;&gt;5. A CAA record doesn’t allow Let’s Encrypt&lt;/h3&gt; &lt;p&gt;CAA records list which certificate authorities may issue for a domain. If someone adds one for another CA and leaves out &lt;code&gt;letsencrypt.org&lt;/code&gt;, issuance stops for that domain and its subdomains.&lt;/p&gt; &lt;h3 id=&quot;6-the-certificate-renewed-but-the-server-still-serves-the-old-one&quot;&gt;6. The certificate renewed, but the server still serves the old one&lt;/h3&gt; &lt;p&gt;I’d say this is the most common one, and it’s the hardest to spot. The new certificate is on disk and Certbot reports success. Meanwhile Nginx, HAProxy or a Java app keeps serving the old certificate from memory until something reloads it. Without a deploy hook, nothing does.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;certbot renew --deploy-hook &quot;systemctl reload nginx&quot;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Or put an executable script in &lt;code&gt;/etc/letsencrypt/renewal-hooks/deploy/&lt;/code&gt;.&lt;/p&gt; &lt;h3 id=&quot;7-the-certificate-was-copied-somewhere-renewal-cant-reach&quot;&gt;7. The certificate was copied somewhere renewal can’t reach&lt;/h3&gt; &lt;p&gt;The same certificate was copied by hand to a load balancer, a mail server, an appliance or a second web server. Renewal updates the original. The copies expire on schedule.&lt;/p&gt; &lt;h3 id=&quot;8-rate-limits-after-repeated-failures&quot;&gt;8. Rate limits after repeated failures&lt;/h3&gt; &lt;p&gt;A broken setup that keeps retrying can hit Let’s Encrypt’s rate limits, and then the limits block your fix until the window passes. Test changes against the staging environment first (&lt;code&gt;--dry-run&lt;/code&gt; with Certbot).&lt;/p&gt; &lt;h2 id=&quot;two-checks-that-catch-all-eight&quot;&gt;Two checks that catch all eight&lt;/h2&gt; &lt;p&gt;You don’t have to guess which of these will hit you. Two checks cover every one of them.&lt;/p&gt; &lt;h3 id=&quot;watch-the-certificate-the-server-actually-serves&quot;&gt;Watch the certificate the server actually serves&lt;/h3&gt; &lt;p&gt;Check the live certificate on the hostname from outside, the way a browser sees it, and alert when its expiry gets close. This catches every failure above, including the old certificate still in memory (6) and the forgotten copy (7), because it doesn’t care what’s on disk.&lt;/p&gt; &lt;p&gt;Pick thresholds that fit your renewal schedule. With 90-day certificates renewed at 30 days remaining, a renewal that’s working never lets the served certificate drop below 30 days. So:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Warning at 21 days.&lt;/strong&gt; Renewal has been failing for over a week. Time to look, with three weeks to fix it.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Critical at 7 days.&lt;/strong&gt; Drop everything.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;As lifetimes get shorter, renewal happens earlier, so you’ll want to move these thresholds down to match.&lt;/p&gt; &lt;p&gt;Check every hostname that serves a certificate, including &lt;code&gt;api.&lt;/code&gt;, &lt;code&gt;mail.&lt;/code&gt;, the status page domain and anything behind a different load balancer. The main site is just the start.&lt;/p&gt; &lt;h3 id=&quot;watch-the-renewal-job-itself&quot;&gt;Watch the renewal job itself&lt;/h3&gt; &lt;p&gt;A served-certificate check tells you a few weeks ahead. A heartbeat on the renewal job tells you the same day. Add a ping that only runs when renewal succeeds:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;#!/usr/bin/env bash
set -euo pipefail
certbot renew --quiet --deploy-hook &quot;systemctl reload nginx&quot;
curl --fail --silent --show-error --max-time 10 --retry 3 &quot;$PINGSTACK_PING_URL&quot; &gt; /dev/null&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;code&gt;certbot renew&lt;/code&gt; exits 0 when nothing needs renewing, so this pings on every healthy run. If the timer stops (1), or a renewal attempt fails (2 to 5, 8), the ping stops and the heartbeat check alerts after its grace period. Set the check’s schedule to match the timer, for example every 12 hours with a grace period of a few hours.&lt;/p&gt; &lt;h2 id=&quot;setting-it-up-in-pingstack&quot;&gt;Setting it up in Pingstack&lt;/h2&gt; &lt;p&gt;Pingstack’s &lt;a href=&quot;https://docs.pingstack.io/monitoring/ssl-certificate/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;SSL certificate checks&lt;/a&gt; look up the certificate on a hostname every hour and use the warning and critical days you choose. &lt;a href=&quot;https://docs.pingstack.io/monitoring/heartbeat/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Heartbeat checks&lt;/a&gt; cover the renewal job; the &lt;a href=&quot;https://docs.pingstack.io/recipes/systemd-timers/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;systemd timer recipe&lt;/a&gt; and &lt;a href=&quot;https://docs.pingstack.io/recipes/crontab/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;crontab recipe&lt;/a&gt; show how to wire it up. Add a &lt;a href=&quot;https://docs.pingstack.io/monitoring/domain/&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;domain expiry check&lt;/a&gt; while you’re there, since an expired domain takes the certificate down with it.&lt;/p&gt; &lt;p&gt;Free covers 15 checks. &lt;a href=&quot;https://app.pingstack.io/signup&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot;&gt;Start free&lt;/a&gt; and add the hostnames you’d least like to see a browser warning on.&lt;/p&gt;</content:encoded><category>ssl</category><category>security</category><category>devops</category><category>monitoring</category></item></channel></rss>