You hear about problems before your customers do
One alert hub on your own server
Everything reports to n8n, which decides what is worth a message and sends it to Telegram.
Checks, hooks and workflows
Excerpts from the monitoring running on a live Odoo server.
-
Create the Telegram bot
In Telegram, @BotFather creates a private bot and gives a token. The token is stored encrypted in n8n; you start a chat with the bot (or add it to a team group) so it may write to you.
-
Check the site the way a visitor does
Odoo answers a health URL only when the web server and the database both work. Two failed checks in a row count as down, so a single slow answer does not wake anyone.
Health URL checked every 2 minutescurl -s "https://erp.example.com/web/health?db_server_status=1" {"status": "pass", "db_server_status": true}n8n Code node: down after 2 failures, up on the first successconst data = $getWorkflowStaticData('global'); // remembered between runs data.sites = data.sites || {}; const s = data.sites[name] || (data.sites[name] = { up: true, fails: 0 }); if (ok) { if (!s.up) out.push({ json: { text: `π’ ${name} is back up\nDown for ${mins(Date.now() - s.since)}` } }); Object.assign(s, { up: true, fails: 0, since: null }); } else if (s.up && ++s.fails >= 2) { Object.assign(s, { up: false, since: Date.now() - 2 * 120000 }); out.push({ json: { text: `π΄ ${name} is DOWN\n${why}` } }); }
The site monitor in n8n: every 2 minutes, check each site, compare with the last state, message only on a change. -
Report every SSH login
A small hook in the server's login system posts each new SSH session to n8n. It runs in the background, so a stopped n8n can never block a login.
/odoo/scripts/ssh-login-notify.sh[[ "${PAM_TYPE:-}" == open_session ]] || exit 0 export U="${PAM_USER:-?}" IP="${PAM_RHOST:-?}" H="$(hostname)" ( python3 -c 'import json, os; print(json.dumps({"user": os.environ["U"], "ip": os.environ["IP"], "host": os.environ["H"]}))' \ | /odoo/scripts/n8n-notify.sh ssh ) </dev/null >/dev/null 2>&1 & exit 0/etc/pam.d/sshd (last line)session optional pam_exec.so quiet /odoo/scripts/ssh-login-notify.sh -
Send backup results and Odoo events
The backup wrapper posts its result; a workflow reads new security events from Odoo through its API every 5 minutes; the website form posts each new request.
-
Watch the watcher
An error workflow reports any failed alert workflow, with the step that failed and a link to its log in n8n.

All alert workflows in one place, each switched on and visible.
Calm, useful alerts
No dashboard to keep open; messages arrive where you already are.
Down and up are sent once; repeated logins from the same place are grouped.
Each message says what happened and links to where to look.
Runs on your server; no monitoring subscription.
New checks are added as workflows, without new software.
Server alerts to IT, form requests to sales, each in their own chat.
Self-hosted, no monthly fees
The alerts run on n8n, installed on your own server behind HTTPS. Your data stays with you, there is no per-alert price, and new checks can be added later. Alerts go to Telegram; email or Slack are also possible.
What if the whole server goes down?
A monitor on the same server cannot report its own death. For that case a free external uptime check is added as well, which emails or messages you independently.
Can several people receive the alerts?
Yes. Add the bot to a Telegram group, or send different alerts to different people.
