Page 1 of 2
Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 12:11 pm
by jlamar
I crashed the nagios server and went back to a previous snapshot from a few days prior. and now receving this error.
Nagios version: 5.5.2
Apply Configuration
Backend login to the Core Config Manager failed.
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: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/vs900160.nrmc.org.cfg', starting on line 48)
Error: Service 'dc1.nrmc.org,dc104176.nrmc.org,dc2.nrmc.org,dc4.nrmc.org' on host 'Clock Skew' has an escalation but is not defined anywhere!
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 16)
I've tried everything at "
https://support.nagios.com/kb/article/n ... d-532.html"
Jason
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 1:07 pm
by scottwilkerson
Go to Admin -> Security Credentials
Click Update Credentials
Then try applying configuration again
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 2:59 pm
by jlamar
same error:
Seams to be not talking to server.
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:18 pm
by scottwilkerson
Can you run the following and post the output:
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:20 pm
by jlamar
Last login: Mon Aug 13 08:46:08 2018 from d111191.nrmc.org
[root@nagios ~]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/PrintServer.nrmc.org.cfg .. PHP Noti ce: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/com ponents/ccm/classes/import.class.php on line 905
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/htm l/includes/components/nagiosim/nagiosim.inc.php on line 491
ERROR
Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host co uld not be inserted: Duplicate entry '1' for key 'config_name'<br>
- Importing: /usr/local/nagios/etc/import/VS900056.nrmc.org.cfg .. PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm /classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/com ponents/ccm/classes/import.class.php on line 905
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/htm l/includes/components/nagiosim/nagiosim.inc.php on line 491
ERROR
Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host co uld not be inserted: Duplicate entry '1' for key 'config_name'<br>Entry host_nam e:: inside tbl_host could not be inserted: Duplicate entry '1' for key 'config_n ame'<br>
--------------------------------------
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:27 pm
by scottwilkerson
I believe you have a bad config fragment left in the import directory. Please run the following
Code: Select all
mv /usr/local/nagios/etc/import/PrintServer.nrmc.org.cfg /tmp
then this again
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:29 pm
by jlamar
[root@nagios ~]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/VS900056.nrmc.org.cfg .. PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 905
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
ERROR
Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host could not be inserted: Duplicate entry '1' for key 'config_name'<br>
--------------------------------------
Importing into the CCM failed!
[root@nagios ~]#
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:42 pm
by scottwilkerson
hmm there are multiple..
Run the following:
Code: Select all
mkdir -p /tmp/failed_import
mv /usr/local/nagios/etc/import/* /tmp/failed_import
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:53 pm
by jlamar
Longer than I could input.
Re: Backend login to the Core Config Manager failed.
Posted: Mon Aug 13, 2018 3:59 pm
by scottwilkerson
thst should resolve the issue, you should be able to apply config from the UI now.