]>
Commit | Line | Data |
---|---|---|
c9a20255 ER |
1 | we don't want message from ping triggering a warning: |
2 | WARNING: 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 | } |