Nagios 2.12: Notifications does not work

Hi.

Nagios does not send (does not try to send) any notifications when the hard non-OK state occures.

Message from the logfile:
SERVICE ALERT: www.domain.com;HTTP;CRITICAL;HARD;3;HTTP CRITICAL - string not found

check_http is using the option “–string=STRING” - String to expect in the content

Here is the config relative to notifications:

enable_notifications=1

define service{
host_name www
service_description HTTP

notification_interval 15
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
contact_groups admins
}

define contactgroup{

contactgroup_name admins
members admin
}

define contact{

contact_name admin
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,n
service_notification_options w,u,c,r,f,n
host_notification_commands host-notify-by-email
service_notification_commands notify-by-email
email [email protected]
}

Hi!

I’m not exactly sure, but from this info page:
nagios.sourceforge.net/docs/2_0/ … ml#contact
have a look at “service_notification_options”: the “n” option means that no notifications will be sent … that may be your problem

Oops… I’m definitely stupid…
Yes, that was the problem. Thanks!