Query / Monitor last failover time

Hello,

I have a pair of LTMs that were toggling active-standby-active. We’ve resolved the issue, but I’d like to detect this in the future.

Is there any way to programmaitcally (i.e. something that I can script) check the time of the last failover event, or how many failover events have happened (i.e. cache a counter, and see if it increases)? So far the only thing I’ve been able to come up with is looking in /var/log/ltm, which is a pretty expensive operation given that we have a LOT of iRule logging going there.

Thanks, Jason

Create an external monitor and check/grep the /var/log/ltm for “standby for traffic group” and “active for traffic group” or “stop racoon” and “start racoon”

“So far the only thing I’ve been able to come up with is looking in /var/log/ltm, which is a pretty expensive operation given that we have a LOT of iRule logging going there.”