Hi again,<br>Yes, there is another template named generic-contact but it's identical to the generic (excepting the name).<br>But here's a good news: I have some notifications (finnaly, it seems that the notification works). And the bad news is that I get only emails like:<br>
<br>"<br><pre id="line1">Return-Path: <nagios@localhost.localdomain><br>Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])<br> by localhost.localdomain (8.14.1/8.14.1) with ESMTP id n0CAArp4003801<br>
for <nagios@localhost.localdomain>; Mon, 12 Jan 2009 12:10:53 +0200<br>Received: (from nagios@localhost)<br> by localhost.localdomain (8.14.1/8.14.1/Submit) id n0CAArxq003799<br> for nagios@localhost; Mon, 12 Jan 2009 12:10:53 +0200<br>
Date: Mon, 12 Jan 2009 12:10:53 +0200<br>From: nagios@localhost.localdomain<br>Message-Id: <200901121010.n0CAArxq003799@localhost.localdomain><br>To: nagios@localhost.localdomain<br><br>Subject: ** $ Host Alert: host1 is UP **<br>
<br>***** Nagios *****<br><br>Notification: FLAPPINGSTOP<br>Host: host1<br>State: UP<br>Address: 172.30.129.67<br>Info: PING OK - Packet loss = 0%, RTA = 11.74 ms<br><br>Date/Time: Sun Jan 11 15:10:11 EET 2009"<br><br>
<br>Or for a service<br>"<br>Subject: ** FLAPPINGSTOP Service Alert: host1/is_alive is OK **<br><br>***** Nagios *****<br><br>Notification Type: FLAPPINGSTOP<br><br>Service: is_alive<br>Host: host1<br>Address: 172.24.14.242<br>
State: OK<br><br>Date/Time: Mon Jan 12 12:10:53 EET 2009<br><br>Additional Info:<br><br>PING OK - Packet loss = 0%, RTA = 131.99 ms</pre><br>"<br><br>Is it the right behaviour (to put flapping instead up/down if the flapping is enabled) ? The thresholds for flapp are set at 25% and 50%.<br>
<br>Anyhow, some notifications are sent and that's the main good news. I think from now only some small changes must be done in my configs to tune the uinstallation.<br><br>Thank you again,<br><br>Alex <br><br><div class="gmail_quote">
On Sat, Jan 10, 2009 at 1:11 AM, Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com">marc@ena.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On Jan 9, 2009, at 11:26 AM, alex alex wrote:<br>
<br>
> Hi again,<br>
> I've just disabled events handler. I think youwere right. The dead<br>
> emails were from events handler, not from notifications. No new<br>
> notifications failed in letter.dead It seems that in event handler,<br>
> the $CONTACTEMAIL$ is not set.<br>
> But now, even stranger, no notification is sent. I mean I enabled<br>
> debug in nagios.cfg and the result is:<br>
> [1231482452.131909] [032.0] [pid=16674] ** Host Notification Attempt<br>
> ** Host: 'h<br>
> ost1', Type: 0, Options: 0, Current State: 1, Last Notification: Thu<br>
> Jan 1<br>
> 02:00:00 1970<br>
> [1231482452.132086] [032.0] [pid=16674] Notification viability test<br>
> passed.<br>
> [1231482452.132104] [032.1] [pid=16674] Current notification number:<br>
> 1 (incremen<br>
> ted)<br>
> [1231482452.132127] [032.1] [pid=16674] Host notification will NOT<br>
> be escalated.<br>
> [1231482452.132241] [032.1] [pid=16674] Adding normal contacts for<br>
> host to notif<br>
> ication list.<br>
> [1231482452.132504] [032.0] [pid=16674] No contacts were notified.<br>
> Next possibl<br>
> e notification time: Thu Jan 1 02:00:00 1970<br>
> [1231482452.132524] [032.0] [pid=16674] 0 contacts were notified.<br>
> Now more than ever I don't understand why no contacts were notified!<br>
> It can mean that normal contacts doesn't exist?<br>
><br>
<br>
From a previous e-mail --<br>
<br>
define contact {<br>
contact_name nagios<br>
use generic-contact<br>
alias nagios<br>
email nagios@localhost<br>
}<br>
<br>
define contact {<br>
name generic<br>
host_notification_period 24din2_7din7<br>
service_notification_period 24din2_7din7<br>
host_notification_options d,u,r,n,f<br>
service_notification_options u,c,w,r,n,f<br>
host_notification_commands notify-host-by-email<br>
service_notification_commands notify-service-by-email<br>
register 0<br>
}<br>
<br>
Your contact 'nagios' uses a template named 'generic-contact'. Do the<br>
host and service_notification_periods in that template include the<br>
time when the notification above was supposed to go out? The contact<br>
template you provided is named 'generic' not 'generic-contact' so<br>
there must be another template that needs to be looked at.<br>
<br>
--<br>
Marc<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It is the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://p.sf.net/sfu/Xq1LFB" target="_blank">http://p.sf.net/sfu/Xq1LFB</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>