-
Notifications
You must be signed in to change notification settings - Fork 2
Telegram Bot
Yousef Ghadiri edited this page Jun 14, 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 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 --docker is enabled:
- π³ Docker started β initial container list and count on startup
- π Containers appeared β new containers detected
- π» Containers disappeared β containers no longer visible to the tracker
- π Container status changed β previous and current status for a container
- π₯ Container health changed β previous and current health state for a container
- π₯ Container OOM killed β a container was terminated by the out-of-memory killer
- β / β Container action result β success or failure of a command (stop, kill, start, restart, pause, unpause)
When --systemd is 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