Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] network monitoring
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Tue, 09 May 2006 10:39:11 +0200
  • Message-id: <e3pkff$878$3@xxxxxxxxxxxxxxxx>
Per Qvindesland wrote:

> Hello List,
>
> Does anyone know about a script that will ping certain addresses and
> in case of drop outs will email a person? I have been looking around
> but with no luck.

for i in <host> ... <host>
do
ping -q -c 1 $i || echo "ping $i didnt work." | mail <emailaddr>
done


/Per Jessen, Zürich


< Previous Next >
References