Bulk Host Cloning and Import wizard issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Bulk Host Cloning and Import wizard issue

Post by Sampath.Basireddy »

Hello There,

Recently upgraded NagiosXI to 5.5.5 and then to 5.5.7. After the upgrade, am noticing an issue with "Bulk Host Cloning and Import".

Each time I run the wizard and clone from an existing node, the newly added nodes are missing some mandatory fields like "max_check_attempts", "check_period" etc and the wizard is failing.

Had to manually add those mandatory fields.

Did anyone face this issue?

Thanks,
SB
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: Bulk Host Cloning and Import wizard issue

Post by scottwilkerson »

This is a know issue, that crept in after 5.5.0, but here's how to fix it.

Remove any un-applyable items (hosts/services).

Go to CCM -> Tools -> Config File Management
Delete Files
Write Files

Now the Bulk Import Wizard should work properly to add new items.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: Bulk Host Cloning and Import wizard issue

Post by Sampath.Basireddy »

@scottwilkerson, Thank you for the response, I tried the mentioned steps, but still getting same error message.

I checked for the server name cfg file in "/usr/local/nagios/etc/hosts", but don't see any. Each time I apply the config, it throws the same error.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk Host Cloning and Import wizard issue

Post by scottwilkerson »

You would need to remove the erroring host from the CCM -> hosts

Then again Go to CCM -> Tools -> Config File Management
Delete Files
Write Files
Click Verify

If there are more errors, repeat until the verify is successful.

Then once you can apply configuration again, the Bulk Wizard should work
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: Bulk Host Cloning and Import wizard issue

Post by Sampath.Basireddy »

Yep, I removed all the hosts which I added today and the host name that comes up in the error is neither in "CCM - Hosts" nor the cfg file in "/usr/local/nagios/etc/hosts".
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk Host Cloning and Import wizard issue

Post by scottwilkerson »

If you go to CCM -> Tools -> Config File Management
and run verify do you get any errors?

Are there any files in here? If so remove them

Code: Select all

ls -l /usr/local/nagios/etc/import
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: Bulk Host Cloning and Import wizard issue

Post by Sampath.Basireddy »

No errors, only bunch of warnings.

And the /usr/local/nagios/etc/import is empty.

I went ahead and added that one host which was failing and manually modified the missing fields, but still same error.

And nagios service won't start now:

Code: Select all

root@nagios:[/usr/local/nagios/etc/hosts]: sudo service nagios start
Starting nagios (via systemctl):  Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
                                                           [FAILED]
Here is the output of "systemctl status nagios.service"

Code: Select all

root@nagios:[/usr/local/nagios/etc/hosts]: systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
   Active: failed (Result: resources) since Wed 2018-11-28 18:11:14 EST; 29s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 10448 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
  Process: 16464 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
 Main PID: 20622 (code=exited, status=0/SUCCESS)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk Host Cloning and Import wizard issue

Post by scottwilkerson »

Can you show the last 50 lines of the nagios.log

Code: Select all

tail -50 /usr/local/nagios/var/nagios.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked