Last active
March 20, 2017 11:40
-
-
Save formorer/3b79570a22fba8fe9e863d756b5724d9 to your computer and use it in GitHub Desktop.
Icinga2 Host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Host "myhostname" { | |
/* Import the default host template defined in `templates.conf`. */ | |
import "generic-host" | |
/* Specify the address attributes for checks e.g. `ssh` or `http`. */ | |
address = "127.0.0.1" | |
address6 = "::1" | |
/* Set custom attribute `os` for hostgroup assignment in `groups.conf`. */ | |
vars.os = "Linux" | |
/* Define http vhost attributes for service apply rules in `services.conf`. */ | |
vars.http_vhosts["http"] = { | |
http_uri = "/" | |
} | |
/* Define disks and attributes for service apply rules in `services.conf`. */ | |
vars.disks["disk"] = { | |
/* No parameters. */ | |
} | |
vars.disks["disk /"] = { | |
disk_partitions = "/" | |
} | |
/* Define notification mail attributes for notification apply rules in `notifications.conf`. */ | |
vars.notification["mail"] = { | |
/* The UserGroup `icingaadmins` is defined in `users.conf`. */ | |
groups = [ "icingaadmins" ] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment