Skip to content

Commit

Permalink
Forgot to remove debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
Napsty committed May 24, 2019
1 parent b4ad744 commit 17c3762
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion check_mysql_write.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ done
#########################################################################
# Check if we already have a row for our monitoring host where this script runs on
hostcheck=$(mysql -h ${host} -P ${port} -u ${user} --password=${password} -D $database -Bse "SELECT COUNT(host) FROM monitoring WHERE host = '$(hostname)'")
echo "Debug: $hostcheck"
if [[ $hostcheck -eq 0 ]]
then # We need to create the first row entry for this host
mysql -h ${host} -P ${port} -u ${user} --password=${password} -D $database -e "INSERT INTO monitoring (host, mytime) VALUES ('$(hostname)', $curtime)"
Expand Down

0 comments on commit 17c3762

Please sign in to comment.