服务器巡检及邮件告警脚本
系统资源占用情况获取脚本为python开发:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import psutil
import sys
import os
import requests
class UtilClass:
def __init__(self, argv=None):
self.args = argv
def prt(self):
tr