[nagiosplug] check_pgsql: Leave 'min' value in query perfdata ...

"Nagios Plugin Development" <[email protected]> Sat, 17 Aug 2013 20:50:49 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: c56a22cbbf17a9195feb7413086f7b96336e1aac
 Author: Sebastian Harl <[email protected]>
   Date: Fri Apr  8 10:53:49 2011 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=c56a22c

check_pgsql: Leave 'min' value in query perfdata empty.

There is no reasonable default value for that.

---

 plugins/check_pgsql.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index ea3f402..54d2d58 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -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;


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk