diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-11-11 10:43:07 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-11-11 10:43:07 (GMT) |
commit | e1c26135d65eff851e5eb3ccfaf60791d372dc5d (patch) | |
tree | 45f746d1178eec54fc224e79fbae31e37eb1d6e3 | |
parent | 06bb5d06d5d46e95a031cf50b737b3fd3c8abef7 (diff) | |
download | monitoring-plugins-e1c26135d65eff851e5eb3ccfaf60791d372dc5d.tar.gz |
Added perfdata
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@763 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_tcp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index a660649..c105c6a 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -332,7 +332,11 @@ main (int argc, char **argv) | |||
332 | if (status && strlen(status) > 0) | 332 | if (status && strlen(status) > 0) |
333 | printf (" [%s]", status); | 333 | printf (" [%s]", status); |
334 | 334 | ||
335 | printf ("|time=%ldus\n", microsec); | 335 | printf (" |%s\n", perfdata ("time", microsec, "us", |
336 | TRUE, warning_time*1000, | ||
337 | TRUE, critical_time*1000, | ||
338 | TRUE, 0, | ||
339 | TRUE, socket_timeout*1000)); | ||
336 | 340 | ||
337 | return result; | 341 | return result; |
338 | } | 342 | } |