Configure webhook endpoints in Nagios

Configure a webhook endpoints so that Nagios can use the endpoint to send services and host notifications to Incident Response.

Before you begin

Ensure you have installed Nagios. For information on how to install Nagios, see https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart.html.

Role required: Responder, Manager, or Administrator

About this task

You need to define the payload parameters and webhook endpoint in the command definition for the integration. Every integration will have its own command definitions.
Note: While this integration with a third-party product is supported, the documentation here is based upon information provided by that third-party. More current information about the operation of that third-party’s system may be available from them directly.

Procedure

  1. Log in to the console where you have installed Nagios.
  2. Click to open the Nagios server.
  3. Open the command line interface.
  4. To define the service and the host notifications:
    1. Open commands.cfg or the relevant commands configuration file in your system.
    2. Copy and paste the host and service command definitions from the Script tab in Incident Response.
  5. To define the contact:
    1. Open contacts.cfg or the relevant contact file and paste the contact definition from the Script tab in Incident Response.
    2. Update the contact_name value to the required Nagios contact groups.
    3. After you define a contact, specify the contact name in the specific service or host definitions. You can also add the contact in a contact group definition in the contacts.cfg file or the relevant contact file. When a specific service or host has any issue, the contact gets notified.
  6. Verify the configuration and restart the Nagios server.
  7. Optional: To check notifications in the Nagios console, perform the following actions:
    1. Log in to the Nagios console.
    2. From the navigation pane, click Reports > Notifications.