<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi="x">
<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>