Code

Added perfdata
authorTon Voon <tonvoon@users.sourceforge.net>
Tue, 11 Nov 2003 10:43:07 +0000 (10:43 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Tue, 11 Nov 2003 10:43:07 +0000 (10:43 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@763 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_tcp.c

index a660649cbedc21419beb8fcae0913062a2e366bb..c105c6ae286e7863c06845f6efbf89be97dea793 100644 (file)
@@ -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;
 }