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-02 19:56:23 +01:00
|
|
|
number __abstract,
|
|
|
|
number __local,
|
2013-02-02 20:17:33 +01:00
|
|
|
string __name,
|
|
|
|
string __type,
|
2013-02-02 14:28:11 +01:00
|
|
|
|
2013-02-02 19:56:23 +01:00
|
|
|
dictionary methods {
|
|
|
|
string *,
|
|
|
|
},
|
2013-02-02 14:28:11 +01:00
|
|
|
|
2013-02-02 19:56:23 +01:00
|
|
|
any custom::*
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Component {
|
|
|
|
}
|
|
|
|
|
|
|
|
type Logger {
|
2013-02-02 19:56:23 +01:00
|
|
|
string "type",
|
2013-02-02 14:28:11 +01:00
|
|
|
string path,
|
|
|
|
string severity
|
|
|
|
}
|
|
|
|
|
|
|
|
type Host {
|
|
|
|
string alias,
|
|
|
|
dictionary hostgroups {
|
|
|
|
string *
|
|
|
|
},
|
|
|
|
dictionary dependencies {
|
|
|
|
string *
|
|
|
|
},
|
|
|
|
dictionary hostchecks {
|
|
|
|
string *
|
|
|
|
},
|
2013-02-03 11:45:56 +01:00
|
|
|
dictionary services {
|
|
|
|
any * /* TODO: more specific validation rules */
|
|
|
|
},
|
|
|
|
|
|
|
|
/* service attributes */
|
|
|
|
number max_check_attempts,
|
|
|
|
number check_interval,
|
|
|
|
number retry_interval,
|
2013-02-02 14:28:11 +01:00
|
|
|
dictionary macros {
|
|
|
|
string *
|
|
|
|
},
|
2013-02-03 11:45:56 +01:00
|
|
|
dictionary servicegroups {
|
|
|
|
string *
|
|
|
|
},
|
|
|
|
dictionary checkers {
|
|
|
|
string *
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type HostGroup {
|
|
|
|
string alias,
|
|
|
|
string notes_url,
|
|
|
|
string action_url
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type IcingaApplication {
|
|
|
|
string cert_path,
|
|
|
|
string ca_path,
|
|
|
|
string node,
|
|
|
|
string service,
|
|
|
|
string pid_path,
|
|
|
|
string state_path,
|
2013-02-02 19:56:23 +01:00
|
|
|
dictionary macros
|
2013-02-02 14:28:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Service {
|
|
|
|
string alias,
|
|
|
|
string host_name,
|
|
|
|
dictionary macros {
|
|
|
|
string *
|
|
|
|
},
|
|
|
|
string check_command,
|
|
|
|
number max_check_attempts,
|
|
|
|
number check_interval,
|
|
|
|
number retry_interval,
|
|
|
|
dictionary dependencies {
|
|
|
|
string *
|
|
|
|
},
|
|
|
|
dictionary servicegroups {
|
|
|
|
string *
|
|
|
|
},
|
|
|
|
dictionary checkers {
|
|
|
|
string *
|
|
|
|
}
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type ServiceGroup {
|
|
|
|
string alias,
|
|
|
|
string notes_url,
|
|
|
|
string action_url
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|
|
|
|
|
2013-02-02 14:28:11 +01:00
|
|
|
type Endpoint {
|
|
|
|
string node,
|
|
|
|
string service,
|
2013-02-02 19:56:23 +01:00
|
|
|
number "local"
|
|
|
|
}
|
|
|
|
|
|
|
|
type TimePeriod {
|
2013-02-01 11:39:06 +01:00
|
|
|
}
|