mirror of https://github.com/Icinga/icinga2.git
283 lines
6.4 KiB
Plaintext
283 lines
6.4 KiB
Plaintext
/******************************************************************************
|
|
* Icinga 2 *
|
|
* Copyright (C) 2012-present Icinga Development Team (http://www.icinga.org) *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU General Public License *
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
* of the License, or (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
******************************************************************************/
|
|
|
|
type Host {
|
|
%attribute string "display_name",
|
|
%attribute string "check",
|
|
%attribute array "groups" {
|
|
%attribute name(HostGroup) "*"
|
|
},
|
|
%attribute array "host_dependencies" {
|
|
%attribute name(Host) "*"
|
|
},
|
|
%attribute array "service_dependencies" {
|
|
%attribute dictionary "*" {
|
|
%require "host",
|
|
%attribute name(Host) "host",
|
|
|
|
%require "service",
|
|
%attribute string "service"
|
|
}
|
|
},
|
|
%attribute dictionary "services" {
|
|
%attribute dictionary "*" {
|
|
%attribute array "templates" {
|
|
%attribute name(Service) "*"
|
|
},
|
|
|
|
%attribute any "*"
|
|
}
|
|
},
|
|
|
|
%attribute dictionary "macros" {
|
|
%attribute string "*"
|
|
}
|
|
}
|
|
|
|
type HostGroup {
|
|
%attribute string "display_name"
|
|
}
|
|
|
|
type IcingaApplication {
|
|
}
|
|
|
|
type Service {
|
|
%require "host",
|
|
%attribute name(Host) "host",
|
|
|
|
%attribute string "short_name",
|
|
|
|
%attribute string "display_name",
|
|
|
|
%attribute dictionary "macros" {
|
|
%attribute string "*"
|
|
},
|
|
|
|
%require "check_command",
|
|
%attribute name(CheckCommand) "check_command",
|
|
%attribute number "max_check_attempts",
|
|
%attribute name(TimePeriod) "check_period",
|
|
%attribute number "check_interval",
|
|
%attribute number "retry_interval",
|
|
|
|
%attribute number "enable_notifications",
|
|
%attribute number "enable_active_checks",
|
|
%attribute number "enable_passive_checks",
|
|
%attribute number "enable_event_handler",
|
|
|
|
%attribute name(EventCommand) "event_command",
|
|
|
|
%attribute number "enable_flapping",
|
|
%attribute number "flapping_threshold",
|
|
|
|
%attribute number "enable_perfdata",
|
|
|
|
%attribute number "volatile",
|
|
|
|
%attribute array "host_dependencies" {
|
|
%attribute name(Host) "*"
|
|
},
|
|
%attribute array "service_dependencies" {
|
|
%attribute dictionary "*" {
|
|
%require "host",
|
|
%attribute name(Host) "host",
|
|
|
|
%require "service",
|
|
%attribute string "service"
|
|
}
|
|
},
|
|
%attribute array "groups" {
|
|
%attribute name(ServiceGroup) "*"
|
|
},
|
|
|
|
%attribute dictionary "notifications" {
|
|
%attribute dictionary "*" {
|
|
%attribute array "templates" {
|
|
%attribute name(Notification) "*"
|
|
},
|
|
|
|
%attribute any "*"
|
|
}
|
|
},
|
|
|
|
%attribute dictionary "scheduled_downtimes" {
|
|
%attribute dictionary "*" {
|
|
%attribute array "templates" {
|
|
%attribute name(ScheduledDowntime) "*"
|
|
},
|
|
|
|
%attribute any "*"
|
|
}
|
|
},
|
|
|
|
%attribute any "templates",
|
|
|
|
%attribute array "authorities" {
|
|
%attribute name(Endpoint) "*"
|
|
},
|
|
}
|
|
|
|
type ServiceGroup {
|
|
%attribute string "display_name"
|
|
}
|
|
|
|
type Notification {
|
|
%require "host",
|
|
%attribute name(Host) "host",
|
|
|
|
%require "service",
|
|
%attribute string "service",
|
|
|
|
%attribute dictionary "macros" {
|
|
%attribute string "*"
|
|
},
|
|
|
|
%attribute array "users" {
|
|
%attribute name(User) "*"
|
|
},
|
|
%attribute array "user_groups" {
|
|
%attribute name(UserGroup) "*"
|
|
},
|
|
|
|
%attribute dictionary "times" {
|
|
%attribute number "begin",
|
|
%attribute number "end",
|
|
},
|
|
|
|
%require "notification_command",
|
|
%attribute name(NotificationCommand) "notification_command",
|
|
|
|
%attribute number "notification_interval",
|
|
%attribute name(TimePeriod) "notification_period",
|
|
|
|
%attribute number "notification_type_filter",
|
|
%attribute number "notification_state_filter",
|
|
|
|
%attribute any "templates",
|
|
|
|
%attribute array "authorities" {
|
|
%attribute name(Endpoint) "*"
|
|
},
|
|
}
|
|
|
|
type User {
|
|
%attribute string "display_name",
|
|
|
|
%attribute dictionary "macros" {
|
|
%attribute string "*"
|
|
},
|
|
|
|
%attribute array "groups" {
|
|
%attribute name(UserGroup) "*"
|
|
},
|
|
|
|
%attribute number "enable_notifications",
|
|
%attribute number "notification_type_filter",
|
|
%attribute number "notification_state_filter",
|
|
%attribute name(TimePeriod) "notification_period"
|
|
}
|
|
|
|
type UserGroup {
|
|
%attribute string "display_name"
|
|
}
|
|
|
|
type TimePeriod {
|
|
%attribute string "display_name",
|
|
|
|
%require "methods",
|
|
%attribute dictionary "methods" {
|
|
%require "update",
|
|
%attribute string "update"
|
|
},
|
|
|
|
/* %if (methods.update == "LegacyTimePeriod") { */
|
|
// %require "ranges",
|
|
%attribute dictionary "ranges" {
|
|
%attribute string "*"
|
|
}
|
|
/* } */
|
|
}
|
|
|
|
type Command {
|
|
%require "methods",
|
|
%attribute dictionary "methods" {
|
|
%require "execute",
|
|
%attribute string "execute"
|
|
},
|
|
|
|
/* %if (methods.execute == "PluginNotification" || methods.execute == "PluginCheck" || methods.execute == "PluginEvent") { */
|
|
// %require "command",
|
|
%attribute string "command",
|
|
%attribute array "command" {
|
|
%attribute string "*"
|
|
},
|
|
%attribute array "export_macros" {
|
|
%attribute string "*"
|
|
},
|
|
%attribute array "escape_macros" {
|
|
%attribute string "*"
|
|
},
|
|
%attribute dictionary "macros" {
|
|
%attribute string "*"
|
|
},
|
|
%attribute number "timeout"
|
|
/* } */
|
|
}
|
|
|
|
type CheckCommand inherits Command {
|
|
|
|
}
|
|
|
|
type NotificationCommand inherits Command {
|
|
|
|
}
|
|
|
|
type EventCommand inherits Command {
|
|
|
|
}
|
|
|
|
type Domain {
|
|
%attribute dictionary "acl" {
|
|
%attribute number "*"
|
|
}
|
|
}
|
|
|
|
type ScheduledDowntime {
|
|
%require "host",
|
|
%attribute name(Host) "host",
|
|
%require "service",
|
|
%attribute string "service",
|
|
|
|
%require "author",
|
|
%attribute string "author",
|
|
|
|
%require "comment",
|
|
%attribute string "comment",
|
|
|
|
%attribute number "duration",
|
|
%attribute number "fixed",
|
|
|
|
%require "ranges",
|
|
%attribute dictionary "ranges" {
|
|
%attribute string "*"
|
|
},
|
|
|
|
%attribute any "templates"
|
|
}
|