• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Nagios Email

Configuration

Note that the instructions may need to be adjusted depending on Linux distribution and Nagios configuration.

In Opsgenie :

  1. Go to Settings > Integrations. Search for Email and select Add. The Email integration creates Opsgenie alerts for every email sent to specified email address. Learn more about integrating your Email with Opsgenie .

  2. Copy the email address of Email integration to use it in Nagios contact definition.

Nagio email integration

In Nagios :

  1. Create a Nagios contact using the email address given by Opsgenie in $NAGIOS_HOME/etc/objects/contacts.cfg file.

Text

1 2 3 4 5 6 define contact{ contact_name opsgenie use generic-contact alias OpsGenie email <email_address_provided_by_OpsGenie> }

2. Add the contact "opsgenie" to your Nagios configuration's main contact group.

Text

1 2 3 4 5 define contactgroup{ contactgroup_name admins alias Nagios Administrators members root,opsgenie }

3. Restart Nagios.

If everything goes well, you will see alerts in Opsgenie for every notification created in Nagios.

Nagios alert details

If a problem occurs, check your email utility is working correctly. Change the contact email to an accessible mail box to test that Nagios notifications are sent correctly.

Find more information on Nagios notifications and commands on the following pages:
Nagios Notifications
Nagios Configuration Overview
Nagios Command Configuration

Additional Help