From 72ef0d31fd19ed20b2d5b986990a7be15011da09 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 3 Jun 2014 14:54:21 +0200 Subject: [PATCH] Fix configuration error on missing NodeName. Fixes #6393 --- doc/2-getting-started.md | 5 ++++- etc/icinga2/constants.conf | 9 +++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/2-getting-started.md b/doc/2-getting-started.md index 9a3e844a2..dd8bb9b2b 100644 --- a/doc/2-getting-started.md +++ b/doc/2-getting-started.md @@ -157,7 +157,10 @@ The `constants.conf` configuration file can be used to define global constants: /* The directory which contains the plugins from the Monitoring Plugins project. */ const PluginDir = "/usr/lib/nagios/plugins" - /* Our local instance name. This should be the common name from the API certificate */ + /* Our local instance name. This should be the common name + * from the API certificate. Not required for a single + * instance setup. + */ const NodeName = "localhost" /* Our local zone name. */ diff --git a/etc/icinga2/constants.conf b/etc/icinga2/constants.conf index f6fc32303..abcaf9341 100644 --- a/etc/icinga2/constants.conf +++ b/etc/icinga2/constants.conf @@ -6,10 +6,11 @@ /* The directory which contains the plugins from the Monitoring Plugins project. */ const PluginDir = "/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 instance name. This should be the common name + * from the API certificate. Not required for a single + * instance setup. + */ +const NodeName = "localhost" /* Our local zone name. */ const ZoneName = NodeName -- 2.40.0