Code

check_pgsql: Leave 'min' value in query perfdata empty.
authorSebastian Harl <sh@teamix.net>
Fri, 8 Apr 2011 08:53:49 +0000 (10:53 +0200)
committerSebastian Harl <sh@teamix.net>
Fri, 8 Apr 2011 08:53:49 +0000 (10:53 +0200)
There is no reasonable default value for that.

plugins/check_pgsql.c

index 4b4452942cfa0f8e7254d07a47bd2d4b6c379c88..9cdeb504cd2e36706efa48577673f77aaf656fa9 100644 (file)
@@ -634,7 +634,7 @@ do_query (PGconn *conn, char *query)
                                                ? _("CRITICAL")
                                                : _("UNKNOWN"));
        printf (_("'%s' returned %f"), query, value);
-       printf ("|query=%f;%s;%s;0\n", value,
+       printf ("|query=%f;%s;%s;;\n", value,
                        query_warning ? query_warning : "",
                        query_critical ? query_critical : "");
        return my_status;