On Thu, Jul 07, 2005 at 01:05:13PM +0200, Kevin Ivory wrote: > On 2005-07-07 13:00, Kevin Ivory wrote: > >the fping.monitor included with mon-1.0.0pre5 doesn't semm to parse > >the output of fping correctly. > ... > ># ./fping.monitor 192.168.140.3 > >192.168.140.3 ICMP ICMP ICMP ICMP > > some more extra information: the problematic code must have went in > between pre3 and pre4: pre3's output looks fine.
I've been getting this too - it looks like fping sends some of its error messages to stderr, which confuse fping.monitor. Try the patch below, which discards the messages, which fping.monitor would ignore anyway. --- /usr/local/mon/mon.d/fping.monitor 2004-11-24 18:23:53.000000000 -0500 +++ ./fping.monitor 2005-08-31 21:48:04.000000000 -0400 @@ -59,7 +59,7 @@ exit 0 if (@ARGV == 0); -open (IN, "$CMD @ARGV 2>&1 |") || +open (IN, "$CMD @ARGV 2>/dev/null |") || die "could not open pipe to fping: $!\n"; my @unreachable; _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon