Ad Widget

Collapse

Is it possible for Zabbix to alert the activation of PFSense CARP Failover?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cesarsj
    Senior Member
    • Dec 2018
    • 154

    #1

    Is it possible for Zabbix to alert the activation of PFSense CARP Failover?

    Whenever triggered, Zabbix would notify you that it has changed from Master to Slave.
  • cesarsj
    Senior Member
    • Dec 2018
    • 154

    #2
    Originally posted by cesarsj
    Whenever triggered, Zabbix would notify you that it has changed from Master to Slave.
    I found the solution, an user of netgate forum helped me.

    JimP said in Can I find out the status of the CARP interface (BACKUP / MASTER) through a command?:

    ifconfig -a | grep 'carp:'

    This solution looks perfect, I only made one adjustment to get only the MASTER / BACKUP:

    UserParameter = pfsense.carp.state, ifconfig -a | grep 'carp:' | cut -d '' -f2 | sed -n 1p

    Sed is for taking only one CARP interface, it is very rare for one interface to be BACKUP while the others are MASTER, and vice versa.

    PS: I don't know if I should close this post as resolved or how to do it if I should.

    Link: https://forum.netgate.com/topic/1613...gh-a-command/3

    Comment

    Working...