Page 2 of 2

Re: Error updating configuration

Posted: Mon Oct 01, 2018 9:13 am
by newdawnccs
Ok I emptied /usr/local/nagios/etc/import/ and removed the blank line in the hosts menu. there is no entry for "Cisco Nexus 5K" in the hosts or services menu.

Re: Error updating configuration

Posted: Mon Oct 01, 2018 9:45 am
by scottwilkerson
It looks like the underlying issue is the system is failing to login to the backend.

Can you run the following from the command line and send the output:

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh

Re: Error updating configuration

Posted: Mon Oct 01, 2018 12:44 pm
by newdawnccs
here is the output of the script....thanks so much for your help

[root@localhost import]# cd /usr/local/nagiosxi/scripts/
[root@localhost 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 Nagios Core corelog.newobjects 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/ecc-eliteweb.eccrv.local.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 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>Entry host_name:: inside tbl_host could not be inserted: Duplicate entry '1' for key 'config_name'<br>
--------------------------------------

Importing into the CCM failed!

Re: Error updating configuration

Posted: Mon Oct 01, 2018 1:32 pm
by scottwilkerson
Please run this

Code: Select all

rm -f /usr/local/nagios/etc/import/*
then run these again

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh

Re: Error updating configuration

Posted: Mon Oct 01, 2018 1:58 pm
by newdawnccs
WOOOOOOOHOOO, That worked.....no errors and took the config.....thanks for all your help

Re: Error updating configuration

Posted: Mon Oct 01, 2018 2:12 pm
by scottwilkerson
newdawnccs wrote:WOOOOOOOHOOO, That worked.....no errors and took the config.....thanks for all your help
Glad it is resolved!