Page 1 of 1

I'm getting an error while trying to add the router

Posted: Tue Jul 25, 2017 2:28 pm
by lazoo
Configuration verification failed.

Re: I'm getting an error while trying to add the router

Posted: Tue Jul 25, 2017 3:19 pm
by tgriep
If the device you are running the wizard against has a lot of ports, it could be returning so much data that it is getting truncated creating a invalid configuration.
To fix this, follow this procedure.

Edit the /etc/php.ini file
add this to the bottom of that file

Code: Select all

max_input_vars=5000
Save the file

Then Edit the /etc/httpd/conf/httpd.conf file

Code: Select all

LimitRequestLine 100000
add this to the bottom of that file

Restart Apache for the changes to take affect by running the following as root.

Code: Select all

service httpd restart
Try running the Wizard again to see if it works.

Re: I'm getting an error while trying to add the router

Posted: Tue Jul 25, 2017 6:09 pm
by lazoo
I'm still getting the same error.

Re: I'm getting an error while trying to add the router

Posted: Tue Jul 25, 2017 6:17 pm
by lazoo
I'm running the following configuration


###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.6.7
# Date: 2017-07-25 16:16:45
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
host_name 192.168.245.245
use xiwizard_switch_host
address 192.168.245.245
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image switch.png
statusmap_image switch.png
_xiwizard switch
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

Re: I'm getting an error while trying to add the router

Posted: Wed Jul 26, 2017 9:03 am
by tgriep
In your example, the contacts option is there, but no contact is defined, did you remove it before you posted it?

Lets make sure the configuration is good before running the wizard again. Follow this procedure to do that.
Go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click the click the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button after all of the errors are resolved.

Then, in the XI GUI, go to the Admin > Manage Config Wizards menu and check for updates. If the Network Switch / Router wizard needs to be updated, update it and run it again.
Let us know it this works.