Forum Discussion

Jason_Antman_40's avatar
Jason_Antman_40
Icon for Nimbostratus rankNimbostratus
Oct 16, 2014

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

 

2 Replies

  • R_Eastman_13667's avatar
    R_Eastman_13667
    Historic F5 Account

    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"

     

    • Jason_Antman_40's avatar
      Jason_Antman_40
      Icon for Nimbostratus rankNimbostratus
      "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."