Email Heartbeat Example
Besides HTTP/CLI pings, ilert heartbeats can also be triggered by email. Each heartbeat monitor provides a unique Integration Email address.
If your system sends an email to this address within the configured interval, the heartbeat stays green. If no email arrives in time, the monitor becomes overdue and triggers an alert.
This option is intended for environments where outgoing HTTP(S) requests are not possible (for example due to firewall or network restrictions), but the monitored system can still send emails via SMTP.
To use email heartbeats, simply send an email periodically to the Integration Email address of the heartbeat monitor. The subject and body are optional — only successful delivery matters.
Example: send a heartbeat email with mail
echo "heartbeat ok" | mail -s "ilert heartbeat" <INTEGRATION_EMAIL>Example: send with sendmail
printf "Subject: ilert heartbeat\n\nheartbeat ok\n" | sendmail <INTEGRATION_EMAIL>Example: send with curl to SMTP server (if mail tools are not installed)
curl --url "smtp://your.smtp.server:25" \
--mail-from "[email protected]" \
--mail-rcpt "<INTEGRATION_EMAIL>" \
--upload-file - <<EOF
Subject: ilert heartbeat
heartbeat ok
EOFLast updated
Was this helpful?