summaryrefslogtreecommitdiffstats
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2004-03-14 04:09:19 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2004-03-14 04:09:19 (GMT)
commit4e318b9277ba5209fab447da5afa3c0a22a681d9 (patch)
tree65e99d3a8181584d75726390c5968270c21afa63 /plugins/check_tcp.c
parentb86b521b38a993b49e03f827859aea672fdfa806 (diff)
downloadmonitoring-plugins-4e318b9277ba5209fab447da5afa3c0a22a681d9.tar.gz
use fperfdata
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@849 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 55ce898..9bb161a 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -332,11 +332,11 @@ main (int argc, char **argv)
332 if (status && strlen(status) > 0) 332 if (status && strlen(status) > 0)
333 printf (" [%s]", status); 333 printf (" [%s]", status);
334 334
335 printf (" |%s\n", perfdata ("time", microsec, "us", 335 printf (" |%s\n", fperfdata ("time", elapsed_time, "s",
336 TRUE, warning_time*1000, 336 TRUE, warning_time,
337 TRUE, critical_time*1000, 337 TRUE, critical_time,
338 TRUE, 0, 338 TRUE, 0,
339 TRUE, socket_timeout*1000)); 339 TRUE, socket_timeout));
340 340
341 return result; 341 return result;
342} 342}
@@ -481,7 +481,7 @@ process_arguments (int argc, char **argv)
481 else 481 else
482 maxbytes = atoi (optarg); 482 maxbytes = atoi (optarg);
483 case 'q': 483 case 'q':
484 server_quit = optarg; 484 asprintf(&server_quit, "%s\r\n", optarg);
485 break; 485 break;
486 case 'r': 486 case 'r':
487 if (!strncmp(optarg,"ok",2)) 487 if (!strncmp(optarg,"ok",2))