Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Nagios Config API

Admin-only endpoints to add, modify, and delete hosts and services.

Nagios Config API is one of 13 APIs that Nagios publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 6 JSON Schema definitions.

Tagged areas include Config. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 6 JSON Schemas.

This API exposes 4 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version v1.

Requests are made against a single base URL, https://{nagiosXiHost}/nagiosxi/api/v1.

4 operations 2 paths 4 schemas 2 DELETE2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v1
Base URL
https://{nagios-xi-host}/nagiosxi/api/v1
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

Nagios Config API declares 2 security schemes for authenticating requests. An API key is passed in the query as apikey (ApiKeyQuery). An API key is passed in the header as X-API-KEY (ApiKeyHeader). By default, every request must be authenticated.

Paths & Operations 4

Across 2 paths, the API surfaces 4 operations — 2 DELETE, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Config 4

Admin-only endpoints to add, modify, and delete hosts and services.

POST
/config/host
Create Or Update Host
createOrUpdateHost body → 200400
DELETE
/config/host
Delete Host
deleteHost 2 params → 200
POST
/config/service
Create Or Update Service
createOrUpdateService body → 200
DELETE
/config/service
Delete Service
deleteService 3 params → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are ServiceInput (14 properties), HostInput (13 properties), MutationError (2 properties), MutationResult (1 property). Each schema is shown below with its type and property counts.

MutationError
object
2 properties
MutationResult
object
1 property
ServiceInput
object
14 properties 2 required
HostInput
object
13 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nagios-config-api-openapi.yml Raw ↑

Other APIs Nagios publishes across the network.

NSCA (Nagios Service Check Acceptor)
NRPE (Nagios Remote Plugin Executor)
Nagios CPU API
Nagios Disk API
Nagios Interface API
Nagios Memory API
Nagios Objects API
Nagios Plugins API
Nagios Processes API
Nagios Services API
Nagios Submission API
Nagios System API