Created
March 3, 2019 01:14
-
-
Save kaymccormick/fb7610c505688813f1af766ecc924b01 to your computer and use it in GitHub Desktop.
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
/* | |
* Host definitions with object attributes | |
* used for apply rules for Service, Notification, | |
* Dependency and ScheduledDowntime objects. | |
* | |
* Tip: Use `icinga2 object list --type Host` to | |
* list all host objects after running | |
* configuration validation (`icinga2 daemon -C`). | |
*/ | |
/* | |
* This is an example host based on your | |
* local host's FQDN. Specify the NodeName | |
* constant in `constants.conf` or use your | |
* own description, e.g. "db-host-1". | |
*/ | |
object Host NodeName { | |
/* 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 = "/" | |
} | |
/* Uncomment if you've sucessfully installed Icinga Web 2. */ | |
vars.http_vhosts["Icinga Web 2"] = { | |
http_uri = "/icingaweb2" | |
} | |
vars.http_vhosts["drupal"] = { | |
http_uri = "https://cerberus.heptet.us/drupal/" | |
} | |
/* 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" ] | |
} | |
} | |
object Host "melon" { | |
import "generic-host" | |
address = "192.168.199.143" | |
vars.http_vhosts["http"] = { | |
http_uri = "/" | |
} | |
/* Uncomment if you've sucessfully installed Icinga Web 2. */ | |
vars.notification["mail"] = { | |
/* The UserGroup `icingaadmins` is defined in `users.conf`. */ | |
groups = [ "icingaadmins" ] | |
} | |
check_command = "hostalive" | |
} | |
object Host "netra" { | |
import "generic-host" | |
address = "192.168.158.39" | |
vars.http_vhosts["http"] = { | |
http_uri = "/" | |
} | |
/* Uncomment if you've sucessfully installed Icinga Web 2. */ | |
vars.notification["mail"] = { | |
/* The UserGroup `icingaadmins` is defined in `users.conf`. */ | |
groups = [ "icingaadmins" ] | |
} | |
} | |
object Host "demeter" { | |
import "generic-host" | |
address = "192.168.204.219" | |
vars.http_vhosts["http"] = { | |
http_uri = "/" | |
} | |
vars.http_vhosts["https"] = { | |
http_uri = "https://demeter.heptet.us:443/" | |
} | |
/* Uncomment if you've sucessfully installed Icinga Web 2. */ | |
vars.notification["mail"] = { | |
/* The UserGroup `icingaadmins` is defined in `users.conf`. */ | |
groups = [ "icingaadmins" ] | |
} | |
} | |
object Host "demeter-public" { | |
import "generic-host" | |
address = "45.79.87.79" | |
vars.http_vhosts["http"] = { | |
http_uri = "/" | |
} | |
vars.http_vhosts["https"] = { | |
http_uri = "https://demeter-public.heptet.us:443/" | |
} | |
/* Uncomment if you've sucessfully installed Icinga Web 2. */ | |
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