mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
Merge branch 'upstream' into check_curl
This commit is contained in:
commit
53e6f2970d
3 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue