TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: My weekend project – simple cron monitoring

29 点作者 augustflanagan将近 11 年前

11 条评论

encoderer将近 11 年前
Hey HN! My friend augustflanagan and I both had a need for some really simple cron monitoring. A way to monitor our critical jobs without configuring Nagios first. We wanted a simple SAAS monitoring solution that we could trust to alert us right away when a job isn&#x27;t running on schedule. <p>We mentioned this to a couple of friends who said they needed the same simple monitoring. Having people tell you they need something is a great motivator, so we built cronitor in a couple of weekends and are putting it out there. We&#x27;d love feedback and suggestions on how to make it better. Thanks!
评论 #7917685 未加载
评论 #7917730 未加载
vijayaggarwal将近 11 年前
Writing a fail-safe cron is an incredibly hard job as crons are infamous for failing rather silently. The cron script writer must take a very pessimist approach and handle every possibility of error. Even then, some scenarios are easy to miss. Following are some cases I have come across often:<p>1. <i>crash</i> - any runtime error that causes your script to stop execution abruptly.<p>2. <i>un-handled, non-crashing error</i> - db connection failure, remote api failure, file not found, etc. The script may continue execution, the results may not be logically correct.<p>3. <i>concurrent execution</i> - What if an instance of cron is not over by the time the next instance should start? crontab will simply start the next instance.<p>4. <i>internet connection error</i> - even the notification mechanism will fail if it depends on an active internet connection.<p>Your service is a very valuable one, and a challenging one too I believe. You can do a lot many things in cron monitoring and reporting.
eam将近 11 年前
I really liked the plan names especially the top plan, <i>NSA (Monitor Everything)</i>. Got a good laugh out of it. :)
评论 #7917728 未加载
gmjosack将近 11 年前
One way I&#x27;ve solved this in the past which is a bit hacky but novel and fun was to set the MAILTO to some e-mail address like cron-error@ and use the local postfix process to map that e-mail to a command via transports. This allows us to inject cron errors into our exception tracking system and alert minimizing the amount of cron storming to our inboxes.
tyrionaura将近 11 年前
Good to have the &quot;one is always free&quot; plan, will give it a try.
cheeken将近 11 年前
Neat little service! I&#x27;d be careful about &amp;&amp;&#x27;ing commands together (as in the timing example) should one of the pre-command curl calls fail. It would be a serious kick in the pants if the service to monitor the health of your cron jobs was (indirectly) responsible for preventing them from running.
评论 #7919795 未加载
crazyiiiiii将近 11 年前
Any chance of selling a version I can host myself? Or, even better, making it open source? Congrats on shipping tho!
评论 #7918025 未加载
yansuck将近 11 年前
I really doubt this is just a weekend project. I am sorry but titles like this has been getting on my nerves.
评论 #7918902 未加载
评论 #7918775 未加载
0x420将近 11 年前
Looks cool. The &quot;Pick this Plan&quot; buttons at the bottom don&#x27;t appear to be working, though. I&#x27;m not sure if you&#x27;re aware of that.
评论 #7917713 未加载
acron0将近 11 年前
Awesome idea but the price outweighs the pain factor, for me.
评论 #7917709 未加载
评论 #7917718 未加载
评论 #7917703 未加载
spncr2将近 11 年前
I&#x27;ve gotta hand it to <a href="https://deadmanssnitch.com" rel="nofollow">https:&#x2F;&#x2F;deadmanssnitch.com</a>. Free referrals! :)