Icinga2: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „Kategorie:ServerApplikation = Installation = <pre>apt-get install icinga2 </pre> = Konfiguration = <pre>object Host NodeName { /* Import the default ho…“)
 
 
Zeile 6: Zeile 6:


= Konfiguration =
= Konfiguration =
== Localhost ==
<pre>object Host NodeName {
<pre>object Host NodeName {
   /* Import the default host template defined in `templates.conf`. */
   /* Import the default host template defined in `templates.conf`. */
Zeile 40: Zeile 42:
   vars.notification["mail"] = {
   vars.notification["mail"] = {
     /* The UserGroup `icingaadmins` is defined in `users.conf`. */
     /* The UserGroup `icingaadmins` is defined in `users.conf`. */
    groups = [ "icingaadmins" ]
  }
}
</pre>
== Webserver ==
<pre>object Host "ueberkinger.com" {
    import "generic-host"
  address = "193.34.145.75"
  vars.http_vhosts["http"] = {
    http_uri = "/"
  }
  vars.notification["mail"] = {
     groups = [ "icingaadmins" ]
     groups = [ "icingaadmins" ]
   }
   }
}
}
</pre>
</pre>

Aktuelle Version vom 25. Januar 2018, 07:17 Uhr


Installation[Bearbeiten]

apt-get install icinga2

Konfiguration[Bearbeiten]

Localhost[Bearbeiten]

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"
  //}
  /* Define disks and attributes for service apply rules in `services.conf`. */
  vars.disks["disk"] = {
    /* No parameters. */
  }
  vars.disk_exclude_type = ["gvfsd-fuse", "tmpfs"]

  vars.disks["disk /home"] = {
    disk_partitions = "/home"
  }
  vars.disks["disk /"] = {
    disk_partitions = "/"
  }
  vars.procs_warning = 400
  vars.procs_critical = 500
  vars.disk_local = true
  /* Define notification mail attributes for notification apply rules in `notifications.conf`. */
  vars.notification["mail"] = {
    /* The UserGroup `icingaadmins` is defined in `users.conf`. */
    groups = [ "icingaadmins" ]
  }
}

Webserver[Bearbeiten]

object Host "ueberkinger.com" {
    import "generic-host"
  address = "193.34.145.75"
  vars.http_vhosts["http"] = {
    http_uri = "/"
  }
  vars.notification["mail"] = {
    groups = [ "icingaadmins" ]
  }
}