Page 1 of 1

Modify Misc Settings in Multiple Services

Posted: Fri Dec 28, 2018 12:13 pm
by adminskymed
Hi All,

I have to change "URL Notes" field in about 400 services with the same value.
How can I do it without open any services?
It seems that bulk tool doesn't give the possibility to change Misc Settings.

Thanks
Alessandro

Re: Modify Misc Settings in Multiple Services

Posted: Fri Dec 28, 2018 1:38 pm
by swolf
Hi Alessandro,

I agree with you that the Bulk Modifications tool doesn't allow for this.

Depending on how far you're willing to dig in to avoid opening services manually, you may be able to make the changes you want using the API. There isn't a specific parameter to change the Notes URL, but you would be able to overwrite the configuration for each service using the "POST config/import" endpoint. You can see an example of this in Help -> Config Reference (at the bottom of the page).

Otherwise, I know we're looking at making a couple of additions to the Bulk Modifications Tool that would be coming in XI 5.6, which may be helpful for you. If those changes make it through, they would be coming in Q1 2019.

Best Wishes,
Sebastian Wolf

Re: Modify Misc Settings in Multiple Services

Posted: Mon Dec 31, 2018 4:45 am
by adminskymed
Thanks You Swolf,

I'm very happy to know that in the future more features will be added to bulk modification tool and I thank you because I didn't know Nagios XI API and it seems to be an usefull tool.

For my problem I resolve in this way:

- I made a copy of templates used by my 400 services (5 templates)
- I added the right Note URL to the new copied templates
- Using Bulk Tool I change template for all services using the new ones with the right Note URL

I hope it works :D

Thanks
Alex

Re: Modify Misc Settings in Multiple Services

Posted: Wed Jan 02, 2019 12:52 pm
by ssax
That should work, one thing to note is that if the hosts/services have something defined in the Notes URL directly on the host/service it will override the settings in the template you applied.

Is it working for you?

Re: Modify Misc Settings in Multiple Services

Posted: Fri Jan 11, 2019 11:24 am
by adminskymed
Hi Ssax,

yes, it is working!

Thanks
Ale

Re: Modify Misc Settings in Multiple Services

Posted: Fri Jan 11, 2019 2:17 pm
by scottwilkerson
adminskymed wrote:Hi Ssax,

yes, it is working!

Thanks
Ale
great! Locking thread