diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-11-11 10:43:07 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-11-11 10:43:07 +0000 |
commit | e1c26135d65eff851e5eb3ccfaf60791d372dc5d (patch) | |
tree | 45f746d1178eec54fc224e79fbae31e37eb1d6e3 /plugins/check_tcp.c | |
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
Diffstat (limited to 'plugins/check_tcp.c')
-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 a660649c..c105c6ae 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -332,7 +332,11 @@ main (int argc, char **argv) if (status && strlen(status) > 0) printf (" [%s]", status); - printf ("|time=%ldus\n", microsec); + printf (" |%s\n", perfdata ("time", microsec, "us", + TRUE, warning_time*1000, + TRUE, critical_time*1000, + TRUE, 0, + TRUE, socket_timeout*1000)); return result; } |