aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
-rw-r--r--doc/developer-guidelines.sgml4
-rw-r--r--plugins-root/check_dhcp.c3
3 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 267c40a2..4aebc2ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1100,6 +1100,14 @@ then
ac_cv_ping_packets_first=yes
AC_MSG_RESULT([$with_ping_command])
+elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
+ egrep -i "^round-trip|^rtt" >/dev/null
+then
+ # check if -4 is supported - issue #1550
+ with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s"
+ ac_cv_ping_packets_first=yes
+ ac_cv_ping_has_timeout=yes
+ AC_MSG_RESULT([$with_ping_command])
elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
egrep -i "^round-trip|^rtt" >/dev/null
then
diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml
index 5f480c5f..6f31f365 100644
--- a/doc/developer-guidelines.sgml
+++ b/doc/developer-guidelines.sgml
@@ -324,8 +324,8 @@
</section>
<section><title>Performance data</title>
- <para>Nagios 3 and newer will concatenate the parts following a "|" in
- each line of output by the plugin into a string it
+ <para>Nagios 3 and newer will concatenate the parts following a "|" in a) the first
+ line output by the plugin, and b) in the second to last line, into a string it
passes to whatever performance data processing it has configured. (Note that it
currently does not insert additional whitespace between both, so the plugin needs
to provide some to prevent the last pair of a) and the first of b) getting run
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index f4c2dafd..ad673237 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -323,7 +323,8 @@ int get_hardware_address(int sock,char *interface_name){
#elif defined(__bsd__)
/* King 2004 see ACKNOWLEDGEMENTS */
- int mib[6], len;
+ size_t len;
+ int mib[6];
char *buf;
unsigned char *ptr;
struct if_msghdr *ifm;