This commit is contained in:
Mike McFetridge
2026-07-20 09:23:17 -04:00
parent c1315882da
commit 72272e4006
3179 changed files with 562960 additions and 14 deletions
@@ -0,0 +1,83 @@
{
"slug": "server-disk-usage-monitor",
"kind": "python",
"metadata": {
"name": "Server Disk Usage Monitor",
"description": "Standalone Python monitor that checks local disk usage for one path and sends a Discord warning when usage reaches a configurable threshold.",
"tags": [
"disk",
"monitoring",
"discord",
"python"
],
"icon": {
"provider": "simple-icons",
"id": "python",
"color": "emerald"
},
"draft": false,
"version": {
"name": "1.0.0",
"source_dep_name": "manual/server-disk-usage-monitor"
}
},
"variables": [
{
"title": "Monitor",
"name": "monitor",
"items": [
{
"name": "monitor_path",
"type": "str",
"title": "Monitor Path",
"required": true,
"default": "/",
"description": "Local path passed to `df -P`.",
"config": {
"placeholder": "/"
}
}
]
},
{
"title": "Alerting",
"name": "alerting",
"items": [
{
"name": "warning_percent",
"type": "int",
"title": "Warning Threshold Percent",
"required": true,
"default": 80,
"description": "Send a warning when disk usage reaches or exceeds this percentage.",
"config": {
"slider": true,
"min": 50,
"max": 100,
"step": 1,
"placeholder": "80"
}
},
{
"name": "discord_webhook_url",
"type": "secret",
"title": "Discord Webhook URL",
"required": false,
"default": "",
"description": "Optional Discord webhook endpoint for warning notifications."
},
{
"name": "discord_username",
"type": "str",
"title": "Discord Username",
"required": false,
"default": "Disk Monitor",
"description": "Sender name used for Discord webhook messages.",
"config": {
"placeholder": "Disk Monitor"
}
}
]
}
]
}