diff --git a/install-dsmon.sh b/install-dsmon.sh index 0176689..78b0009 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -149,9 +149,9 @@ if [ "${SET_SERVERMONID}" = "new" ]; then fi QRY="USE servermonitor; INSERT INTO hosts (\`host\`,\`hostname\`,\`ip\`,\`limits\`) VALUES ('${ADD_SERVERNAME}','${ADD_SERVERHOSTNAME}','${SERVERIPS// /}','${thresholdlog[@]}');" - mysql -h ${mysqlip} -P 3306 --user=sysmoninsert --password=sysmoninsert -e "${QRY}" + mysql -h ${mysqlip} --user=sysmoninsert --password=sysmoninsert -e "${QRY}" QRY="USE servermonitor; SELECT id FROM hosts WHERE host='${ADD_SERVERNAME}';" - SET_SERVERMONID=`mysql -h ${mysqlip} -P 3306 --user=sysmoninsert --password=sysmoninsert -e "${QRY}"` + SET_SERVERMONID=`mysql -h ${mysqlip} --user=sysmoninsert --password=sysmoninsert -e "${QRY}"` echo -en "${idsCL[LightGreen]}Server successfully added, it was given ID# " echo -e ${SET_SERVERMONID//id