gino-imbrailo
1/16/2019 - 9:06 AM

Icinga Generic Host

An example of a host in Icinga2 with host variables

object Host "{FRONT_END_NAME}" {

  // Genereic Checks and Variables
  address = "{IP_ADDRESS}"
  vars.env = "{ENVIRONMENT}"
  /* If you are using Cube */
  /* vars.cubeHostName = "{CUBE_NAME}" */
  /* If you are using AWS */
  /* vars.stackName = "{AWS_STACK_NAME}" */
  vars.publicDNS = "{PUBLIC_DNS}"
  /* Some generic host checks */
  import "generic-host"
  vars.os = "{OS}"
  vars.disks["disk /"] = {
    disk_partitions = "/"
  }
  check_interval = 60
  display_name = "{FRONT_END_NAME}"
  vars.front["{TYPE}"] = {
    display_name = "{TYPE}"
  }
  
  // WSO2 Specific Checks (disabled by default)
  vars.checks = {
    carbon = "disabled"
    certificate = "disabled"
    jmx_memory = "disabled"
    users = "disabled"
  }
  vars.portOffset = 0
  
  // Notification Settings unknown
  /*
  vars.notification["mail"] = {
    The UserGroup `integration` is defined in `users.conf`.
    groups = [ "integration" ]
  }
  */
}