summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06bb5d0)
raw | patch | inline | side by side (parent: 06bb5d0)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 11 Nov 2003 10:43:07 +0000 (10:43 +0000) | ||
committer | Ton 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 | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index a660649cbedc21419beb8fcae0913062a2e366bb..c105c6ae286e7863c06845f6efbf89be97dea793 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
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;
}