diff --git a/defaults.inc b/defaults.inc index b259b9f..2a063f0 100755 --- a/defaults.inc +++ b/defaults.inc @@ -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 diff --git a/dsmon.sh b/dsmon.sh index f074645..946305b 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -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)}')