Page 1 of 2

Bulk remove check and notification period settings

Posted: Tue Jan 25, 2022 12:50 pm
by daniel.letendre
I'm trying to remove the "check period" and "notification period" settings defined on several hosts and services without having to touch each one manually. I'm doing this because we have these defined in templates and want to keep the settings there, not on individual hosts and services, and know that the setting is not overridden.

I've been able to use the Bulk Modification Tool to clear other individual settings such as "check interval" successfully, by simply applying a blank setting with the tool. The same strategy doesn't work with the "check period" or "notification period" settings. The Bulk Modification Tool completes the job "successfully" but does not actually make the requested change.

Example run:
1. In the Bulk Modification Tool, select "Change a single config option."
2. Choose "check period" or "notification period" as the configuration option to change.
3. Leave the "time period" field blank.
4. Select necessary hosts or services.
5. Click the "Save changes" button.
6. The tool runs and says, "Updates saved successfully!"
7. Use "Apply Configuration" to apply the changes.
8. Check the settings on the hosts or services and see that the old settings are still intact. My expectation is that they would be blank instead, so that the template definition is inherited.

Is this the intended behavior? Is there a better way to achieve what I'm trying to do?

I'm running Nagios XI 5.8.7.

Thanks!

Re: Bulk remove check and notification period settings

Posted: Wed Jan 26, 2022 11:37 am
by pbroste
Hello @daniel.letendre

Thanks for reaching out, jumped on over to my test VM and ran through scenarios. You are correct that when we leave the 'Notification Period' blank in the Bulk Modifications Tool the result is ==> none.

Want to start off by taking a look at what happening during the Bulk Modification by running through a 'Bulk Modification' at the same time watch the results:

Code: Select all

tail -F /usr/local/nagiosxi/var/cmdsubsys.log
Please send over the results and PM your updated system profile for us to review.

To send us your system profile.
  • Login to the Nagios XI GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via Private Message
Thanks,
Perry

Re: Bulk remove check and notification period settings

Posted: Wed Jan 26, 2022 12:11 pm
by daniel.letendre
While running the Bulk tool (or not) the tail output simply has text like this, repeating over and over:

Code: Select all

$ tail -F /usr/local/nagiosxi/var/cmdsubsys.log
PROCESSED 0 COMMANDS
............................................................
PROCESSED 0 COMMANDS
.............................................................
PROCESSED 0 COMMANDS
..........................................................
PROCESSED 0 COMMANDS
.............................................................
The behavior doesn't seem to change at all while the bulk tool is running.

PM'ing you the system profile shortly.

Thanks!

Re: Bulk remove check and notification period settings

Posted: Wed Jan 26, 2022 12:13 pm
by daniel.letendre
I'd like to PM you the system profile as requested, but the forum won't let me. I get this message:
"We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more to be able to use this feature."

Moderator's Note: There's a profile uploaded to the ticketing system: https://support.nagios.com/tickets/scp/ ... p?id=17376

Re: Bulk remove check and notification period settings

Posted: Thu Jan 27, 2022 2:10 pm
by ssax
Please follow the guide attached and let me know if that resolves the issue:
php-fpm timeout issue.txt

Re: Bulk remove check and notification period settings

Posted: Thu Jan 27, 2022 3:20 pm
by daniel.letendre
ssax wrote:Please follow the guide attached and let me know if that resolves the issue:
php-fpm timeout issue.txt
I tried, but unfortunately that doesn't seem to have had any effect on this issue. I'll add that I get the same behavior whether I'm using the bulk tool to blank out these settings on one host/service or many. It just doesn't seem to affect the "notification period" or "check period" settings at all.

Should I revert these changes?

Re: Bulk remove check and notification period settings

Posted: Fri Jan 28, 2022 3:04 pm
by ssax
No, leave the changes in place as they are needed for other known issues with EL8.

I'm looking more into this and will update shortly.

Re: Bulk remove check and notification period settings

Posted: Fri Jan 28, 2022 3:43 pm
by pbroste
Hello @daniel.letendre

Is there a chance that you're intending to change 'Check interval' and 'Notification interval' instead of the 'Check period' and 'Notification period'?

I made that mistake while testing what you were doing! :D

How many hosts/services are you changing? There's a chance you could be exceeding your /etc/php.ini max_input_vars setting, what is it currently set to?

Thanks,
Perry

Re: Bulk remove check and notification period settings

Posted: Fri Jan 28, 2022 4:26 pm
by daniel.letendre
pbroste wrote:Hello @daniel.letendre

Is there a chance that you're intending to change 'Check interval' and 'Notification interval' instead of the 'Check period' and 'Notification period'?

I made that mistake while testing what you were doing! :D

How many hosts/services are you changing? There's a chance you could be exceeding your /etc/php.ini max_input_vars setting, what is it currently set to?

Thanks,
Perry
Hi, I'm definitely choosing "check period" or "notification period" and did another test just now to make sure. Same result (the old setting persists). I've also tried it against just a single host or service and get the same results. We don't even have that many hosts monitored yet, as this is a pretty new instance, so I'm not sure I even could hit that limit...

Is it able to blank out those settings for you in your test environment?

Edit: accidentally double-quoted

Re: Bulk remove check and notification period settings

Posted: Mon Jan 31, 2022 11:37 am
by pbroste
Hello @daniel.letendre

Thanks for following up, please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

Thanks,
Perry