Nagios · Schema

Nagios XI Service

Definition of a monitored service on a host, mirroring `define service { ... }` and the `POST /config/service` endpoint.

MonitoringInfrastructure MonitoringNetwork MonitoringOpen SourceIT OperationsAlertingObservabilityNagios XINagios CoreNCPANRPENSCANRDP

Properties

Name Type Description
host_name string
service_description string
display_name string
use string
servicegroups 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 w,u,c,r,f,s,n.
contacts string
contact_groups string
active_checks_enabled integer
passive_checks_enabled integer
freshness_threshold integer
is_volatile integer
View JSON Schema on GitHub

JSON Schema

nagios-xi-service-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-service-schema.json",
  "title": "Nagios XI Service",
  "description": "Definition of a monitored service on a host, mirroring `define service { ... }` and the `POST /config/service` endpoint.",
  "type": "object",
  "required": ["host_name", "service_description"],
  "properties": {
    "host_name": { "type": "string" },
    "service_description": { "type": "string" },
    "display_name": { "type": "string" },
    "use": { "type": "string" },
    "servicegroups": { "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 w,u,c,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] },
    "freshness_threshold": { "type": "integer" },
    "is_volatile": { "type": "integer", "enum": [0, 1] }
  }
}