]> git.pld-linux.org Git - packages/nagios-plugins.git/blame - nagios-plugins-check_ping-socket-filter-warning.patch
- updated configs; rel 16
[packages/nagios-plugins.git] / nagios-plugins-check_ping-socket-filter-warning.patch
CommitLineData
c9a20255
ER
1we don't want message from ping triggering a warning:
2WARNING: failed to install socket filter: Protocol not available
3
4--- nagios-plugins-1.4.3/plugins/check_ping.c~ 2006-05-21 23:02:33.988927080 +0300
5+++ nagios-plugins-1.4.3/plugins/check_ping.c 2006-05-21 23:04:28.671500218 +0300
6@@ -454,7 +454,8 @@
83194eaa 7 /* check stderr, setting at least WARNING if there is output here */
c9a20255
ER
8 /* Add warning into warn_text */
9 while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr)) {
10- if (! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP")) {
5e03417f 11+ if (! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP") &&
c9a20255
ER
12+ ! strstr(buf,"WARNING: failed to install socket filter: Protocol not available")) {
13 if (verbose >= 3) {
14 printf("Got stderr: %s", buf);
15 }
This page took 0.026231 seconds and 4 git commands to generate.