Nagios System API

Admin-only endpoints to manage Nagios XI subsystems, apply configuration, schedule downtime, and execute commands.

Operations 5

GET /system/status Get System Status #
POST /system/applyconfig Apply Configuration #
POST /system/scheduleddowntime Schedule Downtime #
GET /system Get System Information #
GET /system/agent_version Get Agent Version #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nagios-system-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nagios-system-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nagios System API
  version: '1.0'
  description: 'Operations tagged System across 2 of this provider''s published API definitions: nagios-xi-openapi.yml, ncpa-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{nagiosXiHost}/nagiosxi/api/v1
  description: Self-hosted Nagios XI instance
  variables:
    nagiosXiHost:
      default: nagios.example.com
      description: Hostname or IP address of the Nagios XI server
- url: https://{ncpaHost}:5693/api
  description: NCPA agent listening on default TLS port 5693.
  variables:
    ncpaHost:
      default: localhost
tags:
- name: System
  description: Admin-only endpoints to manage Nagios XI subsystems, apply configuration, schedule downtime, and execute commands.
paths:
  /system/status:
    get:
      tags:
      - System
      summary: Get System Status
      operationId: getSystemStatus
      parameters:
      - $ref: '#/components/parameters/Pretty'
      responses:
        '200':
          description: Current Nagios XI process status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemStatus'
      security:
      - ApiKeyQuery: []
      - ApiKeyHeader: []
    servers:
    - url: https://{nagiosXiHost}/nagiosxi/api/v1
      description: Self-hosted Nagios XI instance
      variables:
        nagiosXiHost:
          default: nagios.example.com
          description: Hostname or IP address of the Nagios XI server
  /system/applyconfig:
    post:
      tags:
      - System
      summary: Apply Configuration
      description: Run Apply Configuration to validate and restart Nagios with any pending object changes.
      operationId: applyConfig
      responses:
        '200':
          description: Apply configuration triggered.
      security:
      - ApiKeyQuery: []
      - ApiKeyHeader: []
    servers:
    - url: https://{nagiosXiHost}/nagiosxi/api/v1
      description: Self-hosted Nagios XI instance
      variables:
        nagiosXiHost:
          default: nagios.example.com
          description: Hostname or IP address of the Nagios XI server
  /system/scheduleddowntime:
    post:
      tags:
      - System
      summary: Schedule Downtime
      operationId: scheduleDowntime
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                comment:
                  type: string
                start:
                  type: integer
                  format: int64
                  description: Unix timestamp.
                end:
                  type: integer
                  format: int64
                hosts[]:
                  type: array
                  items:
                    type: string
                services[host][]:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Downtime scheduled.
      security:
      - ApiKeyQuery: []
      - ApiKeyHeader: []
    servers:
    - url: https://{nagiosXiHost}/nagiosxi/api/v1
      description: Self-hosted Nagios XI instance
      variables:
        nagiosXiHost:
          default: nagios.example.com
          description: Hostname or IP address of the Nagios XI server
  /system:
    get:
      tags:
      - System
      summary: Get System Information
      operationId: getSystem
      parameters:
      - $ref: '#/components/parameters/Token'
      responses:
        '200':
          description: Host system info.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricResponse'
      security:
      - TokenAuth: []
    servers:
    - url: https://{ncpaHost}:5693/api
      description: NCPA agent listening on default TLS port 5693.
      variables:
        ncpaHost:
          default: localhost
  /system/agent_version:
    get:
      tags:
      - System
      summary: Get Agent Version
      operationId: getAgentVersion
      parameters:
      - $ref: '#/components/parameters/Token'
      responses:
        '200':
          description: NCPA agent version.
      security:
      - TokenAuth: []
    servers:
    - url: https://{ncpaHost}:5693/api
      description: NCPA agent listening on default TLS port 5693.
      variables:
        ncpaHost:
          default: localhost
components:
  parameters:
    Pretty:
      name: pretty
      in: query
      schema:
        type: integer
        enum:
        - 0
        - 1
        default: 0
      description: Set to 1 to return human-readable formatted JSON.
    Token:
      name: token
      in: query
      required: true
      schema:
        type: string
      description: NCPA community_string token from agent config.
  schemas:
    SystemStatus:
      type: object
      properties:
        instance_id:
          type: string
        instance_name:
          type: string
        status_update_time:
          type: string
          format: date-time
        program_start_time:
          type: string
          format: date-time
        program_run_time:
          type: string
        is_currently_running:
          type: integer
          enum:
          - 0
          - 1
        process_id:
          type: string
        daemon_mode:
          type: integer
          enum:
          - 0
          - 1
        notifications_enabled:
          type: integer
          enum:
          - 0
          - 1
        active_service_checks_enabled:
          type: integer
          enum:
          - 0
          - 1
        passive_service_checks_enabled:
          type: integer
          enum:
          - 0
          - 1
        active_host_checks_enabled:
          type: integer
          enum:
          - 0
          - 1
        passive_host_checks_enabled:
          type: integer
          enum:
          - 0
          - 1
        event_handlers_enabled:
          type: integer
          enum:
          - 0
          - 1
        flap_detection_enabled:
          type: integer
          enum:
          - 0
          - 1
        process_performance_data:
          type: integer
          enum:
          - 0
          - 1
    MetricResponse:
      type: object
      additionalProperties:
        type: array
        description: '[value, "unit"] pair returned per metric.'
        minItems: 2
        maxItems: 2
        items: {}
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: apikey
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY
    TokenAuth:
      type: apiKey
      in: query
      name: token
x-refined-from:
- nagios-xi-openapi.yml
- ncpa-openapi.yml