Go to section …

Integrating Nagios

Here's how to enable email notifications in Nagios for CA Flowdock:

  1. Enable email notifications in your main configuration file located in /usr/local/nagios/etc/nagios.cfg by setting the variable enable_notifications=1
  2. Define a new contact with your flow's email address in your contact object file (e.g. /usr/local/nagios/etc/objects/contacts.cfg) and include the contact in a contact group:
    define contact{
      contact_name  flowdock
      host_notifications_enabled  1
      service_notifications_enabled 1
      host_notification_period  24×7
      service_notification_period 24×7
      host_notification_options d,u,r,f,s
      service_notification_options  w,u,c,r,f,s
      host_notification_commands  notify-host-by-email
      service_notification_commands notify-service-by-email
      email flowname@organization.flowdock.com
    To locate your flow's email address, click the ellipsis icon next to your flow's name, select Integrations, find the Email section, and click on the down arrow that lists sources.
  3. Nagios' default configuration should have the appropriate notification commands already set up. If this is not the case, define the following notification command in your command definition file (e.g. /usr/local/nagios/etc/objects/commands.cfg):
    define command{
      command_name  notify-host-by-email
      command_line  /usr/bin/printf "%b" "***** Nagios *****\n\n
          Notification Type: $NOTIFICATIONTYPE$\n
          Host: $HOSTNAME$\nState: $HOSTSTATE$\n
          Address: $HOSTADDRESS$\n
          Date/Time: $LONGDATETIME$\n" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$
          Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"

Nagios will now send notifications about problems in your infrastructure to your flow.

Back to integrations page