Nagios · Schema

Nagios XI Host

Definition of a monitored host in Nagios XI / Nagios Core. Mirrors the directives accepted by `define host { ... }` and the `POST /config/host` REST endpoint.

MonitoringInfrastructure MonitoringNetwork MonitoringOpen SourceIT OperationsAlertingObservabilityNagios XINagios CoreNCPANRPENSCANRDP

Properties

Name Type Description
host_name string Unique host identifier.
alias string
address string IP address or DNS name.
display_name string
use string Inherited template name (e.g. xiwizard_generic_host).
parents array
hostgroups array
check_command string
max_check_attempts integer
check_interval number
retry_interval number
check_period string
notification_interval number
notification_period string
notification_options string Combination of d,u,r,f,s,n.
contacts string
contact_groups string
active_checks_enabled integer
passive_checks_enabled integer
notifications_enabled integer
event_handler_enabled integer
flap_detection_enabled integer
process_perf_data integer
View JSON Schema on GitHub

JSON Schema

nagios-xi-host-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nagios/main/json-schema/nagios-xi-host-schema.json",
  "title": "Nagios XI Host",
  "description": "Definition of a monitored host in Nagios XI / Nagios Core. Mirrors the directives accepted by `define host { ... }` and the `POST /config/host` REST endpoint.",
  "type": "object",
  "required": ["host_name", "address"],
  "properties": {
    "host_name": { "type": "string", "description": "Unique host identifier." },
    "alias": { "type": "string" },
    "address": { "type": "string", "description": "IP address or DNS name." },
    "display_name": { "type": "string" },
    "use": { "type": "string", "description": "Inherited template name (e.g. xiwizard_generic_host)." },
    "parents": { "type": "array", "items": { "type": "string" } },
    "hostgroups": { "type": "array", "items": { "type": "string" } },
    "check_command": { "type": "string" },
    "max_check_attempts": { "type": "integer", "minimum": 1 },
    "check_interval": { "type": "number", "minimum": 0 },
    "retry_interval": { "type": "number", "minimum": 0 },
    "check_period": { "type": "string" },
    "notification_interval": { "type": "number" },
    "notification_period": { "type": "string" },
    "notification_options": { "type": "string", "description": "Combination of d,u,r,f,s,n." },
    "contacts": { "type": "string" },
    "contact_groups": { "type": "string" },
    "active_checks_enabled": { "type": "integer", "enum": [0, 1] },
    "passive_checks_enabled": { "type": "integer", "enum": [0, 1] },
    "notifications_enabled": { "type": "integer", "enum": [0, 1] },
    "event_handler_enabled": { "type": "integer", "enum": [0, 1] },
    "flap_detection_enabled": { "type": "integer", "enum": [0, 1] },
    "process_perf_data": { "type": "integer", "enum": [0, 1] }
  }
}