maybe chown 'nagios' 'icinga2/conf.d'
maybe chgrp 'nagios' 'icinga2/conf.d'
maybe chmod 0750 'icinga2/conf.d'
+maybe chown 'nagios' 'icinga2/conf.d/api-users.conf'
+maybe chgrp 'nagios' 'icinga2/conf.d/api-users.conf'
+maybe chmod 0644 'icinga2/conf.d/api-users.conf'
maybe chown 'nagios' 'icinga2/conf.d/app.conf'
maybe chgrp 'nagios' 'icinga2/conf.d/app.conf'
maybe chmod 0644 'icinga2/conf.d/app.conf'
maybe chmod 0644 'icinga2/conf.d/users.conf'
maybe chown 'nagios' 'icinga2/constants.conf'
maybe chgrp 'nagios' 'icinga2/constants.conf'
-maybe chmod 0640 'icinga2/constants.conf'
+maybe chmod 0644 'icinga2/constants.conf'
+maybe chown 'nagios' 'icinga2/constants.conf.orig'
+maybe chgrp 'nagios' 'icinga2/constants.conf.orig'
+maybe chmod 0640 'icinga2/constants.conf.orig'
maybe chown 'nagios' 'icinga2/features-available'
maybe chgrp 'nagios' 'icinga2/features-available'
maybe chmod 0750 'icinga2/features-available'
--- /dev/null
+/**
+ * The ApiUser objects are used for authentication against the API.
+ */
+object ApiUser "root" {
+ password = "1c792f53515736aa"
+ // client_cn = ""
+
+ permissions = [ "*" ]
+}
/* 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 = "homeserver"
/* Our local zone name. */
-const ZoneName = NodeName
+const ZoneName = "homeserver"
/* Secret key for remote node tickets */
const TicketSalt = ""
--- /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 = ""
--- /dev/null
+../features-available/api.conf
\ No newline at end of file