summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-09-18 17:18:35 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-09-18 17:18:35 (GMT)
commitc405dbafccd27259bd860ea408b32f2594e1a384 (patch)
tree6d0b15a5b3404075088363f2cc09c92e8ecbbf9d /plugins/check_mysql.c
parent3929c5ac37a5b6c6ae0430c40438da087da07e1a (diff)
downloadmonitoring-plugins-c405dbafccd27259bd860ea408b32f2594e1a384.tar.gz
Add mysql_close to avoid spamming the server logs
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r--plugins/check_mysql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 5b9a4fe..8dc554f 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -294,6 +294,7 @@ main (int argc, char **argv)
294 /* free the result */ 294 /* free the result */
295 mysql_free_result (res_mysqldump); 295 mysql_free_result (res_mysqldump);
296 } 296 }
297 mysql_close (&mysql);
297 } 298 }
298 if (mysqldump_threads == 0) { 299 if (mysqldump_threads == 0) {
299 die (STATE_CRITICAL, "%s\n", slaveresult); 300 die (STATE_CRITICAL, "%s\n", slaveresult);