Page 1 of 1

Error while adding new servers

Posted: Thu Sep 28, 2017 2:11 pm
While trying to add a new server via ssh:

An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.

Error: Could not find any host matching 'grhc-mgmt-02.grhc.local' (config file '/usr/local/nagios/etc/services/grhc-mgmt-02.grhc.local.cfg', starting on line 159)
Error: Failed to expand host list 'grhc-mgmt-02.grhc.local' for service 'Uptime' (/usr/local/nagios/etc/services/grhc-mgmt-02.grhc.local.cfg:159)

Also when deleting servers I cannot APPLY CONFIGURATION

Backend login to the Core Config Manager failed.
Configuration Error
An error occurred while attempting to apply your configuration to the monitoring engine. Contact your Nagios administrator if this problem persists.
Run this monitoring wizard again
Run another monitoring wizard
View the latest configuration snapshots

Also when deleting servers I cannot APPLY CONFIGURATION

Re: Error while adding new servers

Posted: Thu Sep 28, 2017 2:21 pm
by scottwilkerson
Can you go to the CCM -> Tools -> Config File Management
click Delete Files
Click Write Configs
Click Verify Files

If all looks good Click Apply Configuration in the upper left and then the Apply configuration button

If you get a similar error, verify you do not still have services referencing that host under
CCM -> Services
in "Config Name" field select grhc-mgmt-02.grhc.local

Delete all found services

Re: Error while adding new servers

Posted: Fri Sep 29, 2017 2:53 pm
There are no found services for grhc-mgmt-02

Re: Error while adding new servers

Posted: Fri Sep 29, 2017 3:19 pm
by dwhitfield
It would be grhc-mgmt-02.grhc.local not just grhc-mgmt-02, but perhaps you were shortening it for the post.

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

Re: Error while adding new servers

Posted: Tue Oct 10, 2017 3:25 pm
Uploaded profile

Re: Error while adding new servers

Posted: Tue Oct 10, 2017 3:57 pm
by dwhitfield
Is this the same XI server as https://support.nagios.com/forum/viewto ... 999#bottom ? I ask because your profile could be useful for both. Also, it looks like the apply is actually working.

This forum thread is fairly short, but we did have an almost two-week gap. I don't know how pressing this is for you, but it might be quicker if you moved this to a ticket at [email protected]