issues with notifications

Mark Shirley mshirley at gmail.com
Thu Jun 24 20:16:49 CEST 2004


host-notify-by-email 	
/usr/bin/printf \"%b\" \"***** Nagios *****\n\nNotification Type:
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $DATETIME$\n\" |
/usr/bin/mail -s \"Host $HOSTSTATE$ alert for $HOSTNAME$!\"
$CONTACTEMAIL$

That is my current host-notify-by-email command.  When a host DOWN
event occurs it says it sends the notification but I never recieve
one.  Upon further investigating I notice in my mail queue a returned
email from my local smtp server stating the following

>From MAILER-DAEMON Thu Jun 24 13:32:53 2004
Return-path: <>
Envelope-to: nagios at helpdesk
Received: from mail by helpdesk-linux with local (Exim 3.35 #1 (Debian))
id 1BdY5l-0002xZ-00
for <nagios at helpdesk>; Thu, 24 Jun 2004 13:32:53 -0400
From: Mail Delivery System <Mailer-Daemon at helpdesk>
To: nagios at helpdesk
Subject: Mail failure - malformed recipient address
Message-Id: <E1BdY5l-0002xZ-00 at helpdesk-linux>
Date: Thu, 24 Jun 2004 13:32:53 -0400

A message that you sent contained a recipient address that was incorrectly
constructed:

  my-host.domain.com!"  unmatched doublequote in local part (expected
word or "<")

The message has not been delivered to any recipients.

------ This is a copy of your message, including all the headers. ------


To: alert, for, my-host.domain.com!", myemail at domain.com, UP
Subject: "Host

""*****""Nagios""*****nnNotification""Type:""RECOVERYnHost:""my-host.domain.comnState:""UPnAddress:""1.1.1.1nInfo:""$nnDate/Time:""Thu""Jun""24""13:32:53""EDT""2004n""

--------
Notice the To: line!

It seems as though the line it's sending to `mail` is missing some
information.  Could it be that "Host $HOSTSTATE$" is not getting send
to it?  I don't really understand how this could be happening.  Is
there any other information i can provide to make things easier?


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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