diff --git a/install-dsmon.sh b/install-dsmon.sh index bab2e7f..afd3a4d 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -154,9 +154,9 @@ if [ "${SET_SERVERMONID}" = "new" ]; then if [ "${mysqlip}" != "" ]; then QRY="USE servermonitor; INSERT INTO hosts (\`host\`,\`hostname\`,\`ip\`,\`limits\`) VALUES ('${ADD_SERVERNAME}','${ADD_SERVERHOSTNAME}','${SERVERIPS// /}','${thresholdlog[@]}');" - mysql -h ${mysqlip} -u sysmoninsert -psysmoninsert -e "${QRY}" + mariadb --skip-ssl -h ${mysqlip} -u sysmoninsert -psysmoninsert -e "${QRY}" QRY="USE servermonitor; SELECT id FROM hosts WHERE host='${ADD_SERVERNAME}';" - SET_SERVERMONID=`mysql -h ${mysqlip} -u sysmoninsert -psysmoninsert -e "${QRY}"` + SET_SERVERMONID=`mariadb --skip-ssl -h ${mysqlip} -u sysmoninsert -psysmoninsert -e "${QRY}"` else echo -e "${idsCL[Red]}Could not connect to MySQL${idsCL[Default]}" fi