From e1c26135d65eff851e5eb3ccfaf60791d372dc5d Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Tue, 11 Nov 2003 10:43:07 +0000 Subject: [PATCH] Added perfdata git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@763 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_tcp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) 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; } -- 2.30.2