监控优化

This commit is contained in:
liuwei
2025-05-27 18:26:53 +08:00
parent d326467a04
commit 25e7b444fe
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import requests
from loguru import logger
class GlancesMonitor:
def __init__(self, email_sender, host='192.168.2.170', port=61208,
cpu_threshold=80.0, load_threshold=None, io_threshold=80.0,

View File

@@ -76,7 +76,7 @@ def main():
port=config.glances.get("port"),
cpu_threshold=80.0,
load_threshold=None, # 自动设为 CPU 核心数 * 2
io_threshold=80.0,
io_threshold=100.0,
disk_usage_threshold=60.0,
handle_threshold=20000,
recipient=config.email.get("alert_recipient")