nathancrjackson/uptime-monitor-bash ? reverse-engineered prompt
Reverse engineered prompt
Build me a bash script I can run from cron to keep an eye on websites and anything else that answers a ping.
I want to be able to check one URL or a list of URLs, either passed in directly or loaded from a file, and it should support http, https, and ping targets. It should watch for a few consecutive successes or failures before changing the status, then send a notification to Discord or Teams through a webhook when something changes. If there are multiple URLs, it should handle them in parallel by running separate checks at the same time. Add simple command line options for things like skipping the internet check, changing the success or failure threshold, and basic help text. Make it work cleanly as a cronjob, and keep the script easy to configure with webhook URLs and an output folder. If you need to look up current bash or webhook details online, do that.
Are you gonna build this?
make sure you review the code using coderabbit