Disable notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
igeoigeo
Posts: 8
Joined: Tue Oct 08, 2019 3:19 pm

Disable notifications

Post 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.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Disable notifications

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
baboyo3029
Posts: 1
Joined: Sun Apr 19, 2020 7:20 pm

Re: Disable notifications

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Disable notifications

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
igeoigeo
Posts: 8
Joined: Tue Oct 08, 2019 3:19 pm

Re: Disable notifications

Post 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.
Locked