服务器监控
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user