update
This commit is contained in:
@@ -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
|
||||
|
||||
2
dsmon.sh
2
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)}')
|
||||
|
||||
Reference in New Issue
Block a user