Bulk remove check and notification period settings
-
daniel.letendre
- Posts: 6
- Joined: Sun Dec 26, 2021 9:22 pm
Bulk remove check and notification period settings
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!
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
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:
Please send over the results and PM your updated system profile for us to review.
To send us your system profile.
Perry
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.logTo 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
Perry
-
daniel.letendre
- Posts: 6
- Joined: Sun Dec 26, 2021 9:22 pm
Re: Bulk remove check and notification period settings
While running the Bulk tool (or not) the tail output simply has text like this, repeating over and over:
The behavior doesn't seem to change at all while the bulk tool is running.
PM'ing you the system profile shortly.
Thanks!
Code: Select all
$ tail -F /usr/local/nagiosxi/var/cmdsubsys.log
PROCESSED 0 COMMANDS
............................................................
PROCESSED 0 COMMANDS
.............................................................
PROCESSED 0 COMMANDS
..........................................................
PROCESSED 0 COMMANDS
.............................................................PM'ing you the system profile shortly.
Thanks!
-
daniel.letendre
- Posts: 6
- Joined: Sun Dec 26, 2021 9:22 pm
Re: Bulk remove check and notification period settings
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
"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
Please follow the guide attached and let me know if that resolves the issue:
You do not have the required permissions to view the files attached to this post.
-
daniel.letendre
- Posts: 6
- Joined: Sun Dec 26, 2021 9:22 pm
Re: Bulk remove check and notification period settings
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.ssax wrote:Please follow the guide attached and let me know if that resolves the issue:
Should I revert these changes?
Re: Bulk remove check and notification period settings
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.
I'm looking more into this and will update shortly.
Re: Bulk remove check and notification period settings
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!
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
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!
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
-
daniel.letendre
- Posts: 6
- Joined: Sun Dec 26, 2021 9:22 pm
Re: Bulk remove check and notification period settings
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...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!![]()
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
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
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
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