2013-02-01 11:39:06 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
2014-03-19 01:02:29 +01:00
|
|
|
* Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org) *
|
2013-02-01 11:39:06 +01:00
|
|
|
* *
|
|
|
|
* 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. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type IcingaApplication {
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type IcingaStatusWriter {
|
2014-08-17 17:57:20 +02:00
|
|
|
%attribute %string "status_path",
|
|
|
|
%attribute %number "update_interval"
|
2014-02-17 18:51:16 +01:00
|
|
|
}
|
|
|
|
|
2014-04-03 15:36:13 +02:00
|
|
|
%type Checkable {
|
2014-12-05 12:59:57 +01:00
|
|
|
%validator "ValidateCheckableCheckInterval",
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "display_name",
|
2013-03-22 14:40:55 +01:00
|
|
|
|
2013-06-13 11:33:00 +02:00
|
|
|
%require "check_command",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %name(CheckCommand) "check_command",
|
|
|
|
%attribute %number "max_check_attempts",
|
|
|
|
%attribute %name(TimePeriod) "check_period",
|
|
|
|
%attribute %number "check_interval",
|
|
|
|
%attribute %number "retry_interval",
|
2013-03-21 13:42:46 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "enable_notifications",
|
|
|
|
%attribute %number "enable_active_checks",
|
|
|
|
%attribute %number "enable_passive_checks",
|
|
|
|
%attribute %number "enable_event_handler",
|
2013-10-16 11:46:54 +02:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %name(EventCommand) "event_command",
|
2013-06-13 11:33:00 +02:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "enable_flapping",
|
|
|
|
%attribute %number "flapping_threshold",
|
2013-07-01 14:09:54 +02:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "enable_perfdata",
|
2013-10-16 17:18:21 +02:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "volatile",
|
2013-09-24 13:33:16 +02:00
|
|
|
|
2014-04-08 13:23:24 +02:00
|
|
|
%attribute %string "notes",
|
|
|
|
%attribute %string "notes_url",
|
|
|
|
%attribute %string "action_url",
|
|
|
|
%attribute %string "icon_image",
|
|
|
|
%attribute %string "icon_image_alt",
|
2014-11-13 11:23:57 +01:00
|
|
|
|
|
|
|
%attribute %name(Endpoint) "command_endpoint",
|
2014-04-03 15:36:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
%type Host %inherits Checkable {
|
|
|
|
%attribute %string "display_name",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %array "groups" {
|
2014-04-03 15:36:13 +02:00
|
|
|
%attribute %name(HostGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2014-04-08 13:23:24 +02:00
|
|
|
|
|
|
|
%attribute %string "address",
|
|
|
|
%attribute %string "address6",
|
2014-04-03 15:36:13 +02:00
|
|
|
}
|
2013-02-06 00:32:05 +01:00
|
|
|
|
2014-04-03 15:36:13 +02:00
|
|
|
%type HostGroup {
|
|
|
|
%attribute %string "display_name"
|
2014-04-14 20:59:41 +02:00
|
|
|
|
|
|
|
%attribute %array "groups" {
|
|
|
|
%attribute %name(HostGroup) "*"
|
|
|
|
},
|
2014-04-24 14:48:57 +02:00
|
|
|
|
|
|
|
%attribute %string "notes",
|
|
|
|
%attribute %string "notes_url",
|
|
|
|
%attribute %string "action_url",
|
2014-04-03 15:36:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
%type Service %inherits Checkable {
|
2014-04-05 09:15:40 +02:00
|
|
|
%require "host_name",
|
|
|
|
%attribute %name(Host) "host_name",
|
2014-04-03 15:36:13 +02:00
|
|
|
|
2014-04-05 09:15:40 +02:00
|
|
|
%attribute %string "name",
|
2014-04-03 15:36:13 +02:00
|
|
|
|
|
|
|
%attribute %array "groups" {
|
|
|
|
%attribute %name(ServiceGroup) "*"
|
2014-02-10 08:50:09 +01:00
|
|
|
},
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type ServiceGroup {
|
|
|
|
%attribute %string "display_name"
|
2014-04-14 20:59:41 +02:00
|
|
|
|
|
|
|
%attribute %array "groups" {
|
|
|
|
%attribute %name(ServiceGroup) "*"
|
|
|
|
},
|
2014-04-24 14:48:57 +02:00
|
|
|
|
|
|
|
%attribute %string "notes",
|
|
|
|
%attribute %string "notes_url",
|
|
|
|
%attribute %string "action_url",
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type Notification {
|
2014-04-07 13:59:41 +02:00
|
|
|
%validator "ValidateNotificationFilters"
|
|
|
|
|
2014-04-05 09:15:40 +02:00
|
|
|
%require "host_name",
|
|
|
|
%attribute %name(Host) "host_name",
|
|
|
|
%attribute %string "service_name",
|
2013-02-09 11:42:22 +01:00
|
|
|
|
2014-04-05 23:15:56 +02:00
|
|
|
%attribute %string "name",
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %array "users" {
|
|
|
|
%attribute %name(User) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %array "user_groups" {
|
|
|
|
%attribute %name(UserGroup) "*"
|
2013-03-14 13:24:07 +01:00
|
|
|
},
|
2013-03-12 13:45:54 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %dictionary "times" {
|
|
|
|
%attribute %number "begin",
|
|
|
|
%attribute %number "end",
|
2013-05-13 13:44:57 +02:00
|
|
|
},
|
|
|
|
|
2014-04-09 10:25:23 +02:00
|
|
|
%require "command",
|
|
|
|
%attribute %name(NotificationCommand) "command",
|
2013-03-20 10:08:27 +01:00
|
|
|
|
2014-04-09 10:25:23 +02:00
|
|
|
%attribute %number "interval",
|
|
|
|
%attribute %name(TimePeriod) "period",
|
2013-06-26 09:08:50 +02:00
|
|
|
|
2014-04-09 10:25:23 +02:00
|
|
|
%attribute %array "types" {
|
2014-04-07 13:59:41 +02:00
|
|
|
%attribute %number "*"
|
|
|
|
},
|
2014-04-09 10:25:23 +02:00
|
|
|
%attribute %array "states" {
|
2014-04-07 13:59:41 +02:00
|
|
|
%attribute %number "*"
|
|
|
|
},
|
2014-11-13 11:23:57 +01:00
|
|
|
|
|
|
|
%attribute %name(Endpoint) "command_endpoint",
|
2013-02-09 11:42:22 +01:00
|
|
|
}
|
2013-02-14 12:02:02 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type User {
|
|
|
|
%attribute %string "display_name",
|
2013-02-28 10:50:20 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %array "groups" {
|
|
|
|
%attribute %name(UserGroup) "*"
|
2013-06-26 09:08:50 +02:00
|
|
|
},
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "enable_notifications",
|
2014-04-09 10:25:23 +02:00
|
|
|
%attribute %array "types" {
|
2014-04-07 13:59:41 +02:00
|
|
|
%attribute %number "*"
|
|
|
|
},
|
2014-04-09 10:25:23 +02:00
|
|
|
%attribute %array "states" {
|
2014-04-07 13:59:41 +02:00
|
|
|
%attribute %number "*"
|
|
|
|
},
|
2014-04-09 10:25:23 +02:00
|
|
|
%attribute %name(TimePeriod) "period",
|
2014-04-08 13:23:24 +02:00
|
|
|
|
|
|
|
%attribute %string "email",
|
|
|
|
%attribute %string "pager",
|
2013-02-24 08:26:10 +01:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type UserGroup {
|
2014-04-14 20:59:41 +02:00
|
|
|
%attribute %string "display_name",
|
|
|
|
|
|
|
|
%attribute %array "groups" {
|
|
|
|
%attribute %name(UserGroup) "*"
|
|
|
|
},
|
2013-02-27 21:49:03 +01:00
|
|
|
}
|
2013-03-13 16:04:53 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type TimePeriod {
|
|
|
|
%attribute %string "display_name",
|
2013-07-18 15:30:17 +02:00
|
|
|
|
2014-12-12 20:40:24 +01:00
|
|
|
%require "update",
|
|
|
|
%attribute %any "update",
|
2013-06-27 11:25:10 +02:00
|
|
|
|
|
|
|
/* %if (methods.update == "LegacyTimePeriod") { */
|
|
|
|
// %require "ranges",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %dictionary "ranges" {
|
|
|
|
%attribute %string "*"
|
2013-06-27 11:25:10 +02:00
|
|
|
}
|
|
|
|
/* } */
|
2013-03-13 16:04:53 +01:00
|
|
|
}
|
2013-03-22 15:31:21 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type Command {
|
2014-07-16 12:58:18 +02:00
|
|
|
%validator "ValidateCommandAttributes",
|
2014-12-12 20:40:24 +01:00
|
|
|
|
|
|
|
%require "execute",
|
|
|
|
%attribute %any "execute",
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
/* %if (methods.execute == "PluginNotification" || methods.execute == "PluginCheck" || methods.execute == "PluginEvent") { */
|
|
|
|
// %require "command",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "command",
|
|
|
|
%attribute %array "command" {
|
|
|
|
%attribute %string "*"
|
2013-06-13 11:33:00 +02:00
|
|
|
},
|
2014-04-26 13:16:08 +02:00
|
|
|
%attribute %dictionary "arguments" {
|
|
|
|
%attribute %string "*",
|
|
|
|
%attribute %dictionary "*" {
|
2014-11-26 20:43:42 +01:00
|
|
|
%attribute %string "key"
|
2014-04-26 13:16:08 +02:00
|
|
|
%attribute %string "value"
|
|
|
|
%attribute %string "description"
|
2014-04-29 10:41:32 +02:00
|
|
|
%attribute %number "required"
|
2014-04-26 18:19:12 +02:00
|
|
|
%attribute %number "skip_key"
|
2014-11-26 20:43:42 +01:00
|
|
|
%attribute %number "repeat_key"
|
2014-04-26 13:16:08 +02:00
|
|
|
%attribute %string "set_if"
|
2014-04-29 10:32:06 +02:00
|
|
|
%attribute %number "order"
|
2014-04-26 13:16:08 +02:00
|
|
|
}
|
|
|
|
},
|
2014-04-04 22:57:56 +02:00
|
|
|
%attribute %dictionary "env" {
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "*"
|
2013-06-13 11:33:00 +02:00
|
|
|
},
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "timeout"
|
2013-06-13 11:33:00 +02:00
|
|
|
/* } */
|
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type CheckCommand %inherits Command {
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type NotificationCommand %inherits Command {
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type EventCommand %inherits Command {
|
2013-06-13 11:33:00 +02:00
|
|
|
|
2013-06-24 09:30:49 +02:00
|
|
|
}
|
2013-09-17 13:18:26 +02:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type ScheduledDowntime {
|
2014-04-05 09:15:40 +02:00
|
|
|
%require "host_name",
|
|
|
|
%attribute %name(Host) "host_name",
|
|
|
|
%attribute %string "service_name",
|
2013-11-13 14:56:31 +01:00
|
|
|
|
2014-04-05 23:15:56 +02:00
|
|
|
%attribute %string "name",
|
|
|
|
|
2013-11-13 14:56:31 +01:00
|
|
|
%require "author",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "author",
|
2013-11-13 14:56:31 +01:00
|
|
|
|
|
|
|
%require "comment",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "comment",
|
2013-11-13 14:56:31 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "duration",
|
|
|
|
%attribute %number "fixed",
|
2013-11-13 14:56:31 +01:00
|
|
|
|
|
|
|
%require "ranges",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %dictionary "ranges" {
|
|
|
|
%attribute %string "*"
|
2013-11-13 14:56:31 +01:00
|
|
|
},
|
|
|
|
}
|
2014-02-27 11:05:55 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type Dependency {
|
2014-04-07 13:59:41 +02:00
|
|
|
%validator "ValidateDependencyFilters"
|
|
|
|
|
2014-04-05 09:15:40 +02:00
|
|
|
%require "parent_host_name",
|
|
|
|
%attribute %name(Host) "parent_host_name",
|
|
|
|
%attribute %string "parent_service_name",
|
2014-02-27 11:05:55 +01:00
|
|
|
|
2014-04-05 09:15:40 +02:00
|
|
|
%require "child_host_name",
|
|
|
|
%attribute %name(Host) "child_host_name",
|
|
|
|
%attribute %string "child_service_name",
|
2014-02-27 11:05:55 +01:00
|
|
|
|
2014-04-05 23:15:56 +02:00
|
|
|
%attribute %string "name",
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %name(TimePeriod) "period",
|
2014-02-27 11:05:55 +01:00
|
|
|
|
2014-05-03 19:53:16 +02:00
|
|
|
%attribute %array "states" {
|
2014-05-02 19:37:55 +02:00
|
|
|
%attribute %number "*"
|
|
|
|
},
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %number "disable_checks",
|
|
|
|
%attribute %number "disable_notifications"
|
2014-02-27 11:05:55 +01:00
|
|
|
}
|