Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
Note that the instructions may need to be adjusted depending on Linux distribution and Nagios configuration.
In Opsgenie :
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 .
Copy the email address of Email integration to use it in Nagios contact definition.
In Nagios :
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.
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
Was this helpful?