diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_pgsql.c | 4 |
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 | ||