update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS=2.5.8-07062025
|
||||
VERS=2.5.9-07122025
|
||||
|
||||
DS_FOLDER=/opt/idssys/dsmon
|
||||
DS_CRONTAB_FOLDER=/opt/idssys/nodemgmt/crontabs
|
||||
|
||||
4
dsmon.sh
4
dsmon.sh
@@ -76,12 +76,14 @@ RUN(){
|
||||
fi
|
||||
done
|
||||
|
||||
SERVEROS=$(curl -sL https://go.scity.us/get-os | bash)
|
||||
|
||||
thresholdlog=()
|
||||
for KEY in "${!THRESHOLD[@]}"; do
|
||||
thresholdlog+=("${KEY}:${THRESHOLD[$KEY]}")
|
||||
done
|
||||
|
||||
QRY="USE servermonitor; UPDATE hosts SET ip='${SERVERIPS// /}',hostname='${SERVERHOSTNAME}',hostname_full='${SERVERHOSTNAME_FULL}',limits='${thresholdlog[@]}' WHERE id='${SERVERMON_ID}';"
|
||||
QRY="USE servermonitor; UPDATE hosts SET ip='${SERVERIPS// /}',hostname='${SERVERHOSTNAME}',hostname_full='${SERVERHOSTNAME_FULL}',os='${SERVEROS}',limits='${thresholdlog[@]}' WHERE id='${SERVERMON_ID}';"
|
||||
MYSQL_PWD="sysmoninsert" ${mysqlcmd} ${mysql_conn} -u sysmoninsert -e "${QRY}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user