Yes , the agent could be configured to fail over after n number of successive faults. You need to configure
the ToleranceLimit attribute for the Listener Type. This is a type level attribute and not resource level.
ToleranceLimit
A non-zero ToleranceLimit allows the monitor entry point to return OFFLINE
several times before the ONLINE resource is declared FAULTED. If the monitor
entry point reports OFFLINE more times than the number set in ToleranceLimit,
the resource is declared FAULTED. However, if the resource remains online for
the interval designated in ConfInterval, any earlier reports of OFFLINE are not
counted against ToleranceLimit. Default is 0. The ToleranceLimit attribute
value can be overridden.