This commit is contained in:
2025-07-12 18:10:45 -05:00
parent 657c0c595e
commit 2ab0bf4338
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -75,13 +75,15 @@ RUN(){
fi
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}"