Add selftest scheduler, queue history, and OpenWrt signal stats
This commit is contained in:
@@ -56,6 +56,9 @@ HELP_PAGES = [
|
||||
"🛠 **Admin & Deploy**\n\n"
|
||||
"Config: `/config_check`, файл `config.yaml` (см. config.example.yaml).\n"
|
||||
"Deploy: `deploy.sh` (ssh 10.10.10.10:1090 → git pull → systemctl restart tg-bot).\n"
|
||||
"Incidents summary: `/incidents_summary`.\n"
|
||||
"Disk snapshot: `/disk_snapshot`.\n"
|
||||
"BotFather list: `/botfather_list`.\n"
|
||||
"Безопасность: `safety.dry_run: true` блокирует опасные действия.\n"
|
||||
"OpenWrt: кнопка в System → Info.",
|
||||
),
|
||||
@@ -110,3 +113,33 @@ async def help_cb(cb: CallbackQuery):
|
||||
parse_mode="Markdown",
|
||||
)
|
||||
await cb.answer()
|
||||
|
||||
|
||||
BOTFATHER_LIST = """\
|
||||
help - Show help pages
|
||||
status_short - Compact host status
|
||||
health_short - Compact health report
|
||||
selftest - Health + restic snapshot probe
|
||||
alerts - Manage alerts
|
||||
alerts_list - List active mutes
|
||||
alerts_recent - Show recent incidents (24h)
|
||||
alerts_mute_load - Mute load alerts for 60m
|
||||
backup_run - Run backup (queued)
|
||||
backup_history - Show backup log tail
|
||||
docker_status - Docker summary
|
||||
docker_health - Docker inspect/health by alias
|
||||
openwrt - Full OpenWrt status
|
||||
openwrt_wan - OpenWrt WAN only
|
||||
openwrt_clients - OpenWrt wifi clients
|
||||
openwrt_leases - OpenWrt DHCP leases
|
||||
incidents_summary - Incidents counters (24h/7d)
|
||||
disk_snapshot - Disk usage snapshot
|
||||
config_check - Validate config
|
||||
"""
|
||||
|
||||
|
||||
@dp.message(F.text == "/botfather_list")
|
||||
async def botfather_list(msg: Message):
|
||||
if not is_admin_msg(msg):
|
||||
return
|
||||
await msg.answer(f"Commands for BotFather:\n```\n{BOTFATHER_LIST}\n```", parse_mode="Markdown")
|
||||
|
||||
Reference in New Issue
Block a user