[Nagiosplug-checkins] nagiosplug/plugins check_tcp.c,1.89,1.90
Matthias Eble
psychotrahe at users.sourceforge.net
Tue May 29 21:11:44 CEST 2007
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24981/plugins
Modified Files:
check_tcp.c
Log Message:
No more warn/crit values in performance data if -w and -c are not specified.
Thanks to Simon Bellwood (#1181554)
Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- check_tcp.c 14 Feb 2007 10:11:06 -0000 1.89
+++ check_tcp.c 29 May 2007 19:11:42 -0000 1.90
@@ -366,16 +366,16 @@
if(match == -2)
printf ("|%s",
fperfdata ("time", elapsed_time, "s",
- TRUE, 0,
- TRUE, 0,
+ (flags & FLAG_TIME_WARN ? TRUE : FALSE), 0,
+ (flags & FLAG_TIME_CRIT ? TRUE : FALSE), 0,
TRUE, 0,
TRUE, socket_timeout)
);
else
printf("|%s",
fperfdata ("time", elapsed_time, "s",
- TRUE, warning_time,
- TRUE, critical_time,
+ (flags & FLAG_TIME_WARN ? TRUE : FALSE), warning_time,
+ (flags & FLAG_TIME_CRIT ? TRUE : FALSE), critical_time,
TRUE, 0,
TRUE, socket_timeout)
);
More information about the Commits
mailing list