summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSebastian Harl <sh@teamix.net>2011-04-06 14:59:19 (GMT)
committerSebastian Harl <sh@teamix.net>2012-07-05 09:36:57 (GMT)
commit58ef38e2bb9503f4fbcca5fb8b17ccaf47f9ed67 (patch)
treeaec7e6834fbae58a05ba5ef8258a623c9ed5b393 /plugins
parent912df3ef9b188c82893dace1e9b56c42a558fdba (diff)
downloadmonitoring-plugins-58ef38e2bb9503f4fbcca5fb8b17ccaf47f9ed67.tar.gz
check_pgsql: Fixed query perfdata output for empty warn/crit ranges.
Previously, "(null)" was printed (when using GNU's libc). This has been changed to print the empty string instead.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_pgsql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index edad116..2acddc4 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -578,7 +578,9 @@ do_query (PGconn *conn, char *query)
578 ? _("CRITICAL") 578 ? _("CRITICAL")
579 : _("UNKNOWN")); 579 : _("UNKNOWN"));
580 printf (_("'%s' returned %f"), query, value); 580 printf (_("'%s' returned %f"), query, value);
581 printf ("|query=%f;%s;%s;0\n", value, query_warning, query_critical); 581 printf ("|query=%f;%s;%s;0\n", value,
582 query_warning ? query_warning : "",
583 query_critical ? query_critical : "");
582 return my_status; 584 return my_status;
583} 585}
584 586