On Jan 9, 2009, at 11:26 AM, alex alex wrote: > Hi again, > I've just disabled events handler. I think youwere right. The dead > emails were from events handler, not from notifications. No new > notifications failed in letter.dead It seems that in event handler, > the $CONTACTEMAIL$ is not set. > But now, even stranger, no notification is sent. I mean I enabled > debug in nagios.cfg and the result is: > [1231482452.131909] [032.0] [pid=16674] ** Host Notification Attempt > ** Host: 'h > ost1', Type: 0, Options: 0, Current State: 1, Last Notification: Thu > Jan 1 > 02:00:00 1970 > [1231482452.132086] [032.0] [pid=16674] Notification viability test > passed. > [1231482452.132104] [032.1] [pid=16674] Current notification number: > 1 (incremen > ted) > [1231482452.132127] [032.1] [pid=16674] Host notification will NOT > be escalated. > [1231482452.132241] [032.1] [pid=16674] Adding normal contacts for > host to notif > ication list. > [1231482452.132504] [032.0] [pid=16674] No contacts were notified. > Next possibl > e notification time: Thu Jan 1 02:00:00 1970 > [1231482452.132524] [032.0] [pid=16674] 0 contacts were notified. > Now more than ever I don't understand why no contacts were notified! > It can mean that normal contacts doesn't exist? >
From a previous e-mail -- define contact { contact_name nagios use generic-contact alias nagios email nag...@localhost } define contact { name generic host_notification_period 24din2_7din7 service_notification_period 24din2_7din7 host_notification_options d,u,r,n,f service_notification_options u,c,w,r,n,f host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email register 0 } Your contact 'nagios' uses a template named 'generic-contact'. Do the host and service_notification_periods in that template include the time when the notification above was supposed to go out? The contact template you provided is named 'generic' not 'generic-contact' so there must be another template that needs to be looked at. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null