/etc/icinga2/conf.d/services.conf is in icinga2-common 2.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /*
* Service apply rules.
*
* Only applied if host objects are members of
* the groups `linux-server` or `windows-server`
* and having the `address` resp. `address6`
* attribute set.
*
* The CheckCommand objects `ping4` and `ping6`
* are provided by the plugin check command templates.
* Check the documentation for details.
*/
apply Service "ping4" {
import "generic-service"
check_command = "ping4"
vars.sla = "24x7"
assign where "linux-servers" in host.groups
assign where "windows-servers" in host.groups
ignore where host.address == ""
}
apply Service "ping6" {
import "generic-service"
check_command = "ping6"
vars.sla = "24x7"
assign where "linux-servers" in host.groups
assign where "windows-servers" in host.groups
ignore where host.address6 == ""
}
|