Page 1 of 1

Bulk modification tool apply config errors

Posted: Tue Aug 28, 2018 3:11 pm
by gsl_ops_practice
Hello,

We are running NagiosXI 5.4.7. When trying to add services to a new host using the bulk modification tool, it seems like if I choose more than 3 services at a time, I get a failure when applying the config. I can do one or two services and it works, for the most part, but not always guaranteed.

Any thoughts?

Thanks,
Alex

Re: Bulk modification tool apply config errors

Posted: Tue Aug 28, 2018 3:56 pm
by lmiltchev
What are the exact configuration errors that you see? As of now, you can only add valid service configs, where object variables are defined on a "service" level, not inherited from a template.

Under the Bulk Modifications Tool page (Add Service(s) to Hosts), it says:
** Parent, contact, and group relationships will not be copied **
It should probably say:
** Parent, contact, group, and template relationships will not be copied **
as templates don't seem to be inherited. This has been overlooked. We will be changing this message in the next release.

Re: Bulk modification tool apply config errors

Posted: Mon Sep 17, 2018 8:07 am
by gsl_ops_practice
1. I have a host with configured monitors, all is well.
2. I duplicate that host a couple of times since I have 3 cluster members doing the same work
3. Using the bulk modification tool, use "Add services" to add monitors from the first host to the other 2 and get this error:

An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/new_host_2.cfg', starting on line 212)

The host check command is not null, which is why this is confusing.

Re: Bulk modification tool apply config errors

Posted: Mon Sep 17, 2018 10:02 am
by lmiltchev
We were able to recreate the issue in-house, and filed an internal bug report (task_id=13585). The problem is that the host template doesn't get transferred from the original host to the "clones". The check command is NULL, and apply configuration fails. We will be fixing the issue as soon as we can, but for the time being I would recommend that you use Bulk Host Cloning and Import wizard instead.

https://assets.nagios.com/downloads/nag ... Wizard.pdf

Re: Bulk modification tool apply config errors

Posted: Wed Sep 19, 2018 11:10 am
by jomann
After looking into this, it is not a bug. It does not copy the service templates that are applied to the added services. You should be able to go to the service in the CCM, click the download icon for any of the services with the config name new_host_2 and open it in an editor with lines and find line 219 which is going to be a service definition missing some values.

If you copy things like the generic Ping service that is on most hosts generated from config wizards, the check_command is defined in the service template, which is not copied over.

I've updated the text above the box to include that templates are not copied over. We will also look into improving this feature in future versions so that it can copy over services with more complex setups easier.