From: Marc P. <ma...@en...> - 2006-07-23 14:05:50
|
> -----Original Message----- > From: nag...@li... [mailto:nagios-users- > bo...@li...] On Behalf Of Felipe Tocchetto > Sent: Friday, July 21, 2006 1:28 PM > To: nag...@li... > Subject: [Nagios-users] not receiving the nagios notifications >=20 > Hi All >=20 > I have a nagios 2.4 here, I already insert some hosts to it monitor. > But when a host goes down, the nagios system do not send me the > notifications by email. You've told it not to. See below. > define contact{ > contact_name felipe > alias Felipe Tocchetto > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options d,u,r,n > service_notification_options w,u,c,r,n > host_notification_commands host-notify-by-email > service_notification_commands notify-by-email > email fe...@va... > } http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact For host_notification_options and service_notification_options, 'n' means don't send _any_ notifications. Remove it and restart nagios. host_notification_options: This directive is used to define the host states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: d =3D notify on DOWN host states, u =3D notify on UNREACHABLE host states, and = r =3D notify on host recoveries (UP states). *****If you specify n (none) = as an option, the contact will not receive any type of host notifications.***** service_notification_options: This directive is used to define the service states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: w =3D notify on WARNING service states, u =3D notify on UNKNOWN service = states, c =3D notify on CRITICAL service states, and r =3D notify on service recoveries (OK states). *****If you specify n (none) as an option, the contact will not receive any type of service notifications.***** (emphasis mine) -- Marc |