<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>Hi, 
</FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>Is there a way to 
manipulate the content of an email by type of email notification ? For example, 
if I acknowledge a Critical alert with the text 'Under Investigation', I want to 
include that text in the </FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>email notification. 
However, if I receive a recovery notification I don't need to have the 
acknowledgement text included. </FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>I've configured the 
following in miscommands.cfg </FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2># 'notify-by-email' 
command definition<BR>define 
command{<BR>        
command_name    
notify-by-email<BR>        
command_line    /usr/bin/printf "%b" "***** Nagios  
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: 
$SERVICEDESC$<BR>\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional 
Info:\n\n$SERVICEOUTPUT$\nAcknowledgements: $SERVICEACKCOMMENT$" | /usr/bin/mail 
-s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ 
**" $CONTACTEMAIL$</FONT></SPAN><SPAN class=754425409-30112005><FONT face=Arial 
size=2><BR>        }</FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>But I do not 
want ` \nAcknowledgements: $SERVICEACKCOMMENT$ ` on Recovery alerts. 
The alternative would be to have a default value set of N/A which is overridden 
with a value if an acknowledgement</FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>has been set but I 
don't see an easy way to do this either. </FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>Does anyone have any 
ideas if it can be done (and how) or that it can't be done like this ? 
</FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2>thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=754425409-30112005><FONT face=Arial size=2>deborah 
</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">************************************************************************ </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">This email and any files transmitted with it are confidential and </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">intended solely for the use of the individual or entity to whom they </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">are addressed. Any unauthorised distribution or copying is strictly  </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">prohibited. </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;"> </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">Whilst Kognitio Limited takes steps to prevent the transmission of  </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">viruses via e-mail, we can not guarantee that any email or  </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">attachment is free from computer viruses and you are strongly </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">advised to undertake your own anti-virus precautions. </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;"> </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">Kognitio grants no warranties regarding performance, </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">use or quality of any e-mail or attachment and undertakes no  </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">liability for loss or damage, howsoever caused. </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">*********************************************************************** </SPAN> </P></BODY></HTML>