<font size=2 face="sans-serif">Hello,</font>
<br>
<br>
<br><font size=2 face="sans-serif">Here a part of the solution:</font>
<br>
<br><font size=2 face="sans-serif">Communication Issue</font>
<br><font size=2 face="sans-serif">====================</font>
<br><font size=2 face="sans-serif">Observing le connections between agents
and proxy using netstat, I see a lot of CLOSE_WAIT on the side of the proxy
and some SYN_SENT on the side of agents.</font>
<br><font size=2 face="sans-serif">=> The xymonproxy program doesn't
close its connections, then the system reach its limit of nbr of active
connections and refuse the new ones.</font>
<br>
<br><font size=2 face="sans-serif">Modifying the creation of the socket
in the C program, we were successfull  in making the connections correctly
handled:</font>
<br>
<br><font size=2 face="sans-serif"><i>230d229</i></font>
<br><font size=2 face="sans-serif"><i><        
struct linger so_linger;</i></font>
<br><font size=2 face="sans-serif"><i>715,717d713</i></font>
<br><font size=2 face="sans-serif"><i><        
                     
        so_linger.l_onoff = 0;</i></font>
<br><font size=2 face="sans-serif"><i><        
                     
so_linger.l_linger = 10;</i></font>
<br><font size=2 face="sans-serif"><i><        
                     
setsockopt(cwalk->ssocket, SOL_SOCKET, SO_LINGER, &so_linger, sizeof(so_linger));</i></font>
<br>
<br>
<br><font size=2 face="sans-serif">Select Issue</font>
<br><font size=2 face="sans-serif">====================</font>
<br><font size=2 face="sans-serif">In the C program, the line <i>n = select(maxfd+1,
&fdread, &fdwrite, NULL, &selecttmo);</i> is in error because
the n generated is equaled to -1 .</font>
<br>
<br><font size=2 face="sans-serif">We didn't found yet why and how the
solve it. Any idea ?</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Cordialement, Regards,Mit freundlichen
Grüßen,<br>
<br>
Gautier BEGIN<br>
<br>
Next Absences:     - From 3th Apr to 21th Apr<br>
<br>
<br>
System Tools Team Lead<br>
CACEIS and APERAM accounts<br>
CSC Computer Sciences Luxembourg S.A.<br>
12D Impasse Drosbach<br>
L-1882 Luxembourg<br>
<br>
Global Outsourcing Service | p:+352 24 834 276 | m:+352 621 229 172 | gbegin@csc.com
| </font><a href=www.csc.com><font size=2 face="sans-serif">www.csc.com</font></a><font size=2 face="sans-serif"><br>
<br>
<br>
CSC • This is a PRIVATE message. If you are not the intended recipient,
please delete without copying and kindly advise us by e-mail of the mistake
in delivery.  NOTE: Regardless of content, this e-mail shall not operate
to bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use
of e-mail for such purpose<br>
 • <br>
CSC Computer Sciences SAS • Registered Office: Immeuble Le Balzac, 10
Place des Vosges, 92072 Paris La Défense Cedex, France • Registered in
France: RCS Nanterre B 315 268 664</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Gautier Begin/LUX/CSC</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">xymon@xymon.com, "Xymon"
<xymon-bounces@xymon.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">02/19/2014 10:44 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Xymon]
XYMON Proxy Issue</font>
<br>
<hr noshade>
<br>
<br><font size=2 face="sans-serif">Any news ?</font>
<br>
<br><font size=2 face="sans-serif">Cordialement, Regards,Mit freundlichen
Grüßen,<br>
<br>
Gautier BEGIN<br>
<br>
</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Gautier Begin/LUX/CSC@CSC</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">xymon@xymon.com, "Xymon"
<xymon-bounces@xymon.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">02/17/2014 06:56 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Xymon]
XYMON Proxy Issue</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">"Xymon"
<xymon-bounces@xymon.com></font>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 face="sans-serif">Hi,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I made a truss on the xymonproxy process and get such errors (ECONNABORTED/EINPROGRESS)</font><font size=3>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7424  0.0002 fcntl(6, F_SETFL,
FNONBLOCK)                  
 = 0</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.7427  0.0003 connect(6, 0xFFBFD838,
16, SOV_DEFAULT)         = 0</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.7429  0.0002 shutdown(4, SHUT_RDWR,
SOV_DEFAULT)             = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7430  0.0001 close(4)  
                     
               = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7432  0.0002 close(5)  
                     
               = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7433  0.0001 pollsys(0xFFBFD320,
4, 0xFFBFD3D8, 0x00000000)  = 4</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.7435  0.0002 read(9, "
c o n f i g   b b w i n".., 8185)     = 29</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7437  0.0002 read(7, 0x000544E3,
9124)                    
  = 0</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.7439  0.0002 getsockopt(6,
SOL_SOCKET, SO_ERROR, 0xFFBFD4B8, 0xFFBFD4B4, SOV_DEFAULT) = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7440  0.0001 write(6, "
d a t a   S N F N L X 2".., 402)     = 402</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.7465  0.0025 accept(3, 0x0004E7A0,
0xFFBFD4B0, SOV_DEFAULT)  Err#130 ECONNABORTED</font><font size=3>
</font><font size=2 face="sans-serif"><br>
...</font><font size=3> </font><font size=2 face="sans-serif"><br>
6881/1:        33.2151  0.0002 accept(3, 0x0004E810,
0xFFBFD4B0, SOV_DEFAULT)  = 8</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.2152  0.0001 fcntl(8, F_SETFL,
FNONBLOCK)                  
 = 0</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.2153  0.0001 time()  
                     
                 = 1392657199</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2155  0.0002 shutdown(4, SHUT_RDWR,
SOV_DEFAULT)             = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2156  0.0001 close(4)  
                     
               = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2158  0.0002 shutdown(7, SHUT_WR,
SOV_DEFAULT)               = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2160  0.0002 close(5)  
                     
               = 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2161  0.0001 time()  
                     
                 = 1392657199</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2162  0.0001 so_socket(PF_INET,
SOCK_STREAM, IPPROTO_IP, "", SOV_DEFAULT) = 4</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2163  0.0001 fcntl(4, F_SETFL,
FNONBLOCK)                  
 = 0</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.2166  0.0003 connect(4, 0xFFBFD838,
16, SOV_DEFAULT)         Err#150 EINPROGRESS</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2167  0.0001 pollsys(0xFFBFD328,
5, 0xFFBFD3D8, 0x00000000)  = 3</font><font size=3> </font><font size=2 face="sans-serif"><br>
16881/1:        33.2168  0.0001 read(8, "
c o n f i g   b b w i n".., 8185)     = 31</font><font size=3>
</font><font size=2 face="sans-serif"><br>
16881/1:        33.2171  0.0003 read(6, "
s t a t u s   C A C X N".., 49145)    = 9630</font><font size=3>
</font><font size=2 face="sans-serif"><br>
..</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Cordialement, Regards,Mit freundlichen Grüßen,<br>
<br>
Gautier BEGIN<br>
<br>
Next Absences:    - From 20th Feb to 21th Feb<br>
                    
            - From 3th Apr to 21th Apr<br>
<br>
System Tools Team Lead<br>
CACEIS and APERAM accounts<br>
CSC Computer Sciences Luxembourg S.A.<br>
12D Impasse Drosbach<br>
L-1882 Luxembourg<br>
<br>
Global Outsourcing Service | p:+352 24 834 276 | m:+352 621 229 172 | gbegin@csc.com
| </font><a href=www.csc.com><font size=2 color=blue face="sans-serif"><u>www.csc.com</u></font></a><font size=2 face="sans-serif"><br>
<br>
<br>
CSC • This is a PRIVATE message. If you are not the intended recipient,
please delete without copying and kindly advise us by e-mail of the mistake
in delivery.  NOTE: Regardless of content, this e-mail shall not operate
to bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use
of e-mail for such purpose<br>
• <br>
CSC Computer Sciences SAS • Registered Office: Immeuble Le Balzac, 10
Place des Vosges, 92072 Paris La Défense Cedex, France • Registered in
France: RCS Nanterre B 315 268 664</font><font size=3> <br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From:        </font><font size=1 face="sans-serif">Gautier
Begin/LUX/CSC@CSC</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
To:        </font><font size=1 face="sans-serif">xymon@xymon.com</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date:        </font><font size=1 face="sans-serif">02/17/2014
04:55 PM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject:        </font><font size=1 face="sans-serif">[Xymon]
XYMON Proxy Issue</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Sent by:        </font><font size=1 face="sans-serif">"Xymon"
<xymon-bounces@xymon.com></font><font size=3> <br>
</font>
<hr noshade><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
Hello</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
<br>
I'm using XYMON 4.3.12 under Solaris 10.5</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Since I put a proxy between my XYMON server and ~1000 agents, I have such
pbl:</font><font size=3> </font><font size=2 face="sans-serif"><br>
- Many test are in pruple state, especially BBWin agents.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
- Even if the test is green, nothing is displayed in RRD graph.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
- I find timeout messages in logs (agents and server and xymonnet on the
proxy): <br>
       2014-02-17 15:58:32 ->  Recipient '10.195.243.205',
timeout 15</font><font size=3> </font><font size=2 face="sans-serif"><br>
       2014-02-17 15:58:32 ->  1st line: 'combo'</font><font size=3>
</font><font size=2 face="sans-serif"><br>
       2014-02-17 16:02:53 Whoops ! Failed to send message
(timeout)</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
- The xymonproxy log always complaining with a  message that I don't
understand:</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
       2014-02-17 12:59:30 xymonproxy version 4.3.12 starting</font><font size=3>
</font><font size=2 face="sans-serif"><br>
       2014-02-17 12:59:30 Listening on 0.0.0.0:1984</font><font size=3>
</font><font size=2 face="sans-serif"><br>
       2014-02-17 12:59:30 Sending to Xymon server(s) 10.195.241.64:1984</font><font size=3>
</font><font size=2 face="sans-serif"><br>
       2014-02-17 12:59:30 select() failed: Invalid argument</font><font size=3>
</font><font size=2 face="sans-serif"><br>
       2014-02-17 12:59:30 select() failed: Invalid argument</font><font size=3>
</font><font size=2 face="sans-serif"><br>
       2014-02-17 12:59:30 select() failed: Invalid argument</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
- Many connections in TIME_WAIT from the proxy to the server, sometime
the status is SYN_SENT</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
- Tests coming from a second xymonproxy with fewer BBWin agents ( ~70)
 are working fine.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
<br>
I tried to play with timeout parameters on servers with no succès.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Any idea ?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
<br>
Cordialement, Regards,Mit freundlichen Grüßen,<br>
<br>
Gautier BEGIN</font><tt><font size=2><br>
_______________________________________________<br>
Xymon mailing list<br>
Xymon@xymon.com</font></tt><font size=3 color=blue><u><br>
</u></font><a href=http://lists.xymon.com/mailman/listinfo/xymon><tt><font size=2 color=blue><u>http://lists.xymon.com/mailman/listinfo/xymon</u></font></tt></a><font size=3><br>
</font><tt><font size=2>_______________________________________________<br>
Xymon mailing list<br>
Xymon@xymon.com<br>
</font></tt><a href=http://lists.xymon.com/mailman/listinfo/xymon><tt><font size=2>http://lists.xymon.com/mailman/listinfo/xymon</font></tt></a><tt><font size=2><br>
</font></tt>
<br>