Page 1 of 1
Monitoring Engine Status - Turn off Notifications
Posted: Fri Feb 17, 2017 6:49 am
by brdr
Hi Nagios Support,
Presently, there is capability to turn off notifications via GUI using the Monitoring Engine Status. Very nice feature... However, after disabling through front-end and, if someone makes a configuration change and hits 'Apply Configuration' the notification process gets turned back on.
The only way I know to permanently disable notifications, that is not affected by config changes is to edit the /usr/local/nagios/etc/nagios.cfg entry:
enable_notifications=1 <--- make this 0
Then bounce the nagios service by doing: service nagios restart
We would like to give our Operations Team the ability to temporarily shut off notifications (via the GUI) even if admins are making config changes. Is there a way to do this?
Thank you!
brdr
Re: Monitoring Engine Status - Turn off Notifications
Posted: Fri Feb 17, 2017 11:15 am
by rkennedy
I just tested, and this persisted through an apply configuration without issue. When you navigate back to the monitoring engine status page AFTER applying configuration, does the box appear to be green under value for Notifications?
Also seems to still be turned off in status.dat -
Code: Select all
programstatus {
modified_host_attributes=1
modified_service_attributes=1
nagios_pid=5549
daemon_mode=1
program_start=1487347959
last_log_rotation=0
enable_notifications=0
Re: Monitoring Engine Status - Turn off Notifications
Posted: Fri Feb 17, 2017 11:56 am
by brdr
Hello, I get the same result - does not persist after an apply configuration.
In Monitoring Engine Process table...
I click Action (X) for Notifications and wait until the value turns RED and Action then becomes a green check. I then go do a simple config update, then hit apply configuration, and Notifications value turns back to green and Action goes back to X.
NOTE: in my status.dat after disabling notifications via the Monitoring Engine Process it still show enable_notifications=1 . which tells me the disabling of notifications is turning it to 0.
programstatus {
modified_host_attributes=0
modified_service_attributes=0
nagios_pid=1421
daemon_mode=1
program_start=1487346136
last_log_rotation=0
enable_notifications=1
active_service_checks_enabled=1
passive_service_checks_enabled=0
active_host_checks_enabled=1
Re: Monitoring Engine Status - Turn off Notifications
Posted: Fri Feb 17, 2017 2:57 pm
by mcapra
Are you using something other than the stock Nagios XI notification handler? That's all the setting on the "Monitoring Engine Status" page enables/disables. It won't address any sort of custom notification handlers.
Re: Monitoring Engine Status - Turn off Notifications
Posted: Tue Feb 21, 2017 8:46 am
by brdr
We are not using custom notification handler. We are using 'xi_host_notification_handler' command.
Still, when I initially disable notifications via Monitoring Engine Process table the flag enable_notifications is set from 1 to 0. Which is what we want, but then after Apply Configuration it goes from 0 to 1.
Re: Monitoring Engine Status - Turn off Notifications
Posted: Tue Feb 21, 2017 10:33 am
by mcapra
Can you share the full contents of your /usr/local/nagios/etc/nagios.cfg file? There may be a setting that's preventing retention.dat from being leveraged and resetting the monitoring engine' settings to default each time.
Re: Monitoring Engine Status - Turn off Notifications
Posted: Tue Feb 21, 2017 10:56 am
by brdr
attach is nagios.cfg.
Note: this is occurring in our PreProd environment as well.
Thank you
Re: Monitoring Engine Status - Turn off Notifications
Posted: Tue Feb 21, 2017 11:04 am
by mcapra
Your configuration isn't retaining the program state:
Try switching that to 1 and see if it resolves the issue.
Re: Monitoring Engine Status - Turn off Notifications
Posted: Tue Feb 21, 2017 11:46 am
by brdr
Yes, that fixed my issue. Thank you!
plz close
brdr