Modify Misc Settings in Multiple Services

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

Modify Misc Settings in Multiple Services

Postby adminskymed » Fri Dec 28, 2018 12:13 pm

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

Re: Modify Misc Settings in Multiple Services

Postby swolf » Fri Dec 28, 2018 1:38 pm

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

Re: Modify Misc Settings in Multiple Services

Postby adminskymed » Mon Dec 31, 2018 4:45 am

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

Re: Modify Misc Settings in Multiple Services

Postby ssax » Wed Jan 02, 2019 12:52 pm

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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 3791
Joined: Wed Feb 11, 2015 12:54 pm

Re: Modify Misc Settings in Multiple Services

Postby adminskymed » Fri Jan 11, 2019 11:24 am

Hi Ssax,

yes, it is working!

Thanks
Ale
adminskymed
 
Posts: 12
Joined: Tue Feb 20, 2018 5:40 am

Re: Modify Misc Settings in Multiple Services

Postby scottwilkerson » Fri Jan 11, 2019 2:17 pm

adminskymed wrote:Hi Ssax,

yes, it is working!

Thanks
Ale


great! Locking thread
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13812
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios XI

Who is online

Users browsing this forum: mamir and 18 guests