nagios 3.0.5 email notifications fail {Spam?}

alex alex fdm.alex at gmail.com
Mon Jan 12 12:44:21 CET 2009


Hi again,
Yes, there is another template named generic-contact but it's identical to
the generic (excepting the name).
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:

"

Return-Path: <nagios at localhost.localdomain>
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by localhost.localdomain (8.14.1/8.14.1) with ESMTP id n0CAArp4003801
	for <nagios at localhost.localdomain>; Mon, 12 Jan 2009 12:10:53 +0200
Received: (from nagios at localhost)
	by localhost.localdomain (8.14.1/8.14.1/Submit) id n0CAArxq003799
	for nagios at localhost; Mon, 12 Jan 2009 12:10:53 +0200
Date: Mon, 12 Jan 2009 12:10:53 +0200
From: nagios at localhost.localdomain
Message-Id: <200901121010.n0CAArxq003799 at localhost.localdomain>
To: nagios at localhost.localdomain

Subject: ** $ Host Alert: host1 is UP **

***** Nagios *****

Notification: FLAPPINGSTOP
Host: host1
State: UP
Address: 172.30.129.67
Info: PING OK - Packet loss = 0%, RTA = 11.74 ms

Date/Time: Sun Jan 11 15:10:11 EET 2009"


Or for a service
"
Subject: ** FLAPPINGSTOP Service Alert: host1/is_alive is OK **

***** Nagios *****

Notification Type: FLAPPINGSTOP

Service: is_alive
Host: host1
Address: 172.24.14.242
State: OK

Date/Time: Mon Jan 12 12:10:53 EET 2009

Additional Info:

PING OK - Packet loss = 0%, RTA = 131.99 ms


"

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%.

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.

Thank you again,

Alex

On Sat, Jan 10, 2009 at 1:11 AM, Marc Powell <marc at ena.com> wrote:

>
> 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                           nagios at 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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090112/73568de8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list