tool_heartbeat¶
tool_heartbeat (Catalyst IT) is a mature plugin for monitoring Moodle with Nagios-style tools. Both plugins can be installed together.
Topic |
tool_healthcheck |
tool_heartbeat |
|---|---|---|
Main use |
Kubernetes liveness/readiness probes and load balancer checks |
Monitoring systems (Nagios, Icinga and similar) and uptime checks |
Liveness without the database |
Yes ( |
See its documentation |
Authentication |
Bearer token in |
See its documentation |
Response |
JSON with the status and time of each check; HTTP 200/503 |
Plain text oriented to monitoring tools |
Cron and task checks |
Not here: use |
Yes, it is one of its main features |
Checks of other plugins |
Hook |
See its documentation |
When to use each¶
Use
tool_healthcheckto decide whether a node should receive traffic or be restarted: fast, authenticated, without side effects, with liveness separated from readiness.Use
tool_heartbeatwhen an existing Nagios/Icinga setup monitors the site, especially for cron and task alerts.Using both is fine: the probes of the orchestrator call
tool_healthcheckand the monitoring system callstool_heartbeat.