Page 1 of 1

Disable Notification Not work

Posted: Fri Dec 18, 2020 3:46 am
by axvaster
Hi all,

We encountered a little weird problem about notification (alert) mail:
  • 1. We disabled some service's notification via UI (Nagios XI), but it actually called contact function then send some alert mails. (we received alert mails, without showing any entry on "Notification" page.)
    2. If set "notification_enabled=0" in nagios.cfg, it works normal (no sending alert).
Want to ask:
  • 1. Why we can not really disable a service's notification on UI?
    2. What can we do to really stop some service's notification in this case?
I will PM profile after any replying.

Thanks!

Re: Disable Notification Not work

Posted: Fri Dec 18, 2020 3:30 pm
by dchurch
Are you saying that when you click the "Disable Notifications" control in the Nagios XI interface, it says it's disabling notifications then it never actually does?

When a service's notifications are disabled, it should show a little speaker with an X thru it on the service status page:
61038-notification-disabled.png
If you're not seeing that on the Service Status page after you click "Disable Notifications", it's likely a database error. If you PM me a System Profile, it would show if it is.

Editing nagios.cfg directly isn't recommended because of how Nagios XI works; Nagios XI works by regenerating all the config files to feed into Nagios Core each time you click "Apply Configuration." Any changes you made to Nagios Core's configuration files would be lost each time you click "Apply Configuration."

Perhaps if you went into detail about what you're to do, it would help me direct you to the appropriate setting:
- Turn on/off alert emails?
- Turn on/off UI alerts in Nagios XI?