Backend login to the Core Config Manager failed.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
marcinchmielewski
Posts: 10
Joined: Mon Aug 26, 2019 8:10 am

Backend login to the Core Config Manager failed.

Post by marcinchmielewski »

Hello,
I cant write config in NagiosXI, I get error.

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: 'Blade 1 Bay 11 ProLiant BL460c G8' is not a valid parent for host 'plpsqlwc01.provident.pl'!



By the way we have License Enterprise, please grant me permission to Customer Support.
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.

Post by scottwilkerson »

Can you run the following from the command line and show the output

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
marcinchmielewski wrote: By the way we have License Enterprise, please grant me permission to Customer Support.
You can add your forum user to ticket and customer support at the following link
https://support.nagios.com/add-contact/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
marcinchmielewski
Posts: 10
Joined: Mon Aug 26, 2019 8:10 am

Re: Backend login to the Core Config Manager failed.

Post by marcinchmielewski »

Please find output below:

Code: Select all

[root@nagiosxi ~]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config 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/cejlon.provident.pl.cfg .. PHP Notice:  Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 570
PHP Notice:  Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 924
ERROR
   Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host could not be inserted: 1<br>
--------------------------------------

Importing into the CCM failed!
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.

Post by scottwilkerson »

Lets remove that file in the import directory because it already exists

Code: Select all

rm -f /usr/local/nagios/etc/import/cejlon.provident.pl.cfg
then try again

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
marcinchmielewski
Posts: 10
Joined: Mon Aug 26, 2019 8:10 am

Re: Backend login to the Core Config Manager failed.

Post by marcinchmielewski »

Code: Select all

[root@nagiosxi ~]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config 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
  No files to import
--------------------------------------

--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
  Finished writing out configuraton
--------------------------------------

--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/molokai.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/timor.provident.pl.cfg', starting on line 77)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/guantanamo.provident.pl.cfg', starting on line 32)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/skype-frontend1.provident.pl.cfg', starting on line 30)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/gomera.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/yamdena.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/lanai.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/maui.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-edge1.provident.pl' (config file '/usr/local/nagios/etc/services/Skype-edge1.provident.pl.cfg', starting on line 30)
Warning: Duplicate definition found for service 'Certificate Expiration - External' on host 'skype-edge1.provident.pl' (config file '/usr/local/nagios/etc/services/Skype-edge1.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/etq1.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Provident Poland - WallBoard Reporting [ Data Processor ]' on host 'pl01services002.provident.pl' (config file '/usr/local/nagios/etc/services/pl01services002.provident.pl.cfg', starting on line 183)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/pl01services002.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - External' on host 'skype-edge1.provident.pl' (config file '/usr/local/nagios/etc/services/dmz-korfu.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Certificate Expiration - Internal' on host 'skype-frontend1.provident.pl' (config file '/usr/local/nagios/etc/services/borabora.provident.pl.cfg', starting on line 16)
Warning: Duplicate definition found for service 'SQL Server' on host 'alt_crm.provident.pl' (config file '/usr/local/nagios/etc/services/alt_crm.provident.pl.cfg', starting on line 177)
Error: Invalid max_check_attempts value for host 'PLPSAFEQ01.provident.pl'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/PLPSAFEQ01.provident.pl.cfg', starting on line 16)
   Error processing object config files!


***> One or more problems was encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data definitions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.
> Return Code: 1
--------------------------------------
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors ~
tar: Removing leading `/' from member names
~
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1576631222.tar.gz
/ ~
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1576631222.tar.gz
~

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config 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
--------------------------------------
[root@nagiosxi ~]#

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.

Post by scottwilkerson »

Ok, now you need to go to the CCM -> Hosts
find PLPSAFEQ01.provident.pl
the error is showing that you do not have a valid max_check_attempts which would be set either by a template or on the Check Settings tab
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
marcinchmielewski
Posts: 10
Joined: Mon Aug 26, 2019 8:10 am

Re: Backend login to the Core Config Manager failed.

Post by marcinchmielewski »

I removed this hostand:

Code: Select all

[root@nagiosxi ~]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config 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/cejlon.provident.pl.cfg .. PHP Notice:  Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 570
PHP Notice:  Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 924
ERROR
   Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host could not be inserted: 1<br>
--------------------------------------

Importing into the CCM failed!

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.

Post by scottwilkerson »

This is weird, now you have another different host in the import directory

Code: Select all

rm -f /usr/local/nagios/etc/import/cejlon.provident.pl.cfg
then

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
marcinchmielewski
Posts: 10
Joined: Mon Aug 26, 2019 8:10 am

Re: Backend login to the Core Config Manager failed.

Post by marcinchmielewski »

So this resolved issue. Thank you Scott.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Backend login to the Core Config Manager failed.

Post by benjaminsmith »

Hello,
So this resolved issue. Thank you Scott.
Thanks for the update and glad to hear it's been solved.

Thank you for using the Nagios Support Forum.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked