On Sun, Mar 04, 2001 at 11:47:47PM -0600, K Old wrote:
> Hello,
>
> I was wondering if there was any way I could monitor the IP's I have
> on my server and if they go down restart them. Surely there has to
> be some kind of script I can write or can someone inform me of the
> commands (with syntax) to check and see if a particular IP is
> running and then what I should do to restart it.
Not sure I follow 'IPs on my server'? Like eth0:0, eth0:1?
ip_list="1.1.1.1 2.2.2.2 ...."
for i in $ip_list; do
if ! fping $i >/dev/null 2>&1; then
wake_up_Fred
fi
done
fping is nice for this kind of thing. I think it's in powertools. Not
sure about the corrective action. Just depends on what's wrong...
--
Hal B
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list