<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:m = "http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16700">
<STYLE><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></STYLE>
</HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma" lang=EN-US link=blue vLink=purple>
<DIV>Yeah, for the service-by-email notification you should add $LONGSERVICEOUTPUT$. I edited your command as follows:</DIV>
<DIV> </DIV>
<DIV>
<P class=MsoNormal>define command{<o:p></o:p></P>
<P class=MsoNormal>        command_name notify-service-by-email<o:p></o:p></P>
<P class=MsoNormal>        command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$<STRONG>\n$LONGSERVICEOUTPUT$</STRONG>" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$</P>
<P class=MsoNormal>}<o:p></o:p></P></DIV>
<DIV> </DIV>
<DIV><BR>>>> Mirza Dedic <mirde@oppy.com> 2011/02/15 23:58 >>><BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal>Hello,<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>I recently re-installed my Nagios environment and recently found that using my old configuration that used to work, is not working now; more specifically the email notification parsing seems to not send information regarding “additional information” part.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Example email notification message that I receive:<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoPlainText>***** Nagios *****<o:p></o:p></P>
<P class=MsoPlainText><o:p> </o:p></P>
<P class=MsoPlainText>Notification Type: PROBLEM<o:p></o:p></P>
<P class=MsoPlainText><o:p> </o:p></P>
<P class=MsoPlainText>Service: DB Log Watch oppy1<o:p></o:p></P>
<P class=MsoPlainText>Host: van-oppy<o:p></o:p></P>
<P class=MsoPlainText>Address: 172.16.4.14<o:p></o:p></P>
<P class=MsoPlainText>State: CRITICAL<o:p></o:p></P>
<P class=MsoPlainText><o:p> </o:p></P>
<P class=MsoPlainText>Date/Time: Tue Feb 15 11:06:26 PST 2011<o:p></o:p></P>
<P class=MsoPlainText><o:p> </o:p></P>
<P class=MsoPlainText><B>Additional Info:<o:p></o:p></B></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>There is nothing in for additional information, below is the email notification command being used:<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>define command{<o:p></o:p></P>
<P class=MsoNormal>        command_name notify-host-by-email<o:p></o:p></P>
<P class=MsoNormal>        command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$<o:p></o:p></P>
<P class=MsoNormal>        }<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>define command{<o:p></o:p></P>
<P class=MsoNormal>        command_name notify-service-by-email<o:p></o:p></P>
<P class=MsoNormal>        command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$<o:p></o:p></P>
<P class=MsoNormal><BR>Any help on troubleshooting this?<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Thank you!<o:p></o:p></P></DIV><BR>
<HR>
<FONT color=gray size=1 face=Arial><BR>The Oppenheimer Group ---- CONFIDENTIAL<BR><BR>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<BR></FONT><BR>

    <div>
      <br>
      <font face="Webdings" color="green" size="2"><span>P</span></font><span><font face="Arial" color="green" size="2"> 
      Please consider your environmental responsibility before printing this 
      e-mail or any other document. Ask yourself whether you need a hard copy.</font></span>
    </div>
  </BODY></HTML>