SOURCES (DEVEL): nagios-plugins-check_ping-socket-filter-warning.p...

glen glen at pld-linux.org
Sun May 21 22:06:06 CEST 2006


Author: glen                         Date: Sun May 21 20:06:06 2006 GMT
Module: SOURCES                       Tag: DEVEL
---- Log message:
- update to 1.4.3

---- Files affected:
SOURCES:
   nagios-plugins-check_ping-socket-filter-warning.patch (1.2 -> 1.2.4.1) 

---- Diffs:

================================================================
Index: SOURCES/nagios-plugins-check_ping-socket-filter-warning.patch
diff -u SOURCES/nagios-plugins-check_ping-socket-filter-warning.patch:1.2 SOURCES/nagios-plugins-check_ping-socket-filter-warning.patch:1.2.4.1
--- SOURCES/nagios-plugins-check_ping-socket-filter-warning.patch:1.2	Tue Mar 14 14:37:46 2006
+++ SOURCES/nagios-plugins-check_ping-socket-filter-warning.patch	Sun May 21 22:06:01 2006
@@ -1,12 +1,15 @@
---- nagios-plugins-1.4.2/plugins/check_ping.c~	2005-09-14 17:40:20.000000000 +0300
-+++ nagios-plugins-1.4.2/plugins/check_ping.c	2006-03-14 15:14:24.000000000 +0200
-@@ -453,7 +453,8 @@
- 
+we don't want message from ping triggering a warning:
+WARNING: failed to install socket filter: Protocol not available
+
+--- nagios-plugins-1.4.3/plugins/check_ping.c~	2006-05-21 23:02:33.988927080 +0300
++++ nagios-plugins-1.4.3/plugins/check_ping.c	2006-05-21 23:04:28.671500218 +0300
+@@ -454,7 +454,8 @@
  	/* check stderr, setting at least WARNING if there is output here */
- 	while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr))
--		if (! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP"))
+ 	/* Add warning into warn_text */
+ 	while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr)) {
+-		if (! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP")) {
 +		if (! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP") &&
-+            ! strstr(buf,"WARNING: failed to install socket filter: Protocol not available"))
- 			result = max_state (STATE_WARNING, error_scan (buf, addr));
- 
- 	(void) fclose (child_stderr);
++            ! strstr(buf,"WARNING: failed to install socket filter: Protocol not available")) {
+ 			if (verbose >= 3) {
+ 				printf("Got stderr: %s", buf);
+ 			}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/nagios-plugins-check_ping-socket-filter-warning.patch?r1=1.2&r2=1.2.4.1&f=u



More information about the pld-cvs-commit mailing list