Mass change to Check and Alert Settings

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Mass change to Check and Alert Settings

Post by rferebee »

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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Mass change to Check and Alert Settings

Post by benjaminsmith »

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.
bulk-mods.png
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!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Mass change to Check and Alert Settings

Post by rferebee »

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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Mass change to Check and Alert Settings

Post by benjaminsmith »

Hi @rferebee,
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.
You can also up php limits, please see the link below for directions.

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!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Mass change to Check and Alert Settings

Post by rferebee »

Ok, thank you. We'll work out a way to get this done.

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

Post by benjaminsmith »

Hi @rferebee,
You can lock this thread.
Thanks for update. Closing.
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!
Locked