2013-02-01 11:39:06 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
|
|
|
* Copyright (C) 2012 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. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type Host {
|
2013-03-13 11:24:58 +01:00
|
|
|
%attribute string "display_name",
|
2013-02-07 20:29:35 +01:00
|
|
|
%attribute string "hostcheck",
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "hostgroups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(HostGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "hostdependencies" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Host) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "servicedependencies" {
|
|
|
|
%attribute dictionary "*" {
|
|
|
|
%require "host",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Host) "host",
|
2013-03-14 13:24:07 +01:00
|
|
|
|
|
|
|
%require "service",
|
|
|
|
%attribute string "service"
|
|
|
|
}
|
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "services" {
|
2013-02-15 12:41:32 +01:00
|
|
|
%validator "ValidateServiceDictionary",
|
2013-02-06 12:09:50 +01:00
|
|
|
|
|
|
|
%attribute dictionary "*" {
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "templates" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Service) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2013-02-06 12:09:50 +01:00
|
|
|
|
2013-02-13 20:08:09 +01:00
|
|
|
%attribute string "short_name",
|
2013-03-19 14:47:19 +01:00
|
|
|
%attribute string "display_name",
|
2013-02-13 20:08:09 +01:00
|
|
|
|
2013-02-06 12:09:50 +01:00
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
|
|
|
},
|
|
|
|
|
2013-06-24 09:30:49 +02:00
|
|
|
%attribute name(CheckCommand) "check_command",
|
|
|
|
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(TimePeriod) "check_period",
|
2013-02-06 12:09:50 +01:00
|
|
|
%attribute number "check_interval",
|
|
|
|
%attribute number "retry_interval",
|
|
|
|
|
2013-03-21 13:42:46 +01:00
|
|
|
%attribute number "notification_interval",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(TimePeriod) "notification_period",
|
2013-03-21 13:42:46 +01:00
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "servicegroups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(ServiceGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "checkers" {
|
|
|
|
%attribute string "*"
|
|
|
|
},
|
|
|
|
%attribute array "hostdependencies" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Host) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "servicedependencies" {
|
|
|
|
%attribute dictionary "*" {
|
|
|
|
%require "host",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Host) "host",
|
2013-03-14 13:24:07 +01:00
|
|
|
|
|
|
|
%require "service",
|
|
|
|
%attribute string "service"
|
|
|
|
}
|
2013-03-22 14:40:55 +01:00
|
|
|
},
|
2013-03-22 14:41:11 +01:00
|
|
|
|
|
|
|
%attribute dictionary "notifications" {
|
|
|
|
%attribute dictionary "*" {
|
|
|
|
%attribute array "templates" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Notification) "*"
|
2013-03-22 14:41:11 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
|
|
|
},
|
|
|
|
|
|
|
|
%attribute array "users" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(User) "*"
|
2013-03-22 14:41:11 +01:00
|
|
|
},
|
|
|
|
%attribute array "groups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(UserGroup) "*"
|
2013-05-13 13:44:57 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
%attribute dictionary "times" {
|
|
|
|
%attribute number "begin",
|
|
|
|
%attribute number "end",
|
|
|
|
},
|
2013-06-26 09:50:04 +02:00
|
|
|
|
|
|
|
%attribute number "notification_type_filter",
|
|
|
|
%attribute number "notification_state_filter"
|
2013-03-22 14:41:11 +01:00
|
|
|
}
|
|
|
|
},
|
2013-02-06 12:09:50 +01:00
|
|
|
}
|
2013-02-03 11:45:56 +01:00
|
|
|
},
|
|
|
|
|
2013-02-09 15:20:10 +01:00
|
|
|
%attribute dictionary "notifications" {
|
|
|
|
%attribute dictionary "*" {
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "templates" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Notification) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2013-02-09 15:20:10 +01:00
|
|
|
|
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
2013-02-24 08:26:10 +01:00
|
|
|
},
|
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "users" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(User) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "groups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(UserGroup) "*"
|
2013-05-13 13:44:57 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
%attribute dictionary "times" {
|
|
|
|
%attribute number "begin",
|
|
|
|
%attribute number "end",
|
|
|
|
},
|
2013-06-26 09:50:04 +02:00
|
|
|
|
|
|
|
%attribute number "notification_type_filter",
|
|
|
|
%attribute number "notification_state_filter"
|
2013-02-09 15:20:10 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-02-03 11:45:56 +01:00
|
|
|
/* service attributes */
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute number "max_check_attempts",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(TimePeriod) "check_period",
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute number "check_interval",
|
|
|
|
%attribute number "retry_interval",
|
2013-03-21 13:42:46 +01:00
|
|
|
|
2013-02-27 18:15:01 +01:00
|
|
|
%attribute number "notification_interval",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(TimePeriod) "notification_period",
|
2013-03-21 13:42:46 +01:00
|
|
|
|
2013-06-26 09:50:04 +02:00
|
|
|
%attribute number "notification_type_filter",
|
2013-06-26 10:01:44 +02:00
|
|
|
%attribute number "notification_state_filter",
|
2013-06-26 09:50:04 +02:00
|
|
|
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-03-22 14:40:55 +01:00
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "servicegroups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(ServiceGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "checkers" {
|
|
|
|
%attribute string "*"
|
|
|
|
}
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type HostGroup {
|
2013-03-13 11:24:58 +01:00
|
|
|
%attribute string "display_name",
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "notes_url",
|
|
|
|
%attribute string "action_url"
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type IcingaApplication {
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "cert_path",
|
|
|
|
%attribute string "ca_path",
|
|
|
|
%attribute string "node",
|
|
|
|
%attribute string "service",
|
|
|
|
%attribute string "pid_path",
|
|
|
|
%attribute string "state_path",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
|
|
|
}
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Service {
|
2013-02-06 00:32:05 +01:00
|
|
|
%require "host_name",
|
|
|
|
%attribute string "host_name",
|
|
|
|
|
2013-02-08 15:38:22 +01:00
|
|
|
%attribute string "short_name",
|
|
|
|
|
2013-03-13 11:24:58 +01:00
|
|
|
%attribute string "display_name",
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
|
|
|
},
|
2013-03-22 14:40:55 +01:00
|
|
|
|
2013-06-13 11:33:00 +02:00
|
|
|
%require "check_command",
|
|
|
|
%attribute name(CheckCommand) "check_command",
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute number "max_check_attempts",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(TimePeriod) "check_period",
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute number "check_interval",
|
|
|
|
%attribute number "retry_interval",
|
2013-03-21 13:42:46 +01:00
|
|
|
|
2013-06-13 11:33:00 +02:00
|
|
|
%attribute name(EventCommand) "event_command",
|
|
|
|
|
2013-03-21 13:42:46 +01:00
|
|
|
%attribute number "notification_interval",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(TimePeriod) "notification_period",
|
2013-03-21 13:42:46 +01:00
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "hostdependencies" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Host) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "servicedependencies" {
|
|
|
|
%attribute dictionary "*" {
|
|
|
|
%require "host",
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Host) "host",
|
2013-03-14 13:24:07 +01:00
|
|
|
|
|
|
|
%require "service",
|
|
|
|
%attribute string "service"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
%attribute array "servicegroups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(ServiceGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "checkers" {
|
|
|
|
%attribute string "*"
|
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
|
2013-02-09 15:20:10 +01:00
|
|
|
%attribute dictionary "notifications" {
|
|
|
|
%attribute dictionary "*" {
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "templates" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(Notification) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2013-02-09 15:20:10 +01:00
|
|
|
|
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
2013-02-24 08:26:10 +01:00
|
|
|
},
|
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "users" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(User) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "groups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(UserGroup) "*"
|
2013-05-13 13:44:57 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
%attribute dictionary "times" {
|
|
|
|
%attribute number "begin",
|
|
|
|
%attribute number "end",
|
|
|
|
},
|
|
|
|
|
2013-06-26 09:50:04 +02:00
|
|
|
%attribute number "notification_type_filter",
|
|
|
|
%attribute number "notification_state_filter"
|
2013-02-09 15:20:10 +01:00
|
|
|
}
|
2013-03-21 13:42:46 +01:00
|
|
|
}
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type ServiceGroup {
|
2013-03-13 11:24:58 +01:00
|
|
|
%attribute string "display_name",
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "notes_url",
|
|
|
|
%attribute string "action_url"
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-09 11:42:22 +01:00
|
|
|
type Notification {
|
|
|
|
%require "host_name",
|
|
|
|
%attribute string "host_name",
|
|
|
|
%attribute string "service",
|
|
|
|
|
|
|
|
%attribute dictionary "macros" {
|
2013-02-27 21:49:03 +01:00
|
|
|
%attribute string "*"
|
|
|
|
},
|
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "users" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(User) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
|
|
|
%attribute array "groups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(UserGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2013-03-12 13:45:54 +01:00
|
|
|
|
2013-05-13 13:44:57 +02:00
|
|
|
%attribute dictionary "times" {
|
|
|
|
%attribute number "begin",
|
|
|
|
%attribute number "end",
|
|
|
|
},
|
|
|
|
|
2013-06-13 11:33:00 +02:00
|
|
|
%attribute name(NotificationCommand) "notification_command",
|
2013-03-20 10:08:27 +01:00
|
|
|
|
2013-03-21 13:42:46 +01:00
|
|
|
%attribute number "notification_interval",
|
2013-06-26 09:08:50 +02:00
|
|
|
%attribute name(TimePeriod) "notification_period",
|
|
|
|
|
2013-06-26 09:50:04 +02:00
|
|
|
%attribute number "notification_type_filter",
|
|
|
|
%attribute number "notification_state_filter"
|
2013-02-09 11:42:22 +01:00
|
|
|
}
|
2013-02-14 12:02:02 +01:00
|
|
|
|
2013-02-24 08:26:10 +01:00
|
|
|
type User {
|
2013-02-28 10:50:20 +01:00
|
|
|
%attribute string "display_name",
|
|
|
|
|
2013-02-24 08:26:10 +01:00
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
2013-02-27 21:49:03 +01:00
|
|
|
},
|
|
|
|
|
2013-03-14 13:24:07 +01:00
|
|
|
%attribute array "groups" {
|
2013-05-03 10:48:28 +02:00
|
|
|
%attribute name(UserGroup) "*"
|
2013-06-26 09:08:50 +02:00
|
|
|
},
|
|
|
|
|
2013-06-26 09:50:04 +02:00
|
|
|
%attribute number "notification_type_filter",
|
|
|
|
%attribute number "notification_state_filter"
|
2013-06-26 09:08:50 +02:00
|
|
|
|
2013-02-24 08:26:10 +01:00
|
|
|
}
|
|
|
|
|
2013-02-27 21:49:03 +01:00
|
|
|
type UserGroup {
|
|
|
|
%attribute string "display_name",
|
|
|
|
%attribute string "action_url",
|
|
|
|
%attribute string "notes_url"
|
|
|
|
}
|
2013-03-13 16:04:53 +01:00
|
|
|
|
|
|
|
type TimePeriod {
|
|
|
|
%require "methods",
|
|
|
|
%attribute dictionary "methods" {
|
|
|
|
%require "update",
|
|
|
|
%attribute string "update"
|
|
|
|
},
|
2013-06-27 11:25:10 +02:00
|
|
|
|
|
|
|
/* %if (methods.update == "LegacyTimePeriod") { */
|
|
|
|
// %require "ranges",
|
|
|
|
%attribute dictionary "ranges" {
|
|
|
|
%attribute string "*"
|
|
|
|
}
|
|
|
|
/* } */
|
2013-03-13 16:04:53 +01:00
|
|
|
}
|
2013-03-22 15:31:21 +01:00
|
|
|
|
|
|
|
type PerfdataWriter {
|
|
|
|
%attribute string "path_prefix",
|
|
|
|
%attribute string "format_template",
|
|
|
|
%attribute number "rotation_interval"
|
|
|
|
}
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
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 dictionary "macros" {
|
|
|
|
%attribute string "*"
|
2013-06-13 12:05:24 +02:00
|
|
|
},
|
|
|
|
%attribute number "timeout"
|
2013-06-13 11:33:00 +02:00
|
|
|
/* } */
|
|
|
|
}
|
|
|
|
|
|
|
|
type CheckCommand inherits Command {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotificationCommand inherits Command {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
type EventCommand inherits Command {
|
|
|
|
|
2013-06-24 09:30:49 +02:00
|
|
|
}
|