Backend login to the Core Config Manager failed.
Backend login to the Core Config Manager failed.
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
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
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Backend login to the Core Config Manager failed.
Go to Admin -> Security Credentials
Click Update Credentials
Then try applying configuration again
Click Update Credentials
Then try applying configuration again
Re: Backend login to the Core Config Manager failed.
same error:
Seams to be not talking to server.
Seams to be not talking to server.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Backend login to the Core Config Manager failed.
Can you run the following and post the output:
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.shRe: Backend login to the Core Config Manager failed.
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>
--------------------------------------
[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>
--------------------------------------
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Backend login to the Core Config Manager failed.
I believe you have a bad config fragment left in the import directory. Please run the following
then this again
Code: Select all
mv /usr/local/nagios/etc/import/PrintServer.nrmc.org.cfg /tmpCode: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.shRe: Backend login to the Core Config Manager failed.
[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 ~]#
--- 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 ~]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Backend login to the Core Config Manager failed.
hmm there are multiple..
Run the following:
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.shRe: Backend login to the Core Config Manager failed.
Longer than I could input.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Backend login to the Core Config Manager failed.
thst should resolve the issue, you should be able to apply config from the UI now.