Thanks Patrick and Dmitry, indeed `ifstated' and the ``running external tests''-part, sound like it will be helpful.
/Kim On 2011-07-20 16:19, Patrick Lamaiziere wrote: > Le Mon, 18 Jul 2011 19:18:53 +0400, > Dmitry Banschikov <d.banschi...@peterhost.ru> a écrit : > > Hi, > >>> is it possible to let a CARP-interface fail(-over) in the situation >>> when a certain program fails or stops working? I hope it's clear >>> enough what I have in mind. Could you give me any pointers on how >>> this can be archived? >> >> You can write simple script, which will monitor status of the >> program, and if program fails, it can adjust advskew parameter of the >> CARP interface forcing going interface to the backup state. > > In addition, port net/ifstated could be useful for doing this kind of > things (here we monitor BGP sessions with it).