Modify Misc Settings in Multiple Services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
adminskymed
Posts: 19
Joined: Tue Feb 20, 2018 5:40 am

Modify Misc Settings in Multiple Services

Post 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
User avatar
swolf
Developer
Posts: 290
Joined: Tue Jun 06, 2017 9:48 am

Re: Modify Misc Settings in Multiple Services

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy
adminskymed
Posts: 19
Joined: Tue Feb 20, 2018 5:40 am

Re: Modify Misc Settings in Multiple Services

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Modify Misc Settings in Multiple Services

Post 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?
adminskymed
Posts: 19
Joined: Tue Feb 20, 2018 5:40 am

Re: Modify Misc Settings in Multiple Services

Post by adminskymed »

Hi Ssax,

yes, it is working!

Thanks
Ale
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Modify Misc Settings in Multiple Services

Post by scottwilkerson »

adminskymed wrote:Hi Ssax,

yes, it is working!

Thanks
Ale
great! Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked