Page 1 of 1

Disable notifications

Posted: Wed Apr 15, 2020 3:34 am
by igeoigeo
Hello,

I have disabled notifications for service/host (notifications_enabled = 0), but nagios still sends. Below is the configuration that I applied:

Code: Select all

define host {
        host_name                       test.example.com
        address                         test.example.com
        notifications_enabled           0
        use                             linux-server
        check_command                   check_http_
        register                        1
        }

define service{
        use                             local-service         ; Name of service template to use
        host_name                       test.example.com
        service_description             TEST
        notification_options            w,u,c,r                 ; Send notifications about warning, unknown, critical, and recovery events
        notification_interval           10                      ; Re-notify about service problems every 10 minutes
        check_command                   check_http_
        notifications_enabled           0
        }
How can I overcome this issue?
thank you.

Re: Disable notifications

Posted: Wed Apr 15, 2020 1:37 pm
by jbrunkow
Did you restart the Nagios service after you changed the configuration? This action will apply new configuration.

Code: Select all

service nagios restart
It is possible that the setting in that file is being overridden by another. Do you see any conflicting information in either the */nagios/var/status.dat or the */nagios/etc/*.cfg file on that server?

Re: Disable notifications

Posted: Sun Apr 19, 2020 7:24 pm
by baboyo3029
igeoigeo wrote:Hello,

I have disabled notifications for service/host (notifications_enabled = 0), but nagios still sends. Below is the configuration that I applied:

Code: Select all

define host {
        host_name                       test.example.com
        address                         test.example.com
        notifications_enabled           0
        use                             linux-server
        check_command                   check_http_
        register                        1
        }

define service{
        use                             local-service         ; Name of service template to use
        host_name                       test.example.com
        service_description             TEST
        notification_options            w,u,c,r                 ; Send notifications about warning, unknown, critical, and recovery events
        notification_interval           10                      ; Re-notify about service problems every 10 minutes
        check_command                   check_http_
        notifications_enabled           0
        }
How can I overcome this issue?
thank you.
Hi buddy, it happens. Just restart everything so the system can apply and you are good to go.

regards,
B. Smith

Re: Disable notifications

Posted: Thu Apr 23, 2020 4:10 pm
by benjaminsmith
Hi @baboyo3029 .

Just checking in, did you get it worked out? Let us know when you have a minute.

Benjamin
Nagios Support Team

Re: Disable notifications

Posted: Fri Apr 24, 2020 1:26 am
by igeoigeo
it didn't work with the aforementioned way, so I managed to fix it by using the following configuration:

notification_options = n

we can close the this post.

thanks.