[Nagiosplug-help] Problem with Email Alerts

Narasimha Tadepalli Narasimha.Tadepalli at pervasive.com
Thu Sep 3 23:28:21 CEST 2009


Hi David

What is the default command Nagios uses to send mail?.
I found some thing in log files like below.

[09-03-2009 21:25:02] Warning: The results of service 'Current Load' on host 'ec2-75-101-200-287.compute-1.amazonaws.com' are stale by 0d 0h 3m 7s (threshold=0d 0h 3m 15s). I'm forcing an immediate check of the service.
[cid:image001.png at 01CA2CB3.8D0C6B90][09-03-2009 21:25:02] Warning: Contact 'nagiosadmin' host notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\nHost: ec2-75-101-200-287.compute-1.amazonaws.com\nState: DOWN\nAddress: ec2-75-101-200-287.compute-1.amazonaws.com\nInfo: Name or service not known\n\nDate/Time: Thu Sept 3 21:24:31 UTC 2009\n" | /bin/mail -s "** PROBLEM Host Alert: ec2-75-101-200-287.compute-1.amazonaws.com is DOWN **" ntadepalli at pervasive.com' timed out after 30 seconds
[cid:image001.png at 01CA2CB3.8D0C6B90][09-03-2009 21:24:59] HOST NOTIFICATION: nagiosadmin;ec2-75-101-200-287.compute-1.amazonaws.com;DOWN;notify-host-by-email;Name or service not known
[cid:image001.png at 01CA2CB3.8D0C6B90][09-03-2009 21:24:59] Warning: Contact 'nagiosadmin' host notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: $SERVICEDESC$\nHost: ec2-75-101-200-287.compute-1.amazonaws.com\nAddress: ec2-75-101-200-287.compute-1.amazonaws.com\nState: $SERVICESTATE$\n\nDate/Time: Thu Sept 3 21:24:28 UTC 2009\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** PROBLEM Service Alert: ec2-75-101-200-287.compute-1.amazonaws.com/$SERVICEDESC$ is $SERVICESTATE$ **" ntadepalli at pervasive.com' timed out after 30 seconds
[cid:image001.png at 01CA2CB3.8D0C6B90][09-03-2009 21:24:31] HOST NOTIFICATION: nagiosadmin;ec2-75-101-200-287.compute-1.amazonaws.com;DOWN;notify-host-by-email;Name or service not known



From: David Gossage [mailto:dgossage at zacks.com]
Sent: Thursday, September 03, 2009 3:46 PM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] Problem with Email Alerts

Do you see any attempts in the log files that nagios is trying to actually send the emails?  If so try sending a simple test email from the command line and see what happens.


On Thu, 2009-09-03 at 15:36 -0500, Narasimha Tadepalli wrote:
Hi All



I couldn’t able to receive any email alerts. I configured the proper contacts with right emails. And also I saw lot of the critical alerts which are displaying in web interface. What should I do to fix this issue?. I am suspecting some thing wrong with either sendmail or other default mail client for Nagios.



Thanks In advance

narasimha




------------------------------------------------------------------------------

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

trial. Simplify your report design, integration and deployment - and focus on

what you do best, core application coding. Discover what's new with

Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________ Nagiosplug-help mailing list Nagiosplug-help at lists.sourceforge.net<mailto:Nagiosplug-help at lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins 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-plugins.org/archive/help/attachments/20090903/44f16533/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 174 bytes
Desc: image001.png
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090903/44f16533/attachment.png>


More information about the Help mailing list