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.
dustoair 185d662d8c
oracle arm cpu loop 被误认为分区
3 years ago
thirdpart open src 3 years ago
util oracle arm cpu loop 被误认为分区 3 years ago
.gitignore open src 3 years ago
README.MD open src 3 years ago
go.mod open src 3 years ago
main.go open src 3 years ago

README.MD

探测url的ssl证书过期时间 并发微信告警

build on arm64

cd /root
rm -rf remoteMonitor
git clone https://git.sre.ink/go/remoteMonitor.git
cd remoteMonitor
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on  go get github.com/shirou/gopsutil/v3/cpu@v3.21.12
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on  go get github.com/shirou/gopsutil/v3/disk@v3.21.12
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on  go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on  go build -v -a -o rtm main.go
chmod +x rtm
rm -rf /usr/bin/rtm
mv rtm /usr/bin/
rtm

build

cd /root
rm -rf remoteMonitor
git clone https://git.sre.ink/go/remoteMonitor.git
cd remoteMonitor
GOPROXY="https://goproxy.cn,direct" go get github.com/shirou/gopsutil/v3/cpu@v3.21.12
GOPROXY="https://goproxy.cn,direct" go get github.com/shirou/gopsutil/v3/disk@v3.21.12
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o rtm main.go
chmod +x rtm
rm -rf /usr/bin/rtm
mv rtm /usr/bin/

crontab

*/1 * * * * /usr/bin/rtm

usage

chmod +x /usr/bin/rtm
rtm

build for arm64

CGO_ENABLED=0 GOARM=7 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o certmonitor main.go