Sending email on Gateway failure



  • Hello all,
    I am new in PFsense world and would like to ask this question. I have a pool of gateways and am using Load balancing between them. I want the PFsense to send me an email when a gateway of them is disconnected or when its link is down.
    How can this be done ???



  • There is no facility for doing this within pfSense at this time.  Consider using a network monitoring system like Nagios, Zabbix or similar.



  • Can a script be written for making such functionality ???



  • Sure, but its something you'd have to write yourself or post a bounty for someone to write it for you for a price.



  • @submicron:

    There is no facility for doing this within pfSense at this time.  Consider using a network monitoring system like Nagios, Zabbix or similar.

    Is there a way to check for that now with nagios?


  • Rebel Alliance Developer Netgate

    @dave99:

    Is there a way to check for that now with nagios?

    From the inside, have nagios ping the same IPs that pfSense does for the gateways
    From the outside, have nagios ping the firewall's IP on each connection.



  • Ahh, that's what I do now. I didn't know if there was a cleaner way to query the status directly.


  • Rebel Alliance Developer Netgate

    Not really. The gateway status isn't exposed by anything directly on the system like that for snmp… I suppose if an agent for any of those can execute a script you could hack together a gateway status script that would pass the info back to your NMS. Doing that is still probably easier (and better from a logic standpoint) than sending out an e-mail when a gateway is down.


Log in to reply