Page 1 of 1

Perform an action after X times link loss

Posted: Tue Jun 18, 2019 9:20 am
by ik3umt
How can I perform an action (an e-mail, a reboot etc.) after i.e. an ethernet link goes down for an amount of times ?

Re: Perform an action after X times link loss

Posted: Tue Jun 18, 2019 1:07 pm
by Jotne
How does the log looks like when it goes down?

You can then search every 5 min for the message in the log.
Increment a counter every time.
Then do some action after 5 times.

But this is the treatment of the symptoms and not of the cause, why should a reboot help?