更新探针为Rust_ServerStatus

main
AhFei 2023-06-19 00:32:28 +08:00
parent 5cf1105a68
commit 04cd7c7c42
1 changed files with 1 additions and 8 deletions

View File

@ -50,14 +50,7 @@ echo "step 2: localize has finished"
# step 3: monitor
mkdir -p /home/${nml_user_home}/myserve/serverstatus && wget --no-check-certificate -qO /home/${nml_user_home}/myserve/serverstatus/client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py'
chown -R ${nml_user_name}:${nml_user_name} /home/${nml_user_home}/myserve
nohup python3 /home/${nml_user_home}/myserve/serverstatus/client-linux.py SERVER=serverstatus.ahfei.blog USER=ahfei-${ss_user_name} PASSWORD=A23456.. >/dev/null 2>&1 &
echo "@reboot python3 /home/${nml_user_home}/myserve/serverstatus/client-linux.py SERVER=serverstatus.ahfei.blog USER=ahfei-${ss_user_name} PASSWORD=A23456.. >/dev/null 2>&1" >> /var/spool/cron/crontabs/${nml_user_name}
chown -R ${nml_user_name}:${nml_user_name} /var/spool/cron/crontabs/${nml_user_name}
chmod 600 /var/spool/cron/crontabs/${nml_user_name}
bash <(wget --no-check-certificate -qO- 'https://git.ahfei.blog/ahfei/Rust_ServerStatus/raw/branch/main/one-touch.sh') x86_64 "/home/${nml_user_home}/myserve/serverstatus" "A23456.." "ahfei-${ss_user_name}" "http://serverstatus.ahfei.blog:8080/report" ${nml_user_name}
echo "step 3: monitor has finished"