服务器监控

This commit is contained in:
liuwei
2025-05-27 09:10:41 +08:00
parent 2f61231eb4
commit 2054b3979c
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
<span>服务器监控</span> <span>服务器监控</span>
</div> </div>
<div class="iframe-container"> <div class="iframe-container">
<iframe src="http://localhost:61208/" frameborder="0" width="100%" height="800px"></iframe> <iframe src="http://192.168.2.170:61208/" frameborder="0" width="100%" height="800px"></iframe>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>

View File

@@ -73,7 +73,7 @@ def main():
# 初始化 Glances 监控 # 初始化 Glances 监控
monitor = GlancesMonitor( monitor = GlancesMonitor(
email_sender=robot.email_sender, email_sender=robot.email_sender,
host='localhost', host='0.0.0.0',
port=61208, port=61208,
cpu_threshold=80.0, cpu_threshold=80.0,
load_threshold=None, # 自动设为 CPU 核心数 * 2 load_threshold=None, # 自动设为 CPU 核心数 * 2