Nagios XI Config Failed
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Nagios XI Config Failed
There was an issue in the import tool that was fixed in 5.4.1. Please upgrade to 5.4.2 and let us know if you still have the issue: https://assets.nagios.com/downloads/nag ... nstall.pdf
Re: Nagios XI Config Failed
HI,
I have upgraded nagiosxi to 5.4.4,but still i am stuck with the migration from nagios core,any change in step after the up gradation process,am still following the
https://assets.nagios.com/downloads/nag ... p-Tool.pdf
https://assets.nagios.com/downloads/nag ... p-Tool.pdf
document,after the import i could not see my notification.cfg is not reflected in the ccm manger screen like it shows for host,hostgroup,service and servicegroup in left side pane
I have upgraded nagiosxi to 5.4.4,but still i am stuck with the migration from nagios core,any change in step after the up gradation process,am still following the
https://assets.nagios.com/downloads/nag ... p-Tool.pdf
https://assets.nagios.com/downloads/nag ... p-Tool.pdf
document,after the import i could not see my notification.cfg is not reflected in the ccm manger screen like it shows for host,hostgroup,service and servicegroup in left side pane
Re: Nagios XI Config Failed
Can you screen capture the error you are having and post it here?
The try and follow this procedure to see if you can resolve the configuration errors.
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.
Depending on the config files that are used with the cfgprep tool, it may create invalid configs and they will not import in to XI and those configs would have to be recreated manually.
The try and follow this procedure to see if you can resolve the configuration errors.
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.
Depending on the config files that are used with the cfgprep tool, it may create invalid configs and they will not import in to XI and those configs would have to be recreated manually.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Config Failed
attached is the screen shot of the config which i am importing.will you be able to help what should be the priority on which config should be imported.
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI Config Failed
To help out, I need to see the error generated after that config file was imported and the Apply Config was run.
Without seeing the error, I cannot help.
When you are importing the files in to the system, this is the order they should be done.
After each group is imported, Apply the Config, fix the error generated and then continue on.
Without seeing the error, I cannot help.
When you are importing the files in to the system, this is the order they should be done.
Code: Select all
Commands > Time Periods > Contact Templates > Contacts > Contact Groups > Host Templates > Hosts > Host Groups > Service Templates > Services > Service GroupsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Config Failed
Hi,
i have applied the services with out error and now trting to import the service dependecy file,but when i try to import the servic dependecy file,its not importing crrectky with name as in the orginal file,its showing as below format,
define servicedependency {
# config_name Import 1503390273.8835
inherits_parent 0
execution_failure_criteria w,u,c,p
notification_failure_criteria w,u,c,p
dependency_period 24x7
}
i had tried importing once again with importing service dependency and after the config file management file verification getting an error as
Error: Impossible service dependency definition
(config file '/usr/local/nagios/etc/servicedependencies.cfg', starting at line '2245')
Error processing object config files!
The problem is the file is non editable, whenever we goes back and update with change manually it is not reflecting after verifying file. If we goes back and check the file it will revert back to original as given below.
###############################################################################
#
# Service dependency configuration file
#
# Created by: Nagios Core Config Manager 2.6.7
# Date: 2017-08-22 08:39:50
# 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 servicedependency {
# config_name Import 1503390273.8835
inherits_parent 0
execution_failure_criteria w,u,c,p
notification_failure_criteria w,u,c,p
dependency_period 24x7
}
i have applied the services with out error and now trting to import the service dependecy file,but when i try to import the servic dependecy file,its not importing crrectky with name as in the orginal file,its showing as below format,
define servicedependency {
# config_name Import 1503390273.8835
inherits_parent 0
execution_failure_criteria w,u,c,p
notification_failure_criteria w,u,c,p
dependency_period 24x7
}
i had tried importing once again with importing service dependency and after the config file management file verification getting an error as
Error: Impossible service dependency definition
(config file '/usr/local/nagios/etc/servicedependencies.cfg', starting at line '2245')
Error processing object config files!
The problem is the file is non editable, whenever we goes back and update with change manually it is not reflecting after verifying file. If we goes back and check the file it will revert back to original as given below.
###############################################################################
#
# Service dependency configuration file
#
# Created by: Nagios Core Config Manager 2.6.7
# Date: 2017-08-22 08:39:50
# 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 servicedependency {
# config_name Import 1503390273.8835
inherits_parent 0
execution_failure_criteria w,u,c,p
notification_failure_criteria w,u,c,p
dependency_period 24x7
}
Re: Nagios XI Config Failed
The servicedependency.cfg file by your example is not formatted correctly by the cfgprep tool.
Some files may not convert correctly and the settings will have to be recreated in the Core Config Manager manually.
Try removing the corrupted entries in the Core Config Manager, import the other files if possible and recreate the entries that did not convert all the way.
Some files may not convert correctly and the settings will have to be recreated in the Core Config Manager manually.
Try removing the corrupted entries in the Core Config Manager, import the other files if possible and recreate the entries that did not convert all the way.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Config Failed
HI ,
i am still facing the issue with service group and service dependency config import.what is the usual process for imprting this confifg which shows up error in importing.
i am still facing the issue with service group and service dependency config import.what is the usual process for imprting this confifg which shows up error in importing.
-
kyang
Re: Nagios XI Config Failed
@bosco,
Are you still using the same service dependency config file? Or did you change it?
Could you post the config files that are giving you errors?
What is the error message?
Are you still using the same service dependency config file? Or did you change it?
Could you post the config files that are giving you errors?
What is the error message?