maybe chmod 0644 'icinga2/conf.d/timeperiods.conf'
maybe chmod 0644 'icinga2/conf.d/users.conf'
maybe chmod 0644 'icinga2/constants.conf'
+maybe chmod 0644 'icinga2/constants.conf.orig'
maybe chmod 0755 'icinga2/features-available'
maybe chmod 0644 'icinga2/features-available/api.conf'
+maybe chmod 0644 'icinga2/features-available/api.conf.orig'
maybe chmod 0644 'icinga2/features-available/checker.conf'
maybe chmod 0644 'icinga2/features-available/command.conf'
maybe chmod 0644 'icinga2/features-available/compatlog.conf'
maybe chmod 0755 'icinga2/scripts/mail-host-notification.sh'
maybe chmod 0755 'icinga2/scripts/mail-service-notification.sh'
maybe chmod 0644 'icinga2/zones.conf'
+maybe chmod 0644 'icinga2/zones.conf.orig'
maybe chmod 0755 'icinga2/zones.d'
maybe chmod 0644 'icinga2/zones.d/README'
maybe chmod 0755 'init'
permissions = [ "*" ]
}
+
+object ApiUser "client-pki-ticket" {
+ password = "aixeirqieghae3ahngo9mei3"
+ permissions = [ "actions/generate-ticket" ]
+}
+
+
-object Host "ns1" {
+object Host "ns1.uhu-banane.de" {
/* Import the default host template defined in `templates.conf`. */
import "generic-host"
check_command = "apt"
enable_notifications = false
- assign where host.name == "ns1"
+ assign where host.name == "ns1.uhu-banane.de"
}
check_command = "icinga"
- assign where host.name == "ns1"
+ assign where host.name == "ns1.uhu-banane.de"
}
/* Used by the ScheduledDowntime apply rule in `downtimes.conf`. */
vars.backup_downtime = "02:00-03:00"
- assign where host.name == "ns1"
+ assign where host.name == "ns1.uhu-banane.de"
}
check_command = "procs"
- assign where host.name == "ns1"
+ assign where host.name == "ns1.uhu-banane.de"
}
check_command = "swap"
- assign where host.name == "ns1"
+ assign where host.name == "ns1.uhu-banane.de"
}
check_command = "users"
- assign where host.name == "ns1"
+ assign where host.name == "ns1.uhu-banane.de"
}
apply Service "proc named" {
import "generic-service"
- #host_name = "ns1"
+ #host_name = "ns1.uhu-banane.de"
check_command = "procs"
vars.procs_argument = "/usr/sbin/named"
/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`.
* This should be the common name from the API certificate.
*/
-//const NodeName = "localhost"
+const NodeName = "ns1.uhu-banane.de"
/* Our local zone name. */
-const ZoneName = NodeName
+const ZoneName = "ns1.uhu-banane.de"
/* Secret key for remote node tickets */
-const TicketSalt = ""
+const TicketSalt = "4d6b7086706aa4aa3d43bafb7df4b6c2"
--- /dev/null
+/**
+ * This file defines global constants which can be used in
+ * the other configuration files.
+ */
+
+/* The directory which contains the plugins from the Monitoring Plugins project. */
+const PluginDir = "/usr/lib/nagios/plugins"
+
+/* The directory which contains the Manubulon plugins.
+ * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details.
+ */
+const ManubulonPluginDir = "/usr/lib/nagios/plugins"
+
+/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for.
+ * Check the documentation, chapter "Plugins Contribution", for details.
+ */
+const PluginContribDir = "/usr/lib/nagios/plugins"
+
+/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`.
+ * This should be the common name from the API certificate.
+ */
+//const NodeName = "localhost"
+
+/* Our local zone name. */
+const ZoneName = NodeName
+
+/* Secret key for remote node tickets */
+const TicketSalt = ""
/**
* The API listener is used for distributed monitoring setups.
*/
-
object ApiListener "api" {
cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
--- /dev/null
+/**
+ * The API listener is used for distributed monitoring setups.
+ */
+
+object ApiListener "api" {
+ cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
+ key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
+ ca_path = SysconfDir + "/icinga2/pki/ca.crt"
+
+ ticket_salt = TicketSalt
+}
/*
- * Endpoint and Zone configuration for a cluster setup
- * This local example requires `NodeName` defined in
- * constants.conf.
+ * Generated by Icinga 2 node setup commands
+ * on 2017-10-10 22:56:42 +0200
*/
object Endpoint NodeName {
- host = NodeName
}
object Zone ZoneName {
- endpoints = [ NodeName ]
+ endpoints = [ NodeName ]
}
-/*
- * Defines a global zone for distributed setups with masters,
- * satellites and clients.
- * This is required to sync configuration commands,
- * templates, apply rules, etc. to satellite and clients.
- * All nodes require the same configuration and must
- * have `accept_config` enabled in the `api` feature.
- */
-
-object Zone "global-templates" {
- global = true
-}
-
-/*
- * Defines a global zone for the Icinga Director.
- * This is required to sync configuration commands,
- * templates, apply rules, etc. to satellite and clients.
- * All nodes require the same configuration and must
- * have `accept_config` enabled in the `api` feature.
- */
-
-object Zone "director-global" {
- global = true
-}
-
-/*
- * Read the documentation on how to configure
- * a cluster setup with multiple zones.
- */
-
-/*
-object Endpoint "master.example.org" {
- host = "master.example.org"
-}
-
-object Endpoint "satellite.example.org" {
- host = "satellite.example.org"
-}
-
-object Zone "master" {
- endpoints = [ "master.example.org" ]
-}
-
-object Zone "satellite" {
- parent = "master"
- endpoints = [ "satellite.example.org" ]
-}
-*/
--- /dev/null
+/*
+ * Endpoint and Zone configuration for a cluster setup
+ * This local example requires `NodeName` defined in
+ * constants.conf.
+ */
+
+object Endpoint NodeName {
+ host = NodeName
+}
+
+object Zone ZoneName {
+ endpoints = [ NodeName ]
+}
+
+/*
+ * Defines a global zone for distributed setups with masters,
+ * satellites and clients.
+ * This is required to sync configuration commands,
+ * templates, apply rules, etc. to satellite and clients.
+ * All nodes require the same configuration and must
+ * have `accept_config` enabled in the `api` feature.
+ */
+
+object Zone "global-templates" {
+ global = true
+}
+
+/*
+ * Defines a global zone for the Icinga Director.
+ * This is required to sync configuration commands,
+ * templates, apply rules, etc. to satellite and clients.
+ * All nodes require the same configuration and must
+ * have `accept_config` enabled in the `api` feature.
+ */
+
+object Zone "director-global" {
+ global = true
+}
+
+/*
+ * Read the documentation on how to configure
+ * a cluster setup with multiple zones.
+ */
+
+/*
+object Endpoint "master.example.org" {
+ host = "master.example.org"
+}
+
+object Endpoint "satellite.example.org" {
+ host = "satellite.example.org"
+}
+
+object Zone "master" {
+ endpoints = [ "master.example.org" ]
+}
+
+object Zone "satellite" {
+ parent = "master"
+ endpoints = [ "satellite.example.org" ]
+}
+*/
+