[nagiosplug] check_dbi: Fixed/improved perfdata output.

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Thu Jul 5 00:10:38 CEST 2012


 Module: nagiosplug
 Branch: master
 Commit: 61506bd8d7a095f5de571d21e37972a159372bdf
 Author: Sebastian Harl <sh at teamix.net>
   Date: Fri Apr  8 10:58:00 2011 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=61506bd

check_dbi: Fixed/improved perfdata output.

 - do not use zero as 'min' value for the query result perfdata

 - added all semicolons

---

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

diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c
index f59d7c4..611e0e7 100644
--- a/plugins/check_dbi.c
+++ b/plugins/check_dbi.c
@@ -236,7 +236,7 @@ main (int argc, char **argv)
 			state_text (exit_status),
 			state_text (conntime_status), conn_time,
 			state_text (status), np_dbi_query, query_val, query_time);
-	printf (" | conntime=%fs;%s;%s;0 query=%f;%s;%s;0 querytime=%fs;;;0\n", conn_time,
+	printf (" | conntime=%fs;%s;%s;0; query=%f;%s;%s;; querytime=%fs;;;0;\n", conn_time,
 			conntime_warning_range ? conntime_warning_range : "",
 			conntime_critical_range ? conntime_critical_range : "",
 			query_val, warning_range ? warning_range : "", critical_range ? critical_range : "",





More information about the Commits mailing list