Page 1 of 1

Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 10:49 am
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

Re: Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 4:58 pm
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.

Re: Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 5:46 pm
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.

Re: Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 5:51 pm
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

Re: Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 5:59 pm
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".

Re: Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 6:02 pm
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

Re: Bulk Host Cloning and Import wizard issue

Posted: Wed Nov 28, 2018 6:15 pm
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)

Re: Bulk Host Cloning and Import wizard issue

Posted: Thu Nov 29, 2018 8:05 am
by scottwilkerson
Can you show the last 50 lines of the nagios.log

Code: Select all

tail -50 /usr/local/nagios/var/nagios.log