We have Nagios for all our server, but just for some of them we want to send notifications. I thought that if I set notifications_enabled to 0
for particular hosts, this will not happen anymore.
define host{
use linux-server
host_name dev1
alias dev1 Server
address 100.100.100.205
notifications_enabled 0
}
However, this was ignored. What works is enable_notifications=0
in nagios.cfg, but we need have it more fine tuned.
According to some materials, use_retained_program_state=0
should do the trick, but it seemed to have no effect.
Thanks for help.
Best Answer
Nagios has a distinct notification setting for hosts and services.
You need to tune service notification settings in order to disable it for your case.
Same goes for downtimes, you need to set the downtime for host+services to have an effect.