Navigation

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

    Sending email on Gateway failure

    General pfSense Questions
    4
    8
    2669
    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.
    • M
      marefaat last edited by

      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 ???

      1 Reply Last reply Reply Quote 0
      • ?
        Guest last edited by

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

        1 Reply Last reply Reply Quote 0
        • M
          marefaat last edited by

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

          1 Reply Last reply Reply Quote 0
          • ?
            Guest last edited by

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

            1 Reply Last reply Reply Quote 0
            • D
              dave99 last edited by

              @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?

              1 Reply Last reply Reply Quote 0
              • jimp
                jimp Rebel Alliance Developer Netgate last edited by

                @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.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • D
                  dave99 last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • jimp
                    jimp Rebel Alliance Developer Netgate last edited by

                    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.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

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