icinga2/itl/types.conf

268 lines
6.1 KiB
Plaintext
Raw Normal View History

/******************************************************************************
* 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. *
******************************************************************************/
type DynamicObject {
%require "__abstract",
%attribute number "__abstract",
%require "__local",
%attribute number "__local",
%require "__name",
%attribute string "__name",
%require "__type",
%attribute string "__type",
%attribute dictionary "methods" {
},
%attribute any "custom::*"
}
type Component {
}
type Logger {
%attribute string "type",
%attribute string "path",
%attribute string "severity"
}
type Host {
%attribute string "alias",
2013-02-07 20:29:35 +01:00
%attribute string "hostcheck",
%attribute dictionary "hostgroups" {
%attribute string "*"
},
2013-02-07 20:29:35 +01:00
%attribute dictionary "hostdependencies" {
%attribute string "*"
},
2013-02-07 20:29:35 +01:00
%attribute dictionary "servicedependencies" {
%attribute string "*",
%attribute dictionary "*" {
%require "host",
%attribute string "host",
%require "service",
%attribute string "service"
}
},
%attribute dictionary "services" {
%validator "ValidateServiceDictionary",
%attribute string "*",
%attribute dictionary "*" {
%attribute dictionary "templates" {
%attribute string "*"
},
%attribute string "short_name",
%attribute dictionary "macros" {
%attribute string "*"
},
%attribute number "check_interval",
%attribute number "retry_interval",
%attribute dictionary "servicegroups" {
%attribute string "*"
},
%attribute dictionary "checkers" {
%attribute string "*"
},
2013-02-07 20:29:35 +01:00
%attribute dictionary "hostdependencies" {
%attribute string "*"
},
%attribute dictionary "servicedependencies" {
%attribute string "*",
%attribute dictionary "*" {
%require "host",
%attribute string "host",
%require "service",
%attribute string "service"
}
}
}
},
%attribute dictionary "notifications" {
%attribute string "*",
%attribute dictionary "*" {
%attribute dictionary "templates" {
%attribute string "*"
},
%attribute dictionary "macros" {
%attribute string "*"
2013-02-24 08:26:10 +01:00
},
%attribute dictionary "users" {
%attribute string "*"
}
}
},
/* service attributes */
%attribute number "max_check_attempts",
%attribute number "check_interval",
%attribute number "retry_interval",
%attribute dictionary "macros" {
%attribute string "*"
},
%attribute dictionary "servicegroups" {
%attribute string "*"
},
%attribute dictionary "checkers" {
%attribute string "*"
}
}
type HostGroup {
%attribute string "alias",
%attribute string "notes_url",
%attribute string "action_url"
}
type IcingaApplication {
%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"
}
type Service {
%require "host_name",
%attribute string "host_name",
%attribute string "short_name",
%attribute string "alias",
%attribute dictionary "macros" {
%attribute string "*"
},
2013-02-13 12:19:02 +01:00
%attribute dictionary "check_command" {
%attribute string "_*"
},
%attribute string "check_command",
%attribute number "max_check_attempts",
%attribute number "check_interval",
%attribute number "retry_interval",
2013-02-07 20:29:35 +01:00
%attribute dictionary "hostdependencies" {
%attribute string "*"
},
%attribute dictionary "servicedependencies" {
%attribute string "*",
%attribute dictionary "*" {
%require "host",
%attribute string "host",
%require "service",
%attribute string "service"
}
},
%attribute dictionary "servicegroups" {
%attribute string "*"
},
%attribute dictionary "checkers" {
%attribute string "*"
},
%require "methods",
%attribute dictionary "methods" {
%require "check",
%attribute string "check"
},
%attribute dictionary "notifications" {
%attribute string "*",
%attribute dictionary "*" {
2013-02-24 08:26:10 +01:00
%attribute dictionary "templates" {
%attribute string "*"
},
%attribute dictionary "macros" {
%attribute string "*"
2013-02-24 08:26:10 +01:00
},
%attribute dictionary "users" {
%attribute string "*"
}
}
},
%attribute number "notification_interval"
}
type ServiceGroup {
%attribute string "alias",
%attribute string "notes_url",
%attribute string "action_url"
}
type Endpoint {
%attribute string "node",
%attribute string "service",
%attribute number "local"
}
type TimePeriod {
}
2013-02-09 11:42:22 +01:00
type Notification {
%require "methods",
%attribute dictionary "methods" {
%require "notify",
%attribute string "notify"
},
%require "host_name",
%attribute string "host_name",
%attribute string "service",
%attribute dictionary "macros" {
%attribute string "*"
},
2013-02-13 12:19:02 +01:00
%attribute dictionary "notification_command" {
%attribute string "_*"
},
2013-02-09 11:42:22 +01:00
%attribute string "notification_command"
}
type Script {
%require "language",
%attribute string "language",
%require "code",
%attribute string "code"
}
2013-02-24 08:26:10 +01:00
type User {
%attribute dictionary "macros" {
%attribute string "*"
}
}