occasional stuck mail

Noah Leaman noah at mac.com
Thu Mar 18 06:04:16 CET 2004


I don't believe this is actually a problem with nagios but with the 
mail app being used to send notifications out. I am using Mac OS X 
Panther so it's actually by default Postfix (not Sendmail) being used. 
I also am not able to reproduce the problem consistently, but it looks 
bad anytime people aren't notified.

What is happening is once and awhile, an email notification doesn't get 
sent until another later email is sent. Nagios does report the 
notification as being sent so I believe the notify command (shown 
below) is being executed. It seems like the mail gets stuck in a mail 
queue or something and only gets sent when it sends the next mail.

I am not that familiar with how mail, sendmail, or postfix actually 
works at this level so I am a little stumped as to where to look. could 
anyone perhaps just point me in the right direction?

This is one of my email notifications commands as set up in my 
miscommands.cfg (using /usr/bin/mail):

define command{
   command_name  notify-by-email
   command_line  /usr/bin/printf "%b" "Notification Type: 
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional 
Info:\n\n$OUTPUT$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ alert - 
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$
   }

-- 
Noah



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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