diff options
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; } |