Nagios Only Sending out Flapping Alerts

DE/HAM Hoppe, Leif Leif.Hoppe at hartrodt.com
Tue Oct 20 16:52:32 CEST 2009


Hi Kevin,

May you can attach the contactgroups and contacts config?

Maybe you forgot the notification type for warning, critical and so on for the contacts?

Regards from Hamburg

Leif



From: Goutos, Kevin [mailto:kgoutos at libertymgt.com]
Sent: Dienstag, 20. Oktober 2009 16:42
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios Only Sending out Flapping Alerts

Hello all,

First off, I really appreciate any feedback you can provide.  I've just recently started working with Nagios and everything is working great, except for notifications being sent out.  I've been searching all over the net, comparing my configurations with others to see if there was anything noticeable I was missing, but I can't seem to find anything.   I've included my configuration files below for you to look at.

I have been able to send a mail from the server (CentOS 5.3) using sendmail.  I can also successfully send Email using the E-mail commands in the commands.cfg file.
[code]/usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ <MY EMAIL ADDRESS>[/code]

Everything is being monitored correctly, just for some reason the E-mails are not being sent out.  I should also note that if I do a "Send custom host notification" in nagios on a host that has a critical warning, I DO get an E-mail successfully.  It's just not automatically sending them out.

UPDATE: I do have some good news.  I did receive a notification last night for a flapping alert.  However, it still is not sending out alerts from being down, returning to up state, etc...
[quote]
[1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU Load;STOPPED; Service appears to have stopped flapping (4.0% change < 5.0% threshold)
[1255678430] SERVICE NOTIFICATION: libertyadmins;AUSTIN-LAPTOP;CPU Load;FLAPPINGSTOP (CRITICAL);notify-service-by-email;No route to host[/quote]

So it appears I'm receiving flapping alerts, but nothing else.  In the Nagios web interface, if I go to Configuration --> Contacts....I can see that under Service Notification Options and Host Configuration Options I only see "Flapping, Downtime" enabled.  I'm not getting downtime alerts, but shouldn't there be more options there? Uptime....etc.



Is there something obvious I am missing in the config files?  I really appreciate the help, please let me know what you think.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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