Issue with Bulk host cloning and import wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Issue with Bulk host cloning and import wizard

Post by ibmkenexa »

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..!
Last edited by ibmkenexa on Fri May 22, 2020 3:34 am, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issue with Bulk host cloning and import wizard

Post by ssax »

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):

Code: Select all

tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.log
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:

Code: Select all

zip -r /tmp/NAGIOSBADFILES.zip /usr/local/nagios/etc

Please send me a copy of your profile as well, you can download it from Admin > System Profile > Download Profile.

Thank you!
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Re: Issue with Bulk host cloning and import wizard

Post by ibmkenexa »

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.
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

Post by scottwilkerson »

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.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked