Nagios XI provides network monitoring products. You can set up an in integration with
Netcool® Operations Insight® to receive alert information from Nagios XI
products.
Before you begin
The following event types are supported for this integration:
- Service Notifications
- Host Notifications
About this task
Using a package of configuration files provided by event management, you set up an integration with Nagios
XI. The alerts generated by Nagios XI are sent to the event management service as events.
Note: Event management supports integration with the server monitoring and web monitoring components
of the Nagios XI product.
Procedure
-
Ensure that the Nagios Plugins are installed into your instance of Nagios XI. Depending on how
the plugins are controlled, you can check their status as follows:
- If you use xinetd for controlling the plugins: service xinetd
status
- If you use a dedicated daemon for controlling the plugins:service nrpe
status
-
Click
.
-
Click New integration.
- Go to the Nagios XI tile and click
Configure.
- Enter a name for the integration.
- Click Download file to download the
nagios-cem.zip file. The compressed file contains three files to set up the
integration with event management:
- The file cem.cfg needs to be imported into Nagios XI.
- The file nagios-cem-webhook.sh includes the unique webhook URL generated
for this integration.
- The file import-cem.sh copies the cem.cfg and
nagios-cem-webhook.sh files to Nagios XI destination directory.
Important: The download file contains credential information and should be stored in a
secure location.
- Click Save to save the integration in event management.
- Extract the files to any directory, and copy the files to the Nagios XI server.
- Run the import-cem.sh command to copy the
cem.cfg and nagios-cem-webhook.sh files to the correct
Nagios XI destination directory.
For example, if you are logged in as a non-root user, run the command as follows to ensure it
runs as root and copies the files as required: sudo bash ./import-cem.sh
.
- Log in to the Nagios XI UI as an administrator, and use the Core
Config Manager to import the cem.cfg file:
- Go to Configure in the menu bar in the window and select
Core Config Manager from the list.
- Select from the menu in the window.
- Select cem.cfg and click
Import.
- Enable the environment variable macro:
- In Core Config Manager, select from the menu in the
window.
- On the General tab, enter
1
for the
enable_environment_macros
parameter.
- Click Save Changes.
- Ensure the
cemwebhook
contact is added to the set of hosts and services
you monitor:
Note: Remember to enable the cemwebhook
contact when setting up a source to
monitor. To enable the cemwebhook
contact for the host and all services for that
host, ensure you select CEM Webhook-Contact under Send Alert
notification To in Step 4 of the Configuration Wizard.
To check that cemwebhook
is among the contacts included in alerts for a
host:
- In Core Config Manager, select
from the
menu in the window.
- Click a hostname to edit its settings.
- Click the Alert Settings tab and then click Manage
Contacts.
- Ensure that
cemwebhook
is in the Assigned
column. If not, then select it and click Add Selected.
- Click Close and then
Save.
Note: This example is for checking host settings, but the same steps can be followed to check
services.
- Change the command type for the notify-cem-host and
notify-cem-service commands:
- In Core Config Manager, select
from the
menu in the window.
- Locate and click notify-cem-host to edit its
settings.
- Select misc command from the Command
Type list.
- Click Save.
- Repeat for notify-cem-service.
- Select from the menu in the window and click Apply
Configuration.
- To start receiving alert information from Nagios XI, verify that Enable event management from this
source is set to On..