Christoph Biedl wrote... > # /usr/lib/nagios/plugins/check_ping -6 -H ::1 -w 200.0,20% -c 500.0,60% -p 5 > Segmentation fault
Further tests using gdb suggest the problem is a follows: | #define PING6_COMMAND "/bin/ping6 -n -U -c %d %s" | #define PING_COMMAND "/bin/ping -n -U -w %d -c %d %s" [ nagios-plugins-1.4/config.h, generated by ./configure ] Both strings are used as an sprintf pattern | asprintf (&cmd, rawcmd, timeout_interval, max_packets, addresses[i]); ( rawcmd is strdup'd from either strings ) [ plugins/check_ping.c:106 ] which is fatal since max_packets is understood as (char *) if ping6 is the command used. The trivial fix: Adding "-w %d" in PING6_COMMAND as in PING_COMMAND worked for me. The actual magic should reside in the configure script. The current (and broken) output is: | checking for ICMP ping syntax... /bin/ping -n -U -w %d -c %d %s | checking for ICMPv6 ping syntax... /bin/ping6 -n -U -c %d %s Quite depressing to see appearently nobody else uses IPv6 and discovered this before :-| Christoph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]