diff options
author | Sebastian Harl <sh@teamix.net> | 2011-04-08 10:58:00 +0200 |
---|---|---|
committer | Sebastian Harl <sh@teamix.net> | 2012-06-06 14:10:55 +0200 |
commit | 61506bd8d7a095f5de571d21e37972a159372bdf (patch) | |
tree | 906922b9dac44d9123b47e73addf2fd6b2c70cdd /plugins/check_dbi.c | |
parent | 0e02edec196a8f3cf866279c5609138db14ec931 (diff) | |
download | monitoring-plugins-61506bd8d7a095f5de571d21e37972a159372bdf.tar.gz |
check_dbi: Fixed/improved perfdata output.
- do not use zero as 'min' value for the query result perfdata
- added all semicolons
Diffstat (limited to 'plugins/check_dbi.c')
-rw-r--r-- | 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 f59d7c41..611e0e78 100644 --- a/plugins/check_dbi.c +++ b/plugins/check_dbi.c | |||
@@ -236,7 +236,7 @@ main (int argc, char **argv) | |||
236 | state_text (exit_status), | 236 | state_text (exit_status), |
237 | state_text (conntime_status), conn_time, | 237 | state_text (conntime_status), conn_time, |
238 | state_text (status), np_dbi_query, query_val, query_time); | 238 | state_text (status), np_dbi_query, query_val, query_time); |
239 | printf (" | conntime=%fs;%s;%s;0 query=%f;%s;%s;0 querytime=%fs;;;0\n", conn_time, | 239 | printf (" | conntime=%fs;%s;%s;0; query=%f;%s;%s;; querytime=%fs;;;0;\n", conn_time, |
240 | conntime_warning_range ? conntime_warning_range : "", | 240 | conntime_warning_range ? conntime_warning_range : "", |
241 | conntime_critical_range ? conntime_critical_range : "", | 241 | conntime_critical_range ? conntime_critical_range : "", |
242 | query_val, warning_range ? warning_range : "", critical_range ? critical_range : "", | 242 | query_val, warning_range ? warning_range : "", critical_range ? critical_range : "", |