Nagios Blank Emails

Ed Bragg ed.bragg at gmail.com
Wed Jul 13 23:08:22 CEST 2005


I was seeing something similar I guess. 

We have our own SMTP service running to receive the e-mails for
further processing by other alert tools. Our setup is using the
modified sample notify-by-email and host-notify-by-email commands
defined in the sample configs using /usr/bin/mail to send the
messages. Occasionaly our SMTP service would get a non-stop stream of
null's. The way we found this out was our smtp service was starting a
new thread for each smtp connection, eventually causing the server to
run out of CPU cycles. Of course, since Nagios doesn't actually open
port 25 to send the mail, my guess is we have a problem with the way
our mail command is executing the notify-by-email and
host-notify-by-email commands.

define command {
    command_name    notify-by-email
    command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert
- $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
define command {
    command_name    host-notify-by-email
    command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s "Host
$HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
}

Is there some way to turn up the logging levels in Nagios that might
include the exact arguments passed when sending the notification
command?



On 7/13/05, Ruiz, Francisco <fruiz at netsuite.com> wrote:
>  
>  
> 
> Hi, 
> 
>   
> 
> Just curious if anyone has seen this problem. I am getting blank emails sent
> from nagios. I checked disk space levels, and all looks fine. The blank
> emails are sporadic. And occur only a few times a day. 
> 
>   
> 
> Any thoughts. 
> 
>   
> 
> Thanks in advance! 


-- 
Ed Bragg
----------------------------------------------------------------
http://www.ebware.com
X10 Wireless Security Equipment - Affordable Security!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
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