From 69b37ff5687ff5c01080940069c0845e324b6e2c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 1 Jan 2024 13:45:51 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- dsmon.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index f7ba6bc..6a84920 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS=2.3.3-12032023 +VERS=2.3.4-01012024 DS_FOLDER=/opt/idssys/dsmon DS_CRONTAB_FOLDER=/opt/idssys/nodemgmt/crontabs diff --git a/dsmon.sh b/dsmon.sh index 2731da8..f850903 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -60,7 +60,7 @@ RUN(){ # echo $QRY MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -u sysmoninsert -e "${QRY}" - elif [ "${1}" = "sys" ]; then + elif [ "${1}" = "sysXXX" ]; 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)}')