You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
481 B
29 lines
481 B
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"remoteMonitor/thirdpart"
|
|
"remoteMonitor/util"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println("获取主机信息")
|
|
util.GetHostInfo()
|
|
fmt.Println("获取CPU信息")
|
|
|
|
util.GetCpuInfo()
|
|
fmt.Println("获取内存信息")
|
|
|
|
util.GetMemInfo()
|
|
fmt.Println("获取系统负载")
|
|
|
|
util.GetSysLoad()
|
|
fmt.Println("获取硬盘存储信息")
|
|
util.GetDiskInfo()
|
|
|
|
if util.IsAlert {
|
|
thirdpart.SendWechat(util.MSG)
|
|
//thirdpart.SendToPhone("13152148384", "9999")
|
|
}
|
|
}
|