Good morning,
I'd like to know what would be the simplest way to perform a mass change on every Service Check in our XI environment.
We're finding some irregularities in our environment whenever something goes wrong and typically it stems to the fact that the particular Service Check has no Check or Alert settings configured.
We have a baseline that we normally apply to every new Service Check, so we'd like to ensure at the bare minimum everything is set to that. We don't want to change Contacts or Contact Groups; just things like Check Interval, Retry Interval, Max Check Attempts, Check Period and Notification Period.
Thank you.
Mass change to Check and Alert Settings
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass change to Check and Alert Settings
Hi @rferbee,
Have you tried the Bulk Mods Tool ( go to Configure > Tools > Bulk Modifications Tool) and select Change a Single Configuration Option)? One thing to note, if you have a really large system, I would recommend making changes in batches as it's possible to hit the PHP limits.
Let me know if you have any questions.
Have you tried the Bulk Mods Tool ( go to Configure > Tools > Bulk Modifications Tool) and select Change a Single Configuration Option)? One thing to note, if you have a really large system, I would recommend making changes in batches as it's possible to hit the PHP limits.
Let me know if you have any questions.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Mass change to Check and Alert Settings
Yeah, I was hoping there was something that could be done via the CLI?
I'm hesitant to use the Bulk Modification tool for the very reason you mentioned. It would be tough to do batches since we have over 3500 Service Checks at the moment.
Is there any sort of command that could be written to make changes to the service checks directly in the DB?
I'm hesitant to use the Bulk Modification tool for the very reason you mentioned. It would be tough to do batches since we have over 3500 Service Checks at the moment.
Is there any sort of command that could be written to make changes to the service checks directly in the DB?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass change to Check and Alert Settings
Hi @rferebee,
Nagios XI - Optimizing The PHP Settings File
You can update configuration options using the API, go to Help> API Docs > Config Reference > Services. However, you would have to create a custom script to automate this over 3500 services checks.
You can also up php limits, please see the link below for directions.I'm hesitant to use the Bulk Modification tool for the very reason you mentioned. It would be tough to do batches since we have over 3500 Service Checks at the moment.
Nagios XI - Optimizing The PHP Settings File
You can update configuration options using the API, go to Help> API Docs > Config Reference > Services. However, you would have to create a custom script to automate this over 3500 services checks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Mass change to Check and Alert Settings
Ok, thank you. We'll work out a way to get this done.
You can lock this thread.
You can lock this thread.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass change to Check and Alert Settings
Hi @rferebee,
Thanks for update. Closing.You can lock this thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!