# Nagios XI

## **Configure Nagios XI for API Access:** <a href="#create-webhook-for-incoming-alerts-from-dynatrace-1" id="create-webhook-for-incoming-alerts-from-dynatrace-1"></a>

CloudFabrix supports Nagios XI API integration for fetching asset inventory (host, service data) , relationship data (host & service groups) periodically or on demand. The collected data is primarily used to get additional information for Alert enrichment, correlation to reduce the alert noise & to triage the incident faster. For API integration, it requires only read access permissions. Follow the below given steps to create service account for CloudFabrix AIOps solution with read-only permissions on Nagios XI monitoring tool.

**Step 1:** Login into Nagios XI monitoring tool with admin privileges.

**Step2:** Click on '**Admin**' --> Click on '**Manage Users**' and --> Click on '**Add New User**' to create new user account.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvUu36oJhYDm_vVWfz%2F-Mcvqz7bPa8ImvM1xw-g%2FScreen%20Shot%202021-06-23%20at%207.31.34%20PM.png?alt=media\&token=aeb4d104-c078-43bf-949b-0bf2eaa0a909)

**Step 3:** Enter **Username**, **Password**, **Name** & **Email Address**.

**Unselect the below items:**

* Force Password Change at Next Login:
* Email User Account Information:
* Create as Monitoring Contact

**Select the below items:**

* Account Enabled
* Security Settings
  * Authorization Level: User
  * Can see all hosts and services
  * Read-only access
  * API access

Click on '**Add User**'

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvUu36oJhYDm_vVWfz%2F-McvrADZ9h1PDrVvU8ek%2FScreen%20Shot%202021-06-23%20at%207.32.28%20PM.png?alt=media\&token=eeae77b9-ad0e-4a5a-9650-c3a4a1a4ddf7)

**Step 4:** Click on newly create user account (i.e. cfx-readonly) to view the account settings.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvUu36oJhYDm_vVWfz%2F-McvrOhCsxM64AUZDzyV%2FScreen%20Shot%202021-06-23%20at%207.33.26%20PM.png?alt=media\&token=865d1b4a-a6f2-4fae-b01e-fbf95bb9eddf)

**Step 5:** Copy the API Key to feed it into CloudFabrix AIOps solution. You can also generate new API key by clicking on '**Generate new API key**' button.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvUu36oJhYDm_vVWfz%2F-McvrgAuJLGsQrPQmXRn%2FScreen%20Shot%202021-06-23%20at%207.34.43%20PM.png?alt=media\&token=2f7870da-7eb0-4a9e-ba91-69d81ed1ea17)

## Adding Nagios XI as Datasource/Extension in 'RDA': <a href="#adding-appdynamics-as-datasource" id="adding-appdynamics-as-datasource"></a>

Nagios XI or any other datasource/extension's configuration is configured in RDA's user interface.  Login into RDA's user interface using a browser.

**https\://\<rda-ip-address>:9998**

Under '**Notebook**', click on '**CFXDX Python 3**' box

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvHoBvh7w9qGIU_z-A%2F-McvJao2W2zwuMV05Ek3%2FScreen%20Shot%202021-06-23%20at%205.01.23%20PM.png?alt=media\&token=1aa15ba1-6465-4c67-9cc8-ac4ed66f895f)

In the '**Notebook**' command box, type **`botadmin()`** and **`alt (or option) + Enter`** to open datasource administration menu.

Click on '**Add**' menu and under **Type** drop down, select **`nagios`**

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvUu36oJhYDm_vVWfz%2F-McvtEaeQziwksVnE8rt%2FScreen%20Shot%202021-06-23%20at%207.41.29%20PM.png?alt=media\&token=91015633-0e46-4b4d-9f8a-4add3a50e3bb)

* **type**: Datasource/Extension type. In this context, it is '**nagios**'
* **name**: Datasource/Extension label which should be unique within the RDA
* **Hostname:** VMware vCenter's IP Address or DNS name
* **API Key**: API key in Nagios UI that was created with 'read-only' permissions

Click on '**Check Connectivity**' to verify the network access and credentials validity. Once it is validated, click on '**Add**' button to add the Nagios XI as a datasource.

Below are available data bots for Nagios XI datasource.

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-McvUu36oJhYDm_vVWfz%2F-Mcvtu_GiwC0jzgNcUE2%2FScreen%20Shot%202021-06-23%20at%207.44.25%20PM.png?alt=media\&token=8c00061f-a619-41e2-a7f5-fb2168403f68)

## Nagios exploration in '**RDA**': <a href="#adding-appdynamics-as-datasource" id="adding-appdynamics-as-datasource"></a>

Once Nagios integration details are configured in RDA as a datasource, it will be ready to connect to targe Nagios and explore the data for the analysis.

For the details on Nagios inventory data collection bots, refer [**CloudFabrix RDA Bot documentation.**](https://bot-docs.cloudfabrix.io/Bots/nagios/)
