[Nagiosplug-help] Problem with Email Alerts

Ian Rarity Ian.Rarity at espc.com
Fri Sep 4 11:52:06 CEST 2009


Hi Narasimha,

The default notify command that’s being run is notify-host-by-email, which just uses /bin/mail to do the actual sending.  Can you use mail to send a test message from the command line?  If not, that’s your problem.
It may also be worth looking in your mail server’s logs; these will probably be somewhere like /var/log/mail or /var/log/maillog, and should indicate if a) the mail is being correctly send to your MTA, and b) whether or not the MTA has any problems delivering it.

Ta,
IR.

From: Narasimha Tadepalli [mailto:Narasimha.Tadepalli at pervasive.com]
Sent: 03 September 2009 22:28
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] Problem with Email Alerts

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 01CA2D4D.6D367E60][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 01CA2D4D.6D367E60][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 01CA2D4D.6D367E60][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 01CA2D4D.6D367E60][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


________________________________

Private and Confidential: This e-mail transmission is strictly confidential and intended solely for the addressee. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, disclose, distribute or take any action in reliance on it. If you have received this e-mail in error, please delete it and notify our E-mail Systems Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any liability for any harm that may be caused to the recipient's system or data by this message or any attachment.

ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland (Registered Number SC203585), and having its registered office at 90A George Street, Edinburgh, Midlothian EH2 3DF.

ESPC (UK) Ltd is an Appointed Representative of Accord Consultancy which is authorised and regulated by the Financial Services Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090904/a1b25d9b/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/20090904/a1b25d9b/attachment.png>


More information about the Help mailing list