Team,
Recently we have upgraded nagios version from 5.2.7 to 5.6.14 (latest version) after upgrade we are experiencing issues with "Bulk host cloning and import" feature in nagios XI.
Below is the error message showing in apply configuration log. Can you please help on this issue.
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Invalid max_check_attempts value for host '<servername'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/<servername>.cfg', starting on line 16)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Thank you..!
Issue with Bulk host cloning and import wizard
Issue with Bulk host cloning and import wizard
Last edited by ibmkenexa on Fri May 22, 2020 3:34 am, edited 1 time in total.
Re: Issue with Bulk host cloning and import wizard
First, try this:
Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then click the Verify Files button, if it verifies properly, please try to Apply Configuration
That alone may fix it.
If it fails again, please do this (in these exact steps):
Please run this tail command as root (and leave it running):
Then try to apply configuration through the web interface and once it completes/errors send me the full output from the tail command above.
You can also try going to Configure > Core Config Manager > Hosts:
- Edit the swy01asrptdb05.db.hosting.knxa host
- Click the Check Settings tab
- Max sure check_interval, max_check_attempts, retry_interval are all set
- Click Save
- Now Apply Config and see if it's successful.
If all that doesn't fix it, do this:
Go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Once they are done being written (don't do anything in between, don't apply config or anything), run this command and send me the resulting /tmp/NAGIOSBADFILES.zip file:
Please send me a copy of your profile as well, you can download it from Admin > System Profile > Download Profile.
Thank you!
Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then click the Verify Files button, if it verifies properly, please try to Apply Configuration
That alone may fix it.
If it fails again, please do this (in these exact steps):
Please run this tail command as root (and leave it running):
Code: Select all
tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.logYou can also try going to Configure > Core Config Manager > Hosts:
- Edit the swy01asrptdb05.db.hosting.knxa host
- Click the Check Settings tab
- Max sure check_interval, max_check_attempts, retry_interval are all set
- Click Save
- Now Apply Config and see if it's successful.
If all that doesn't fix it, do this:
Go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Once they are done being written (don't do anything in between, don't apply config or anything), run this command and send me the resulting /tmp/NAGIOSBADFILES.zip file:
Code: Select all
zip -r /tmp/NAGIOSBADFILES.zip /usr/local/nagios/etcPlease send me a copy of your profile as well, you can download it from Admin > System Profile > Download Profile.
Thank you!
Re: Issue with Bulk host cloning and import wizard
Thank you very much..!
Below instructions have fixed our issues.
Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then click the Verify Files button, if it verifies properly, please try to Apply Configuration
That alone may fix it.
Below instructions have fixed our issues.
Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then click the Verify Files button, if it verifies properly, please try to Apply Configuration
That alone may fix it.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with Bulk host cloning and import wizard
Great!ibmkenexa wrote:Thank you very much..!
Below instructions have fixed our issues.
Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then click the Verify Files button, if it verifies properly, please try to Apply Configuration
That alone may fix it.
Locking thread