HAProxy ALOHA Documentation 9.5

Email and SNMP Notifications

The "Notify" feature allows you to receive email alerts or SNMP traps whenever there is a change in status for any server configured on the load balancer (L4 or L7 layer) or VRRP status.

Receive email alerts

  1. In the web UI, select the Services tab.

  2. Browse to the line "Notify" and click on setup_icon to display a configuration page.

  3. Specify the IP address for the SMTP server using the keyword smtp_server.

  4. Specify the origin's email address using the keyword smtp_from.

#. Specify the destination's email address using the keyword smtp_to.

  1. Optional: specify the "fqdn" to give to the server using the keyword smtp_help.

    service notify
    
      ########## The notification service
      # smtp_server <ip>: smtp server address
      # smtp_helo <fqdn>: presented localhost fqdn (optional)
      # smtp_from <mail>: mail from address
      # smtp_to <mail>: mail recipient address
      # snmp_server <ip>: snmp server address
      # snmp_community <text>: snmp community (default: public)
      #------------
      smtp_server 192.168.0.1
      smtp_from aloha@mydomain
      smtp_to admin@mydomain
  2. Delete the line "no autostart" to enable the service to start automatically when the machine boots.

  3. Click OK and Close to return to the Services tab.

  4. On the line notify, click restart_icon to restart.

Set up SNMP traps

  1. In the web UI, select the Services tab.

  2. Browse to the line "Notify" and click on the setup setup_icon icon to display a configuration page.

  3. Specify the IP address for the SNMP server using the keyword snmp_server.

  4. Specify the SNMP "community" using the keyword snmp_community according to your SNMP server.

    service notify
      ########## The notification service
      # smtp_server <ip>: smtp server address
      # smtp_helo <fqdn>: presented localhost fqdn (optional)
      # smtp_from <mail>: mail from address
      # smtp_to <mail>: mail recipient address
      # snmp_server <ip>: snmp server address
      # snmp_community <text>: snmp community (default: public)
      #------------
      snmp_server 192.168.0.1
      snmp_community public
  5. Delete the line "no autostart" to enable the service to start automatically when the machine boots.

  6. Click OK and Close to return to the Services tab.

  7. On the line "Notify", click restart_icon to restart.


Next up

Diagnostic Tools