Your message dated Wed, 24 Mar 2010 20:25:27 +0000 (WET)
with message-id <[email protected]>
and subject line Package nagios-common has been removed from Debian
has caused the Debian Bug report #440284,
regarding GNU mailutils' mail requires \n at end of last line
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
440284: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440284
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nagios-common
Version: 1.4-3
The definition of notify-by-email and the like in
/etc/nagios/misccommands.cfg defines the body of the email to have a
last line NOT ending in a \n character. GNU mailutils' mail will drop
these last lines.
For example, in the package source file
nagios-1.4/sample-config/default-object/misccommands.cfg.in:
command[notify-by-email]=/usr/bin/printf "%b" "***** Nagios @VERSION@
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | @MAIL_PROG@ -s "**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$
needs to be:
command[notify-by-email]=/usr/bin/printf "%b" "***** Nagios @VERSION@
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$\n" | @MAIL_PROG@ -s "**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$
else the contents of $OUTPUT$ don't make it into the email. Similarly
for other commands utilising @MAIL_PROG@ where that may be GNU
mailutils' mail program.
It's simple to test this with two quick commandlines:
/usr/bin/printf "%b" "***** Testing *****\n\nWibble" | /usr/bin/mail -s "**
test **" <user>
/usr/bin/printf "%b" "***** Testing *****\n\nWibble\n" | /usr/bin/mail -s "**
test **" <user>
The first email will NOT have the line 'Wibble' in it, the second will.
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Version: 2:1.4-3.2+rm
You filed the bug http://bugs.debian.org/440284 in Debian BTS
against the package nagios-common. I'm closing it at *unstable*, but it will
remain open for older distributions.
For more information about this package's removal, read
http://bugs.debian.org/464774. That bug might give the reasons why
this package was removed and suggestions of possible replacements.
Don't hesitate to reply to this mail if you have any question.
Thank you for your contribution to Debian.
--
Marco Rodrigues
--- End Message ---