Re: any solution to ping with IPv6
Thierry LEGRAS <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gkrellm |
|---|---|
| Message-ID | <[email protected]> |
okay, fmonitor does the trick: here is my script (sorry, it is a quick
and dirty one, any suggestion is welcome)
Thierry.
#!/usr/bin/ksh
log="/var/log/check.log"
while [ 1 -eq 1 ] ; do
hostlist="r1 r2 r3 r4"
for host in $hostlist ; do
ping6 -c 1 -w 1 $host > /dev/null
result="$?"
if [ "$result" -eq 0 ]; then
echo "$host:OK" >>"$log".tmp
else
echo "$host:ERROR:ALERT" >>"$log".tmp
fi
done
rm -f "$log".old
mv "$log" "$log".old
mv "$log".tmp "$log"
sleep 1
done
Thierry LEGRAS wrote:
> Hi,
>
> i am using gkrellm 2.2.5 with multiping plugin. as far as i could see
> it does not support ping of IPv6 host.
> i took a look at the latest version of multiping, it seems that this
> would require significant changes to make it works with IPv6.
> so the best solution i could find is to use fmonitor and a script that
> calls ping6, format and output result in a file.
>
> Does any one has a better solution?
>
> Thanks for any help,
> Thierry.
_______________________________________________
Gkrellm mailing list
[email protected]
http://lists.jutley.org/cgi-bin/mailman/listinfo/gkrellm