<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Francesco - any progress on the issue?<br>
<br>
<br>
<div class="moz-cite-prefix">On 07/26/2017 05:52 PM, Anders Håål
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:fd8d8556-683a-c18b-4d58-111afb2d0e4b@ingby.com">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
<p>Thanks for the feedback.</p>
<p>When bischeck "stop working" it would be interesting to
understand if anything gets logged after it "stops" and also
what is logged when you do a restart - but I suggest you do a
stop and see what is logged before starting.</p>
<p>I would suggest that you change the log level in logback.xml
for all packages<br>
</p>
<p> <root level="INFO"><br>
<appender-ref ref="bischeck"/><br>
</root></p>
<p>To avoid duplicates you should also add the additivity="false"
on the other logger. Based on the standard logback.xml you can
test this in your test environment first, have not tested it my
self, and if it looks good deploy in in production according to
your specific customization of paths, etc.</p>
<p><br>
</p>
<p>logback.xml:<br>
</p>
<p><?xml version="1.0" encoding="UTF-8"?><br>
<br>
<configuration><br>
<jmxConfigurator /><br>
<appender name="bischeck"
class="ch.qos.logback.core.rolling.RollingFileAppender"><br>
<!--See also <a class="moz-txt-link-freetext"
href="http://logback.qos.ch/manual/appenders.html#RollingFileAppender"
moz-do-not-send="true">http://logback.qos.ch/manual/appenders.html#RollingFileAppender</a>--><br>
<File>/var/tmp/bischeck.log</File><br>
<encoder><br>
<pattern>%d{yyyy-MM-dd
HH:mm:ss.SSS,Europe/Stockholm} ; %p ; %t ; %c ;
%m%ex%n</pattern><br>
</encoder><br>
<br>
<rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"><br>
<maxIndex>3</maxIndex><br>
<FileNamePattern>/var/tmp/bischeck.log.%i</FileNamePattern><br>
</rollingPolicy><br>
<br>
<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><br>
<MaxFileSize>1000KB</MaxFileSize><br>
</triggeringPolicy><br>
<br>
</appender><br>
<br>
<logger name="com.ingby" level="INFO"
additivity="false"><br>
<appender-ref ref="bischeck"/><br>
</logger><br>
<br>
<br>
<logger
name="com.ingby.socbox.bischeck.configuration.CachePurgeJob"
level="DEBUG" additivity="false"><br>
<appender-ref ref="bischeck"/><br>
</logger><br>
<br>
<logger
name="com.ingby.socbox.bischeck.cache.provider.redis"
level="DEBUG" additivity="false"><br>
<appender-ref ref="bischeck"/><br>
</logger><br>
<br>
<br>
<logger name="org.quartz" level="INFO"
additivity="false"><br>
<appender-ref ref="bischeck"/><br>
</logger><br>
<br>
<root level="WARN"><br>
<appender-ref ref="bischeck"/><br>
</root><br>
<br>
</configuration><br>
</p>
<br>
The root section will secure that everything from any java
packages with WARN or ERROR is logged to the bischeck appender. <br>
Regards <br>
Anders<br>
<br>
<div class="moz-cite-prefix">On 07/25/2017 09:55 AM, Francesco
Giuseppe Toffoli wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9f1a3b07-f520-e457-07af-f7b44ee42026@skylogic.it">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
<p>Hi Anders,<br>
thanks for your reply. I'll answer you to the variuos
questions:</p>
<p>(1) the java version is:</p>
<p> openjdk version "1.8.0_91"<br>
OpenJDK Runtime Environment (build 1.8.0_91-b14)<br>
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)<br>
</p>
and has not been updated recently. In our test environment,
(where the problem does not occur), the version is nearly the
same (1.8.0_121).<br>
The OS has not been updated, (CentOS release 6.6).<br>
<br>
(2) Redis has not been uptaded recently, (redis 2.8.23). At the
moment we have more or less 13.000 keys used.<br>
<br>
(3) We usually add checks, maybe weekly. The issue started to
occur some months ago, but it could happen that for 2 or 3 weeks
everything is ok, then we have several crashes in a week. I'm
not so inclined to give the guilt to some new checks, also
because the testing server is aligned to the production one. <br>
<br>
<br>
(5) Yes, the restart is done via '/etc/init.d/bischeckd restart'
and it solves the issue. Physical memory on the server is always
OK, i don't think to a jvm out of memory.<br>
<br>
In the Bischeck logs i didn't notice any error. However, at the
next crash i'll try have a deeper look at them.<br>
Could i have a look at some other logs maybe?<br>
<br>
Thanks,<br>
Francesco<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Il 24/07/2017 21:57, Anders Håål ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:b685ee8b-e1ce-d943-b6e8-88545cdc8fca@ingby.com">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
<p>Hi Giuseppe,</p>
<p>Sounds strange that it just stopped working after along
time of stability if not something has change:</p>
<p>- Anything change on the server you run bischeck on - OS,
jdk version, ......</p>
<p>- Update redis version? Change in configuration?</p>
<p>- Added any new bischeck check or changed something in the
configuration?<br>
</p>
<p>- Anything else you can think about that may have change?</p>
<p>When you say restarting is it the normal
/etc/init.d/bischeckd restart that fix the problem? The
reason I ask is that the script just do a kill with TERM
signal. If the jvm would be in a out of memory situation it
may not be enough, but you should have seen that in the log
I guess. Sure you do not have any ERROR or WARN entries in
the log.</p>
<p>/Anders <br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 07/24/2017 02:14 PM, Francesco
Giuseppe Toffoli wrote:<br>
</div>
<blockquote type="cite"
cite="mid:95f4a4eb-1319-f8cb-acd0-1832252656d4@skylogic.it">
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-15">
<p>Hi, <br>
we are experiencing a critical problem with Bischeck. It's
a couple of months it sometimes suddenly stops working:
the daemon /etc/init.d/bicheckd is running but no check
results are sent to Nagios. Restarting bischeck daemon
fixes the issue. <br>
Unfortunately we can't find any clue about the root cause
on bischeck logs, not even with DEBUG logging level
enabled. Redis database seems working properly and no
increasing of memory/cpu usage are reported on the server
hosting bischeck while the issue occurs. <br>
<br>
Do you have any suggestion on how to deeply investigate
this?</p>
<p>Regards,<br>
Francesco<br>
</p>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-15">
<title></title>
<p class="MsoNormal"><font color="#3333ff" size="-1">Francesco
Giuseppe Toffoli</font><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";color:black;mso-fareast-language:IT"><br>
Monitoring Engineer</span><span
style="mso-fareast-language:IT"></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:IT">GSE
Department</span><span style="mso-fareast-language:IT"></span>
</p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:IT">Tel:
+39 0112738748<font size="-1">8</font></span><span
style="mso-fareast-language:IT"><o:p></o:p></span></p>
<span style="font-size:10.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:IT">Mobile:
+39 349.800.60.35 <span style="color:black"><br>
Email: </span><u><span style="color:blue"><a
href="mailto:ftoffoli@skylogic.it"
moz-do-not-send="true">ftoffoli@skylogic.it</a></span></u></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:black;mso-fareast-language:IT"><br>
</span><b><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000099;mso-fareast-language:IT"><img
shrinktofit="true" id="_x0000_i1025"
src="imap://aha%40ingby%2Ecom@mail.messagingengine.com:993/fetch%3EUID%3E.INBOX.Drafts%3E5624?part=&filename=/home/franz/skylogic_logo.jpeg"
moz-do-not-send="true" border="0" width="190"
height="44"><br>
</span></b><b><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";color:#000099;mso-fareast-language:IT">Skylogic
S. p. A.</span></b><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";color:black;mso-fareast-language:IT"><br>
Strada Pianezza, 289<br>
10151 Torino, Italy </span> </div>
<br>
<br>
<br>
This message contains confidential information and is
intended only for the individual named. If you are not the
named addressee you should not disseminate, distribute or
copy this e-mail. Please notify the sender immediately by
e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission
cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses.
The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which
arise as a result of e-mail transmission. If verification is
required please request a hard-copy version. Please note
that any views or opinions presented in this email are
solely those of the author and do not necessarily represent
those of the Company.<br>
No employee or agent is authorized to conclude any binding
agreement on behalf of this Company nor, through this
latter, any of the Eutelsat Communication group with another
party by email without express written confirmation by a
duly authorized officer of the Company. The list of duly
authorized officers and the scope of their powers is
published on the Trade Register according to the national
law of each affiliate. <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ingby <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com" moz-do-not-send="true"><http://www.ingby.com></a>
bischeck - dynamic and adaptive monitoring for Nagios <a class="moz-txt-link-rfc2396E" href="http://www.bischeck.org" moz-do-not-send="true"><http://www.bischeck.org></a>
<a class="moz-txt-link-abbreviated" href="mailto:anders.haal@ingby.com" moz-do-not-send="true">anders.haal@ingby.com</a><a class="moz-txt-link-rfc2396E" href="mailto:anders.haal@ingby.com" moz-do-not-send="true"><mailto:anders.haal@ingby.com></a>
Mjukvara genom ingenjörsmässig kreativitet och kompetens
Ingenjörsbyn
Box 531
101 30 Stockholm
Sweden
<a class="moz-txt-link-abbreviated" href="http://www.ingby.com" moz-do-not-send="true">www.ingby.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com/" moz-do-not-send="true"><http://www.ingby.com/></a>
Mobil: +46 70 575 35 46
Tele: +46 75 75 75 090
Fax: +46 75 75 75 091
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-15">
<title></title>
<p class="MsoNormal"><font color="#3333ff" size="-1">Francesco
Giuseppe Toffoli</font><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";color:black;mso-fareast-language:IT"><br>
Monitoring Engineer</span><span
style="mso-fareast-language:IT"></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:IT">GSE
Department</span><span style="mso-fareast-language:IT"></span>
</p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:IT">Tel:
+39 0112738748<font size="-1">8</font></span><span
style="mso-fareast-language:IT"><o:p></o:p></span></p>
<span style="font-size:10.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:IT">Mobile:
+39 349.800.60.35 <span style="color:black"><br>
Email: </span><u><span style="color:blue"><a
href="mailto:ftoffoli@skylogic.it"
moz-do-not-send="true">ftoffoli@skylogic.it</a></span></u></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:black;mso-fareast-language:IT"><br>
</span><b><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000099;mso-fareast-language:IT"><img
shrinktofit="true" id="_x0000_i1025"
src="imap://aha%40ingby%2Ecom@mail.messagingengine.com:993/fetch%3EUID%3E.INBOX.Drafts%3E5624?part=&filename=/home/franz/skylogic_logo.jpeg"
moz-do-not-send="true" border="0" width="190"
height="44"><br>
</span></b><b><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";color:#000099;mso-fareast-language:IT">Skylogic
S. p. A.</span></b><span
style="font-size:10.0pt;font-family:"Times New
Roman","serif";color:black;mso-fareast-language:IT"><br>
Strada Pianezza, 289<br>
10151 Torino, Italy </span> </div>
<br>
<br>
<br>
This message contains confidential information and is intended
only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and delete this e-mail from
your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message,
which arise as a result of e-mail transmission. If verification
is required please request a hard-copy version. Please note that
any views or opinions presented in this email are solely those
of the author and do not necessarily represent those of the
Company.<br>
No employee or agent is authorized to conclude any binding
agreement on behalf of this Company nor, through this latter,
any of the Eutelsat Communication group with another party by
email without express written confirmation by a duly authorized
officer of the Company. The list of duly authorized officers and
the scope of their powers is published on the Trade Register
according to the national law of each affiliate. <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ingby <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com" moz-do-not-send="true"><http://www.ingby.com></a>
bischeck - dynamic and adaptive monitoring for Nagios <a class="moz-txt-link-rfc2396E" href="http://www.bischeck.org" moz-do-not-send="true"><http://www.bischeck.org></a>
<a class="moz-txt-link-abbreviated" href="mailto:anders.haal@ingby.com" moz-do-not-send="true">anders.haal@ingby.com</a><a class="moz-txt-link-rfc2396E" href="mailto:anders.haal@ingby.com" moz-do-not-send="true"><mailto:anders.haal@ingby.com></a>
Mjukvara genom ingenjörsmässig kreativitet och kompetens
Ingenjörsbyn
Box 531
101 30 Stockholm
Sweden
<a class="moz-txt-link-abbreviated" href="http://www.ingby.com" moz-do-not-send="true">www.ingby.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com/" moz-do-not-send="true"><http://www.ingby.com/></a>
Mobil: +46 70 575 35 46
Tele: +46 75 75 75 090
Fax: +46 75 75 75 091
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ingby <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com"><http://www.ingby.com></a>
bischeck - dynamic and adaptive monitoring for Nagios <a class="moz-txt-link-rfc2396E" href="http://www.bischeck.org"><http://www.bischeck.org></a>
<a class="moz-txt-link-abbreviated" href="mailto:anders.haal@ingby.com">anders.haal@ingby.com</a><a class="moz-txt-link-rfc2396E" href="mailto:anders.haal@ingby.com"><mailto:anders.haal@ingby.com></a>
Mjukvara genom ingenjörsmässig kreativitet och kompetens
Ingenjörsbyn
Box 531
101 30 Stockholm
Sweden
<a class="moz-txt-link-abbreviated" href="http://www.ingby.com">www.ingby.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com/"><http://www.ingby.com/></a>
Mobil: +46 70 575 35 46
Tele: +46 75 75 75 090
Fax: +46 75 75 75 091
</pre>
</body>
</html>