-
Notifications
You must be signed in to change notification settings - Fork 2
Telegram Bot
Yousef Ghadiri edited this page May 28, 2026
·
2 revisions
Knightwatch includes a Telegram bot for remote monitoring and alerting without opening the web dashboard.
Store your bot token in persistent config:
knightwatch config set telegram-token <YOUR_BOT_TOKEN>Clear it if needed:
knightwatch config set telegram-token --clearVerify it was saved:
knightwatch config get telegram-tokenPass the --telegram flag at runtime:
knightwatch --pid <PID> --telegramThe bot sends push notifications for all process events when tracking at least one process:
- π’ Initial snapshot β root and children when tracking begins
- π Children appeared β new child processes detected
- π΄ Children exited β specific child PIDs exited
- β All children gone β all child processes have exited
- π Root process exited β the root process itself has stopped
When --system-resources is also enabled:
β οΈ CPU threshold exceeded β aggregate CPU usage above 90%β οΈ Memory threshold exceeded β memory usage above 90%β οΈ Disk threshold exceeded β a mount point usage above 90%- π Battery low β charge below 15% while discharging
- π Battery state changed β plugged in, unplugged, or full
When --systemd is also enabled:
- π΄ Unit failed β a unit transitioned to
failed - π’ Unit recovered β a previously failed unit is active again
- π Unit appeared β a new unit became visible to systemd
- π¨ Unit disappeared β a tracked unit is no longer present