The Nagios integration allows you to retrieve events from Nagios and send them to Moogsoft AIOps.
When you use the integrations UI, you can only configure the visible properties. If you want to implement a more complex Nagios LAM with custom settings, see Configure the Nagios LAM.
See the Nagios documentation for details on Nagios components.
Before You Begin
The Nagios integration has been validated with Nagios v. XI. Before you start to set up your integration, ensure you have met the following requirements:
- You have an active Nagios installation.
- You have full permissions to the Nagios installation directory and files.
- You can make requests from the Nagios server to external endpoints over port 443.
- You have installed cURL on the Nagios server.
- You have administrator access to the Nagios UI.
Configure the Nagios Integration
Configure the Nagios integration in Moogsoft AIOps as follows:
- Navigate to the Integrations tab.
- Click Nagios in the Monitoring section.
Follow the instructions to create an integration name.
See Configure the Nagios LAM for advanced configuration information.
Install the Nagios Integration Scripts
Install the Nagios scripts and configuration files onto your Nagios server as follows:
- Download Nagios-Files-1.2.zip to your Nagios server. The zip file contains shell scripts and configuration files for the integration.
Extract the files from Nagios-Files-1.2.zip. For example:
Navigate to the location of the unzipped files and make the scripts executable. For example:
Copy the scripts to the Nagios plugin directory
libexec. For example:
Edit the configuration variables in
Field Value HOSTNAME
<your Nagios integration URL>
Username generated in the Moogsoft AIOps UI.
Password generated in the Moogsoft AIOps UI.
Edit the same configuration variables in
Create a new directory in
/nagios/etcand copy the configuration files into it. For example:
Complete the Nagios configuration in the Nagios UI as follows:
Log into the Nagios UI and go to the Core Config Manager. Import the configuration files:
/usr/local/nagios/etc/cfgprep/contacts.cfgApply the configuration.
See the Nagios documentation for more information.
Go to Contacts and check that the 'moogsoftadmin' contact appears.
Go to Contact Groups and check that the 'moogsoftadmins' contact group appears.
Go to Commands and check that the commands 'send-host-event' and 'send-service-event' are listed.
Go to Nagios Admin and then to Manage Components. Edit settings for the Global Event Handlers and add the commands as follows:
Host State Change Handler Commands: send-host-event
Service State Change Handler Commands: send-service-event
Check 'Enabled' for both commands and apply the settings.
In the Core Config Manager, add the 'moogsoftadmin' contact and the 'moogsoftadmins' contact group to the alert settings for each host and service you want to monitor with Moogsoft AIOps.
When configuration is complete, Nagios sends host and service related events to Moogsoft AIOps.