[monitoring-plugins] check_pgsql: cleanup leftover code
Lorenz Kästle
git at monitoring-plugins.org
Wed Nov 5 14:20:16 CET 2025
Module: monitoring-plugins
Branch: master
Commit: 2f0fc05981996ad11f37319c64a386187d13bdf9
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Wed Nov 5 13:58:48 2025 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=2f0fc059
check_pgsql: cleanup leftover code
---
plugins/check_pgsql.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index bbabd062..cd314f29 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -674,20 +674,5 @@ static do_query_wrapper do_query(PGconn *conn, char *query) {
result.numerical_result = value;
- // if (pgqueryname) {
- // printf(_("%s returned %f"), pgqueryname, value);
- // } else {
- // printf(_("'%s' returned %f"), query, value);
- // }
-
- // printf("|query=%f;%s;%s;;\n", value, query_warning ? query_warning : "",
- // query_critical ? query_critical : "");
- // if (PQnfields(res) > 1) {
- // char *extra_info = PQgetvalue(res, 0, 1);
- // if (extra_info != NULL) {
- // printf("Extra Info: %s\n", extra_info);
- // }
- // }
-
return result;
}
More information about the Commits
mailing list