This commit is contained in:
2025-02-28 23:18:03 -06:00
parent 9a7f45f55d
commit 3da99ca37e
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS=2.3.38-02222025
VERS=2.3.39-02282025
DS_FOLDER=/opt/idssys/dsmon
DS_CRONTAB_FOLDER=/opt/idssys/nodemgmt/crontabs

View File

@@ -52,7 +52,7 @@ RUN(){
# echo $QRY
MYSQL_PWD="sysmoninsert" mariadb --skip-ssl -h ${mysqlip} -P 3307 -u sysmoninsert -e "${QRY}"
elif [ "${1}" = "sysXXX" ]; then
elif [ "${1}" = "sys" ]; then
MEMORY=$(free -m | awk 'NR==2{printf "%.2f\t\t", $3*100/$2 }')
CPU=$(top -bn1 | grep load | awk '{printf "%.2f\t\t\n", $(NF-2)}')