Page 1 of 1

Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Sat Oct 14, 2017 2:19 pm
by emi65
Hi

I'm using Nagios core 4.2.1
I disable notificaton in the services .cfg file but the cgi nagios interface doesn't show
the icon of notification disable
I attach the .cfg file and the printscreen of the web interface

Please could you help me to undertand where is the problem ?

Thanks for your help
Emilio

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Mon Oct 16, 2017 10:22 am
by mcapra
My guess is that there's a status.dat entry which is enabling notifications.

There's 2 places you can enable/disable notifications: Within the object's status entry (**/nagios/var/status.dat), and within the object's configuration entry (**/nagios/etc/some_config.cfg). I forget the default behavior and I'm not sure which one wins.

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Mon Oct 16, 2017 2:30 pm
by dwasswa
Thanks @mcapra,

@ emi65 , after disabling the notifications,did you run

Code: Select all

service nagios restart
?

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Tue Oct 17, 2017 5:26 am
by emi65
I did
rm status.dat objects.cache objects.precache retention.dat

I restarted nagios by command
service nagios restart

but the nagios cgi interface didn't show the notification disable icon

Please , do you have other suggestion
thanks
Emilio

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Tue Oct 17, 2017 12:35 pm
by dwasswa
Hi @ emi65,

Are you trying to turn off notifications for the host SVZNOVOWEB001W8 or its services?

Have you also tried disabling them through the web UI?

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Wed Oct 18, 2017 3:10 am
by emi65
Yes I try to disable notification to host and all his services from Web interface (Disable Notificaton for all services on this host)
and this operation works well (the disable notification icon appears and the notification are truely disabled)

Always I can re-enable the notification from the web interface and all works well

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Posted: Wed Oct 18, 2017 11:41 am
by dwasswa
Hi @ emi65 ,

When you disable notifications from the web UI to should run and apply those configurations.

So,my question is,if you did this in the web UI and its worked fine do now wish to do manually from the terminal?