[monitoring-plugins] Add mysql_close to avoid spamming the server logs
RincewindsHat
git at monitoring-plugins.org
Mon Sep 18 23:20:11 CEST 2023
Module: monitoring-plugins
Branch: master
Commit: c405dbafccd27259bd860ea408b32f2594e1a384
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Date: Mon Sep 18 19:18:35 2023 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c405dba
Add mysql_close to avoid spamming the server logs
---
plugins/check_mysql.c | 1 +
1 file changed, 1 insertion(+)
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)
/* free the result */
mysql_free_result (res_mysqldump);
}
+ mysql_close (&mysql);
}
if (mysqldump_threads == 0) {
die (STATE_CRITICAL, "%s\n", slaveresult);
More information about the Commits
mailing list