Page 2 of 2

Re: Upgrade Failure

Posted: Thu May 06, 2021 2:48 pm
by vtrac
Hi Marc,
How are you doing?

Please follow the KB below to fix the "Backend login to the Core Config Manager failed" issue:
https://support.nagios.com/kb/article.p ... alhost%22.

Based on the KB above, you might need to add "localhost" to your "/etc/hosts" file.


Best Regards,
Vinh

Re: Upgrade Failure

Posted: Thu May 06, 2021 4:42 pm
by mchenier
Hi Vinh,

This was also added but I ran this and removed BBYWSUS and reran and now I can add and apply some of this did not make sense especially the other errors, Thanks for all you help

[root@nagios 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/BBYWSUS.heu.org.cfg .. PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 574
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 911
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 574
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 911
ERROR
Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host could not be inserted: 1<br>Entry host_name:: inside tbl_host could not be inserted: 1<br>
--------------------------------------

Re: Upgrade Failure

Posted: Thu May 06, 2021 4:54 pm
by vtrac
Hi Marc,
Apply Config will fail when things are left inside below folder:

Code: Select all

/usr/local/nagios/etc/import/
Please clean up all file and folder inside "/usr/local/nagios/etc/import/" before doing "Apply Configuration".

Code: Select all

rm -rf /usr/local/nagios/etc/import/*

Best Regards,
Vinh