From 5db411f409e024aebdb7820a9aa38db63353ab78 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Apr 2022 19:22:21 -0500 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-dsmon.sh b/install-dsmon.sh index b475d94..f3f692a 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -145,8 +145,8 @@ if [ "${SET_SERVERMONID}" = "new" ]; then for KEY in "${!THRESHOLD[@]}"; do thresholdlog+=("${KEY}:${THRESHOLD[$KEY]}") done - - QRY="USE servermonitor; INSERT INTO hosts (\`host\`,\`hostname\`,\`ip\`) VALUES ('${ADD_SERVERNAME}','${ADD_SERVERHOSTNAME}','${SERVERIPS// /}');" + + QRY="USE servermonitor; INSERT INTO hosts (\`host\`,\`hostname\`,\`ip\`,\`limits\`) VALUES ('${ADD_SERVERNAME}','${ADD_SERVERHOSTNAME}','${SERVERIPS// /}','${thresholdlog[@]}');" mysql -h mysqldb.scity.us -P 6033 --user=sysmoninsert --password=sysmoninsert -e "${QRY}" QRY="USE servermonitor; SELECT id FROM hosts WHERE host='${ADD_SERVERNAME}';" SET_SERVERMONID=`mysql -h mysqldb.scity.us -P 6033 --user=sysmoninsert --password=sysmoninsert -e "${QRY}"`