• 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. Create an Email Integration in Opsgenie Integrations if you don't already have one. The Email Integration creates Opsgenie alerts for every email sent to specified email address. Find more information on Opsgenie email integration support here .

  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. Please don't hesitate to contact us, if a problem persists.

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

Last modified on Jan 28, 2021
Cached at 6:20 AM on Jul 27, 2021 |

Additional Help

Ask the Community