Importing a Nagios Configuration

Home  Previous  Next

In addition to the Nagios Plugin Monitor that allows you to integrate and monitor specific Nagios plugins into your PATROL console, Monitoring Studio also enables you to import an entire Nagios configuration (nagios.cfg and icinga.cfg). Monitoring Studio detects and interprets Nagios groups, hosts and services configured on the Nagios server, imports them, and creates corresponding instances (Groups, Hosts and Nagios Plugin Monitors) in your Monitoring Studio environment.


WarningNagios Plugin Monitors imported from a Nagios configuration (.cfg) use the source plugin files and should not be removed even after the import process is completed.


To import an entire Nagios configuration

1.Right-click the Monitoring Studio icon > KM commands > Configuration > Import Nagios Configuration
2.Enter the path of the folder containing the Nagios or Icinga 1 configuration file(s) you wish to import (Default: /usr/local/nagios/etc).


Importing Nagios Configuration - Entering the Nagios Configuration Path to the Configuration Files

ImportantProvide a valid Nagios configuration path to ensure a successful import. The full path to the Nagios configuration file can be provided as: /usr/local/nagios/etc/custom_nagios.cfg

3.The Nagios folder can contain multiple resources and cfg files that defines the objects in a chronological order. Each object will be used to build the Group, Host & Nagios Plugin Monitor structure in Monitoring Studio.
4.Click Next to create the objects in Monitoring Studio and proceed to the next step.


Importing Nagios Configuration - Hosts List

5.Click the Hosts button to view the list of the hosts for which you will need to provide information.
6.Click Next to continue.
7.Provide the Nagios credentials that Monitoring Studio will use to run all Nagios Plugin commands on the Nagios server:


Importing Nagios Configuration - Provide System Credentials

Username: Enter the username to connect to the Nagios server.
Password: Enter the password to connect to the Nagios server.
Currently Used by: Lists all objects that are currently using system credentials.
8.Click Next to continue.
9.When some objects (Groups, Hosts, or Monitors) defined in the Nagios configuration already exist in the PATROL Agent configuration, the system prompts you to provide additional information.


Importing Nagios Configuration - Conflicting Objects

Click the Conflicting Objects button to display the complete list of conflicting objects. Then, select an option according to the action you wish to perform:
Overwrite: To overwrite existing objects. Overridden objects will be lost.
Rename by adding this prefix: To add a prefix to the existing objects' names that will help you identify the imported objects. For example, enter 'NAGIOS': All concerned Groups, Hosts and Monitors found will be imported and named NAGIOS<existing-name>.
10.Click Next to continue.
11.Verify the information displayed in the Import Summary:


Importing Nagios Configuration - Import Summary

Pause the monitoring of the imported objects: The imported configuration may need to be customized once created in PATROL. In the meantime, we recommend you to select this option to avoid potential unnecessary error messages and events.
12.Click Next to start the import process.
13.Once the import process is completed, a message is displayed and a full discovery is performed. Click Finish to close the wizard.