Discourse-health-check: one-shot CLI overview of your Discourse server

A small bash script I created for my own forum that gives a one-shot health overview of Discourse server. Sharing for anyone who finds this type of quick overview useful.

Checks system resources: Docker, Discourse services (Postgres, Redis, Nginx, Unicorn, Sidekiq), backup freshness, TLS, and security basics. Ends with a pass / warning / critical summary and an exit code suitable for cron.

Install

curl -O https://raw.githubusercontent.com/haydenjames/discourse-health-check/main/discourse-health-check.sh
chmod +x discourse-health-check.sh
sudo ./discourse-health-check.sh

Source, options, and a cron example in the README:

5 Likes

Discourse doesn’t run Puma.

3 Likes

Unicorn. Fixed thank you.

1 Like

Pitchfork nowadays!!