Page 1 of 1

Core Config Manager - fails to apply configuration

Posted: Mon Mar 27, 2017 11:03 am
by Hikingjoe
Tried adding Check_Swap test as an additional service for a host named "PBX_Clone"

Using Core Config Manager, add a new service
Entered all the necessary information for a "check_nrpe" check command and using the "Run Check Command", the test ran successfully. But, when we applied the configuration, the configuration failed.
The reason it fails to Apply Configuration is because it writes the configuration file as "PBX\ Clone.cfg" instead of PBX_Clone.cfg

NagiosXI will do the same thing if a space is in the host name. Core Config Manager creates a command file with a back slash in the file name instead of a space or an underscore

Easy fix is not to use a configuration name with a space or underscore in the name. However this is a BUG in NagiosXI

Re: Core Config Manager - fails to apply configuration

Posted: Mon Mar 27, 2017 11:28 am
by lmiltchev
I haven't been able to recreate the issue.

What is the Nagios XI version that you are currently running?

What is the "Host Name" that you enter in the CCM - Host Management (under the "Common Settings" tab) - "PBX_Clone" or "PBX Clone"?

I tried both, and both checks work fine. Applying configuration didn't fail for me and two different configuration files were created (one with space, and one with underscore):

Code: Select all

[root@main-nagios-xi ~]# ll /usr/local/nagios/etc/services/PBX*
-rw-rw-r-- 1 apache nagios 985 Mar 27 11:13 /usr/local/nagios/etc/services/PBX Clone.cfg
-rw-rw-r-- 1 apache nagios 997 Mar 27 11:19 /usr/local/nagios/etc/services/PBX_Clone.cfg