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 DynamicObject {
|
2013-02-06 00:32:05 +01:00
|
|
|
%require "__abstract",
|
|
|
|
%attribute number "__abstract",
|
2013-02-02 14:28:11 +01:00
|
|
|
|
2013-02-06 00:32:05 +01:00
|
|
|
%require "__local",
|
|
|
|
%attribute number "__local",
|
|
|
|
|
|
|
|
%require "__name",
|
|
|
|
%attribute string "__name",
|
|
|
|
|
|
|
|
%require "__type",
|
|
|
|
%attribute string "__type",
|
|
|
|
|
|
|
|
%attribute dictionary "methods" {
|
|
|
|
%attribute string "*",
|
2013-02-02 19:56:23 +01:00
|
|
|
},
|
2013-02-02 14:28:11 +01:00
|
|
|
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute any "custom::*"
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Component {
|
|
|
|
}
|
|
|
|
|
|
|
|
type Logger {
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "type",
|
|
|
|
%attribute string "path",
|
|
|
|
%attribute string "severity"
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Host {
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "alias",
|
|
|
|
%attribute dictionary "hostgroups" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "dependencies" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "hostchecks" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "services" {
|
|
|
|
%attribute any "*" /* TODO: more specific validation rules */
|
2013-02-03 11:45:56 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
/* service attributes */
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute number "max_check_attempts",
|
|
|
|
%attribute number "check_interval",
|
|
|
|
%attribute number "retry_interval",
|
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "servicegroups" {
|
|
|
|
%attribute string "*"
|
2013-02-03 11:45:56 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "checkers" {
|
|
|
|
%attribute string "*"
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type HostGroup {
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "alias",
|
|
|
|
%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",
|
|
|
|
%attribute dictionary "macros"
|
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",
|
|
|
|
|
|
|
|
%attribute string "alias",
|
|
|
|
%attribute dictionary "macros" {
|
|
|
|
%attribute string "*"
|
|
|
|
},
|
|
|
|
%attribute string "check_command",
|
|
|
|
%attribute number "max_check_attempts",
|
|
|
|
%attribute number "check_interval",
|
|
|
|
%attribute number "retry_interval",
|
|
|
|
%attribute dictionary "dependencies" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "servicegroups" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute dictionary "checkers" {
|
|
|
|
%attribute string "*"
|
2013-02-02 14:28:11 +01:00
|
|
|
},
|
2013-02-06 00:32:05 +01:00
|
|
|
|
|
|
|
%require "methods",
|
|
|
|
%attribute dictionary "methods" {
|
|
|
|
%require "check",
|
|
|
|
%attribute string "check"
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type ServiceGroup {
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "alias",
|
|
|
|
%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 Endpoint {
|
2013-02-06 00:32:05 +01:00
|
|
|
%attribute string "node",
|
|
|
|
%attribute string "service",
|
|
|
|
%attribute number "local"
|
2013-02-02 19:56:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type TimePeriod {
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|