Back to Home

Free Bash Health Check Generator

Generate production-ready monitoring scripts in seconds. No agents to install—just pure Bash and CronRabbit.

System Prerequisites

Required Tools:

  • bc - For mathematical comparisons (CPU load)
  • curl - For pinging CronRabbit API
  • procps (pgrep) - For process monitoring

Installation Commands:

Ubuntu / Debian / Mint

sudo apt-get update && sudo apt-get install bc curl procps

CentOS / RHEL / Fedora

sudo yum install bc curl procps-ng

Alpine Linux

apk add bc curl procps

Configuration

health_check.sh

How to use:

  1. Save as health_check.sh
  2. Run chmod +x health_check.sh
  3. Add to crontab: * * * * * /path/to/health_check.sh

Zero Dependencies

Pure Bash scripts that work on almost any Linux system without installing extra tools.

CronRabbit Integration

Automatically pings CronRabbit on success and sends failure reasons on error.

Customizable

Easily adjust thresholds for disk, CPU, and memory to match your machine's profile.

Why use a Health Check Script?

Standard monitoring tools can be overkill for small servers or specific scripts. A simple bash script combined with a heartbeat is the most reliable "dead man's switch" for your infra.

  • Zero Footprint: Runs using native Linux tools like `curl`, `df`, and `free`. No heavy agents required.
  • Resource Aware: Catch disk space issues or memory leaks before they crash your application.
  • Log Monitoring: Use regex patterns to scan your logs for critical errors and fail fast.
  • Instant Alerts: Integrates directly with CronRabbit to notify your team via Slack, Discord, or Email.

Never miss a heartbeat

Once your script is running, CronRabbit will keep a constant watch. If your server goes quiet or the health check fails, you'll be the first to know.