<br><font size=2 face="sans-serif">Additional infos
from Matthias (mess) from german nagios forum. (He has mail problem at
the moment and can not post by himself) </font>
<br>
<br><font size=2 face="sans-serif">*******************************************************************************</font>
<br><font size=1 color=#4f4f4f face="Tahoma">running the last cvs changes
on our test server I noticed that $HOSTADDRESS$<br>
macro intermittently is not resolved correctly. I get numerous messages
in nagios.log<br>
<br>
[1190372305] HOST ALERT: host1;DOWN;SOFT;1;check_icmp: Failed to resolve
-w<br>
[1190372345] HOST ALERT: host1;UP;SOFT;2;OK - NNN.NNN.NNN.NNN: rta 0.285ms,<br>
lost 0%<br>
<br>
check_icmp is defined like this: $USER1$/check_icmp -H $HOSTADDRESS$ -w
$ARG1$<br>
-c $ARG2$</font>
<br><font size=2 face="sans-serif">********************************************************************************</font>
<br>
<br><font size=2 face="sans-serif">Best regards</font>
<br><font size=2 face="sans-serif">Thomas</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=2 color=#00a000 face="Webdings">P </font><font size=2 color=#00a000><b>Please
consider the environmental impact of needlessly printing this e-mail.</b></font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Thomas Stolle <it0a60@retail-sc.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: nagios-devel-bounces@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">21.09.2007 12:52</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Nagios Developers List <nagios-devel@lists.sourceforge.net></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">nagios-devel@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">nagios-devel-bounces@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-devel] nagios 3 host checks
logic problem on
some kernels/distros</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Dear List </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
today I installed the new CVS to get rid of the host check logic problem
and the high cpu load.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I can confirm that load is in a normal range now but after installing CVS
someting with host- and servicechecks went terribly wrong.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Many checks return a critical result even if the checked system or service
is up. (I compared with a second nagios server running 2.9. Everything
was ok there.)</font><font size=3> </font><font size=2 face="sans-serif"><br>
I executed the checkcommands manual from the commandline and received correct
values and an OK state, while Nagios said it is critical.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Caused by this I switched back to nagios 3.0b3. All services and hosts
returned to a normal state but of course CPU load is high again now.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Best regards</font><font size=3> </font><font size=2 face="sans-serif"><br>
Thomas</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
</font><font size=2 color=#00a000 face="Webdings"><br>
P </font><font size=2 color=#00a000><b>Please consider the environmental
impact of needlessly printing this e-mail.</b></font><font size=3> <br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=39%><font size=1 face="sans-serif"><b>Ethan Galstad <nagios@nagios.org></b>
<br>
Sent by: nagios-devel-bounces@lists.sourceforge.net</font><font size=3>
</font>
<p><font size=1 face="sans-serif">20.09.2007 23:20</font><font size=3>
</font>
<br>
<table border=4>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
nagios@nagios.org; Please respond to<br>
Nagios Developers List <nagios-devel@lists.sourceforge.net></font></div></table>
<p>
<td width=60%>
<table width=100%>
<tr valign=top>
<td width=8%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=91%><font size=1 face="sans-serif">Nagios Developers List <nagios-devel@lists.sourceforge.net></font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-devel] nagios 3 host checks
logic problem on some kernels/distros</font></table>
<br>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br><font size=3><br>
<br>
</font><tt><font size=2><br>
Thanks all - I found the cause of the problem and fixed it. A patch
<br>
will be in CVS shortly.<br>
<br>
Thomas Stolle wrote:<br>
> <br>
> From: SCHAER Frederic <frederic.schaer <at> cea.fr><br>
> Subject: *nagios 3 host checks logic problem on some kernels/distros*
<br>
> <http://news.gmane.org/find-root.php?message_id=%3cEA04FF699CD5274E9EC52CB5EC0508707667A0%40DIODON.extra.cea.fr%3e>*<br>
> Newsgroups: <http://news.gmane.org/gmane.network.nagios.devel>*
<br>
> <http://news.gmane.org/gmane.network.nagios.devel>*MailScanner
has <br>
> detected a possible fraud attempt from "news.gmane.org"
claiming to be* <br>
> *gmane.network.nagios.devel* <br>
> <http://news.gmane.org/gmane.network.nagios.devel>*<br>
> Date: 2007-09-10 16:17:30 GMT (1 week, 15 hours and 23 minutes ago)
*<br>
> <br>
> *Hi, *<br>
> <br>
> * *<br>
> <br>
> *I think I identified a problem (but not and the solution) on the
nagios <br>
> 3 source tree… *<br>
> <br>
> *I tried with both the 3.0b3 and cvs HEAD source files and could not
get <br>
> rid of the problem. *<br>
> <br>
> *I’m running a 2.4.21 kernel on a RHEL3 box. *<br>
> <br>
> * *<br>
> <br>
> *What happens is that as soon as I start nagios 3, it starts eating
all <br>
> of the *CPU*. *<br>
> <br>
[snip]<br>
> <br>
> *I have 53 hosts defined, I don’t understand why nagios is checking
ever <br>
> and ever the same host… and why this is not happening on all systems.
*<br>
> <br>
> * *<br>
> <br>
> *De-activating host checks magically “solves” the problem. *<br>
> <br>
> * *<br>
> <br>
> *I just found out that commenting hosts “check_command” caused this
<br>
> behaviour (with host_checks_enabled=true), and that defining a correct
<br>
> check_command prevented nagios from being so *CPU* hungry… *<br>
> <br>
> * *<br>
> <br>
> *Hope I helped… *<br>
> <br>
> * *<br>
> <br>
> *Cheers *<br>
> <br>
> <br>
> <br>
> Dear List,<br>
> <br>
> I can confirm the problem Frederic reported.<br>
> I am using Nagios 3.0b3 on CentOS 4.4<br>
> After starting nagios, the process catches nearly 100 % CPU (See <br>
> top-output below)<br>
> Disableing hostchecks let the process return to normal values.<br>
> As far as I can remember, the problem did not occour with nagios3.0a
<br>
> (but I can not verify at the moment)<br>
> <br>
> Tasks: 89 total, 3 running, 86 sleeping,
0 stopped, 0 zombie<br>
> Cpu(s): 26.0% us, 1.3% sy, 0.0% ni, 72.6% id, 0.0%
wa, 0.1% hi, <br>
> 0.0% si<br>
> Mem: 4041580k total, 1373844k used, 2667736k free,
60200k buffers<br>
> Swap: 4192956k total, 0k used, 4192956k
free, 1137348k cached<br>
> <br>
> PID USER PR NI VIRT RES
SHR S %CPU %MEM TIME+ COMMAND<br>
> 28617 nagios 25 0 29756 10m 1056 R
96 0.3 17:12.48 nagios<br>
> 1 root 16 0 4752 552
460 S 0 0.0 0:02.75 init<br>
> 2 root RT 0
0 0 0 S 0 0.0 0:00.04
migration/0<br>
> <br>
> <br>
> Thomas<br>
> <br>
> <br>
> P *Please consider the environmental impact of needlessly printing
this <br>
> e-mail.*<br>
> <br>
<br>
<br>
Ethan Galstad,<br>
Nagios Developer<br>
---<br>
Email: nagios@nagios.org<br>
Website: http://www.nagios.org<br>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2005.<br>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/<br>
_______________________________________________<br>
Nagios-devel mailing list<br>
Nagios-devel@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-devel</font></tt><font size=3><br>
<b><br>
RSC Commercial Services OHG</b> Wanheimer Straße 70, D-40468 Düsseldorf
Registergericht: Düsseldorf, HRA 12655 </font><tt><font size=2>-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2005.<br>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________<br>
Nagios-devel mailing list<br>
Nagios-devel@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-devel<br>
</font></tt>
<br><br/><hr/><b>RSC Commercial Services OHG</b><br/>
Wanheimer Straße 70, D-40468 Düsseldorf<br/>
Registergericht: Düsseldorf, HRA 12655