Nagios 4.2.1 - and notifications_enabled 0 is not show

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
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Nagios 4.2.1 - and notifications_enabled 0 is not show

Post 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
Attachments
NagiosWebScreen.jpg
SVZNOVOWEB001W8.cfg
(21.07 KiB) Downloaded 442 times
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Post 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.
Former Nagios employee
https://www.mcapra.com/
dwasswa

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Post by dwasswa »

Thanks @mcapra,

@ emi65 , after disabling the notifications,did you run

Code: Select all

service nagios restart
?
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Post 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
dwasswa

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Post 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?
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

Post 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
dwasswa

Re: Nagios 4.2.1 - and notifications_enabled 0 is not show

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