<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE id=owaTempEditStyle></STYLE>

<STYLE title=owaParaStyle>P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>

<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY ocsi="x">
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=297561312-21032011>Plz help.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=297561312-21032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=297561312-21032011>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=297561312-21032011>Sakshi Anand</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Anand, Sakshi <BR><B>Sent:</B> Sunday, 
March 20, 2011 11:31 PM<BR><B>To:</B> 
Nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Issue in 
configuring Nagios Appender<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV 
style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<DIV></DIV>
<DIV dir=ltr><FONT face=Tahoma color=#000000 size=2>All,</FONT></DIV>
<DIV dir=ltr><FONT face=tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=tahoma size=2>I am trying to configure nagios appender 
for one of my applications which is using log4j to log data. Also, my NSCA 
configuration is running fine.</FONT></DIV>
<DIV dir=ltr><FONT face=tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=tahoma size=2>However, I am not able to send checks from 
the application using nagios appender. </FONT></DIV>
<DIV dir=ltr><FONT face=tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=tahoma size=2>Following is what my log4j.xml looks like 
(it is successfully writing to console and to log file too) - </FONT></DIV>
<DIV dir=ltr><FONT face=tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>
<P><?xml version="1.0" encoding="UTF-8" ?> </P>
<P><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> </P>
<P><log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'> 
</P>
<P><appender name="CA" class="org.apache.log4j.ConsoleAppender"> </P>
<P><layout class="org.apache.log4j.PatternLayout"> </P>
<P><param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n" /> 
</P>
<P></layout> </P>
<P></appender> </P>
<P></P>
<P><appender name="FA" class="org.apache.log4j.FileAppender"> </P>
<P><param name="File" 
value="C:\\eclipse\\workspace2\\NSCA-PassiveChecks\\nagiosAppenderDemo\\Log4jDemo.log"/> 
</P>
<P><layout class="org.apache.log4j.PatternLayout"> </P>
<P><param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n" /> 
</P>
<P></layout> </P>
<P></appender></P>
<P></P>
<P><appender class="org.apache.log4j.nagios.NagiosAppender" 
name="NAGIOS-Connection Monitoring"></P>
<P><param name="Host" value="rpc1934.daytonoh.ncr.com"/></P>
<P><param name="Port" value="5667"/></P>
<P><param name="ServiceNameDefault" value="uContainer"/></P>
<P><param name="useMDCServiceName" value="false"/></P>
<P><param name="useMDCHostName" value="false"/></P>
<P><param name="useShortHostName" value="false"/></P>
<P><param name="Log4j_Level_ERROR" value="NAGIOS_CRITICAL"/></P>
<P><param name="Log4j_Level_FATAL" value="NAGIOS_CRITICAL"/></P>
<P><param name="ExcludeFilterEnabled" value="true"/></P>
<P><param name="PatternFilterFile" 
value="NagiosIncludeExcludeFilters.properties"/></P>
<P><param name="SendStartupMessageOK" value="Application Errors 
Cleared"/></P>
<P></P>
<P><layout class="org.apache.log4j.PatternLayout"></P>
<P><param name="ConversionPattern" value="server: %X{Connection Monitoring}: 
%m%n"/></P>
<P></layout> </P>
<P></appender></P>
<P></P>
<P><root> </P>
<P><level value="DEBUG" /> </P>
<P><appender-ref ref="CA" /> </P>
<P><appender-ref ref="FA" /></P>
<P></root> </P>
<P></log4j:configuration></P>
<P><FONT face=tahoma></FONT> </P>
<P><FONT face=tahoma>Please help me in finding the issue and a way to debug 
it.</FONT></P>
<P><FONT face=tahoma></FONT> </P>
<P><FONT face=tahoma>Thanks & Regards,</FONT></P>
<P><FONT face=tahoma>Sakshi Anand</FONT></P></FONT></DIV></DIV></BODY></HTML>