Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    [1.2.2] Executing something on failover

    Development
    2
    2
    1625
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brah last edited by

      I'd like to execute a bunch of scripts when the failover gets triggered, but unfortunately I haven't been able to find the function that gets ran every time an element in the pool switches states.

      What I did find is that /usr/local/sbin/slbd.sh can return a gateway and an exit code for the ping, and in that file I can perhaps add something like "If exit code is 1 then check to what interface that gateway corresponds, and do x" but I'm not sure that would be the best approach.

      So.. ideas?

      1 Reply Last reply Reply Quote 0
      • E
        eri-- last edited by

        You can customize your pfSense but there is nothing supported on that since pfSense is for remove the hackiness you do with a usual box.
        For the matter yes you can modify slbd.sh to do what you want just return the exit status of ping.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post