Icinga 2 supports [C/C++-style comments](#comments).
include <itl/itl.conf>
- include <itl/standalone.conf>
The *include* directive can be used to include other files. The *itl/itl.conf*
file is distributed as part of Icinga 2 and provides a number of useful templates
*/
object Host "localhost" {
services["ping4"] = {
- templates = [ "ping4" ]
+ check_command = "ping4"
},
services["ping6"] = {
- templates = [ "ping6" ]
+ check_command = "ping6"
},
services["http"] = {
- templates = [ "http_ip" ]
+ check_command = "http_ip"
},
services["ssh"] = {
- templates = [ "ssh" ]
+ check_command = "ssh"
},
services["load"] = {
- templates = [ "load" ]
+ check_command = "load"
},
services["processes"] = {
- templates = [ "processes" ]
+ check_command = "processes"
},
services["users"] = {
- templates = [ "users" ]
+ check_command = "users"
},
services["disk"] = {
- templates = [ "disk" ]
+ check_command = "disk"
},
macros = {
check = "ping4",
}
+
This defines a host named "localhost" which has a couple of services. Services
may inherit from one or more service templates.