<br><font size=2><tt>nagios-users-bounces@lists.sourceforge.net wrote on
12/10/2006 21:27:59:<br>
<br>
> I'm running NRPE 2.5.1 on a number of machines and occasionally I'll<br>
> see the processes get stuck just spinning their wheels.  It ends<br>
> utilizing the CPU heavily and needs to be killed.  I haven't
been able<br>
> to track down what is causing this, so I wanted to ask if anyone on<br>
> this list has seen this behavior before.  Also, I've seen that
NRPE<br>
> 2.5.2 fixes "a number of bugs" but do not know if it addresses
this<br>
> specifically.  I've included output from top and truss below.<br>
> <br>
> top:<br>
>   PID USERNAME THR PRI NICE  SIZE   RES STATE  
 TIME    CPU COMMAND<br>
>  20950 nagios     1  20    0 3792K 1688K
run     78.6H 49.58% nrpe<br>
>  20675 nagios     1  20    0 3792K 1720K
run     79.0H 48.62% nrpe<br>
> <br>
> truss:<br>
> getpid()                  
                     =
20675 [1]<br>
> time()                  
                     
 = 1160684094<br>
> getpid()                  
                     =
20675 [1]<br>
> read(8, 0x00050FF8, 5)              
           Err#11 EAGAIN<br>
> getpid()                  
                     =
20675 [1]<br>
> time()                  
                     
 = 1160684094<br>
> getpid()                  
                     =
20675 [1]<br>
> read(8, 0x00050FF8, 5)              
           Err#11 EAGAIN<br>
> getpid()                  
                     =
20675 [1]<br>
> time()                  
                     
 = 1160684094<br>
> getpid()                  
                     =
20675 [1]<br>
> read(8, 0x00050FF8, 5)              
           Err#11 EAGAIN<br>
> getpid()                  
                     =
20675 [1]<br>
> time()                  
                     
 = 1160684094<br>
> getpid()                  
                     =
20675 [1]<br>
> read(8, 0x00050FF8, 5)              
           Err#11 EAGAIN<br>
> getpid()                  
                     =
20675 [1]<br>
> time()                  
                     
 = 1160684094<br>
> getpid()                  
                     =
20675 [1]<br>
> read(8, 0x00050FF8, 5)              
           Err#11 EAGAIN<br>
> getpid()                  
                     =
20675 [1]<br>
</tt></font>
<br><font size=2><tt>Hi,</tt></font>
<br><font size=2><tt>   I don't have any firm answers for you,
but I have seen similar wierdness in NRPE on Solaris 8 and 10 when it's
compiled with lots of optimisation flags:  -O2 -funroll-loops  etc..</tt></font>
<br>
<br><font size=2><tt>My only recommendation would be to recompile the same
source without running configure again (make clean; vi Makefile; make),
but remove all optimisation flags and install just the new nrpe binary
on one of the affected servers..</tt></font>
<br>
<br><font size=2><tt>If you're still having problems, please go back through
the truss and tell me where the open() call reads the file/socket which
returns filehandle 8 and paste in some more info</tt></font>
<br>
<br><font size=2><tt>Other things to try: If you're compiling 64bit, try
32bit.. If you have an older version of OpenSSL than 0.9.8b, try updating..
If you have an older GCC 3.x than 3.3 or 3.4 then try updating..</tt></font>
<br>
<br><font size=2><tt>Cheers</tt></font>
<br><font size=2><tt>rob/mossko</tt></font>
<br><pre>

This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified. 

**********************************************************************************************

BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised 
by CECEI & AMF and is regulated by the Financial Services 
Authority for the conduct of its investment business in 
the United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority

</pre>