Check that a site is working
Monitor the user-facing service as well as its processes.
Access needed: Monitoring access; server access for node checks.
- From outside the server, request a known public page and check its status and expected content.
- Check certificate validity, redirects, and response time for the public hostname.
- On the server, use
bin/zotonic statusto verify the intended node and site states. - Check error logs, disk capacity, database availability, and backup age.
- Use a dedicated account for a safe representative authenticated check when required.
- Monitor important asynchronous work, such as email and media processing, separately.
Alert on user-visible failure, approaching capacity limits, stale backups, and repeated processing failures. Set thresholds from normal operation and name an owner for each alert; do not create alerts nobody can act on.
A successful HTTP response from a fallback or status page can hide a failed site. Match expected content or a site-specific health response, not just status 200. Keep monitoring credentials out of public check URLs.