summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index eef2195..95ac7b4 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -1,9 +1,9 @@
1/***************************************************************************** 1/*****************************************************************************
2* 2*
3* Nagios check_ping plugin 3* Monitoring check_ping plugin
4* 4*
5* License: GPL 5* License: GPL
6* Copyright (c) 2000-2007 Nagios Plugins Development Team 6* Copyright (c) 2000-2007 Monitoring Plugins Development Team
7* 7*
8* Description: 8* Description:
9* 9*
@@ -30,7 +30,7 @@
30 30
31const char *progname = "check_ping"; 31const char *progname = "check_ping";
32const char *copyright = "2000-2007"; 32const char *copyright = "2000-2007";
33const char *email = "nagiosplug-devel@lists.sourceforge.net"; 33const char *email = "devel@monitoring-plugins.org";
34 34
35#include "common.h" 35#include "common.h"
36#include "netutils.h" 36#include "netutils.h"
@@ -482,7 +482,11 @@ run_ping (const char *cmd, const char *addr)
482 /* check stderr, setting at least WARNING if there is output here */ 482 /* check stderr, setting at least WARNING if there is output here */
483 /* Add warning into warn_text */ 483 /* Add warning into warn_text */
484 while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr)) { 484 while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr)) {
485 if (! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP")) { 485 if (
486 ! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP")
487 && ! strstr(buf,"Warning: time of day goes back")
488
489 ) {
486 if (verbose >= 3) { 490 if (verbose >= 3) {
487 printf("Got stderr: %s", buf); 491 printf("Got stderr: %s", buf);
488 } 492 }
@@ -581,7 +585,7 @@ print_help (void)
581 printf (" %s\n", "-L, --link"); 585 printf (" %s\n", "-L, --link");
582 printf (" %s\n", _("show HTML in the plugin output (obsoleted by urlize)")); 586 printf (" %s\n", _("show HTML in the plugin output (obsoleted by urlize)"));
583 587
584 printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); 588 printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
585 589
586 printf ("\n"); 590 printf ("\n");
587 printf ("%s\n", _("THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel")); 591 printf ("%s\n", _("THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel"));