Error updating configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
newdawnccs
Posts: 18
Joined: Sat Feb 08, 2014 3:12 pm

Re: Error updating configuration

Post 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.
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: Error updating configuration

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
newdawnccs
Posts: 18
Joined: Sat Feb 08, 2014 3:12 pm

Re: Error updating configuration

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error updating configuration

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
newdawnccs
Posts: 18
Joined: Sat Feb 08, 2014 3:12 pm

Re: Error updating configuration

Post by newdawnccs »

WOOOOOOOHOOO, That worked.....no errors and took the config.....thanks for all your help
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error updating configuration

Post by scottwilkerson »

newdawnccs wrote:WOOOOOOOHOOO, That worked.....no errors and took the config.....thanks for all your help
Glad it is resolved!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked