From: Ton Voon Date: Tue, 11 Nov 2003 10:43:07 +0000 (+0000) Subject: Added perfdata X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1c26135d65eff851e5eb3ccfaf60791d372dc5d;p=nagiosplug.git Added perfdata git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@763 f882894a-f735-0410-b71e-b25c423dba1c --- 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; }