diff options
author | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-05-29 19:11:42 (GMT) |
---|---|---|
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-05-29 19:11:42 (GMT) |
commit | 1e2982f0723fe7e884d63212530ad9c9d491a2f5 (patch) | |
tree | 26e00ad8b951ff82c07fd0d26ab19c6500f3f8fd /plugins/check_tcp.c | |
parent | 063d2541ef07e07a49ad7728c2c6b0154af7123f (diff) | |
download | monitoring-plugins-1e2982f0723fe7e884d63212530ad9c9d491a2f5.tar.gz |
No more warn/crit values in performance data if -w and -c are not specified.
Thanks to Simon Bellwood (#1181554)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1722 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 57e1f0d..a977077 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -366,16 +366,16 @@ main (int argc, char **argv) | |||
366 | if(match == -2) | 366 | if(match == -2) |
367 | printf ("|%s", | 367 | printf ("|%s", |
368 | fperfdata ("time", elapsed_time, "s", | 368 | fperfdata ("time", elapsed_time, "s", |
369 | TRUE, 0, | 369 | (flags & FLAG_TIME_WARN ? TRUE : FALSE), 0, |
370 | TRUE, 0, | 370 | (flags & FLAG_TIME_CRIT ? TRUE : FALSE), 0, |
371 | TRUE, 0, | 371 | TRUE, 0, |
372 | TRUE, socket_timeout) | 372 | TRUE, socket_timeout) |
373 | ); | 373 | ); |
374 | else | 374 | else |
375 | printf("|%s", | 375 | printf("|%s", |
376 | fperfdata ("time", elapsed_time, "s", | 376 | fperfdata ("time", elapsed_time, "s", |
377 | TRUE, warning_time, | 377 | (flags & FLAG_TIME_WARN ? TRUE : FALSE), warning_time, |
378 | TRUE, critical_time, | 378 | (flags & FLAG_TIME_CRIT ? TRUE : FALSE), critical_time, |
379 | TRUE, 0, | 379 | TRUE, 0, |
380 | TRUE, socket_timeout) | 380 | TRUE, socket_timeout) |
381 | ); | 381 | ); |