<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1">
</HEAD>
<BODY>
<BR>
<BR>
I found out that our firewalls have session timeouts, thus the jabber connections were timing out.<BR>
(This also causes the strange behavior of a clients 'netstat -an |grep 5222' command saying "ESTABLISHED" even though there is no connection on the spacewalk server.)<BR>
<BR>
<BR>
After doing the following, I am having no issues with timeouts...
<PRE>
----------------------
sed -i 's/<interval>.*/<interval>120<\/interval>/' /etc/jabberd/*.xml*
sed -i 's/<keepalive>.*/<keepalive>120<\/keepalive>/' /etc/jabberd/*.xml*
sed -i 's/<idle>.*/<idle>600<\/idle>/' /etc/jabberd/*.xml* |grep '<idle>'

rhn-satellite restart
Restarted osad on all clients (This step may not be necessary.)
----------------------
</PRE>
<BR>
The above settings are all explained in the .xml configs under /etc/jabberd/ .<BR>
Essentially, it will send a "whitespace" character as a keepalive.   (Every 2 minutes in my case)<BR>
I verified this in tcpdump and jabber does only send 1 small packet every 2 minutes.<BR>
<BR>
Of course depending on your firewall timeout configs, you may need to tweak this a bit.<BR>
<BR>
<BR>
<BR>
Hope this helps someone else.<BR>
-Josh<BR>
<BR>
<BR>
<BR>
On Fri, 2009-11-27 at 14:52 -0500, Mullis, Josh (CCI-Atlanta) wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">Thanks guys.</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">Appreciate the info. </FONT></FONT><BR>
    <BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">I think this issue has to do with the clients being across multiple routers and possible network blips.</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">I have no issues with clients on the same subnet.</FONT></FONT><BR>
    <BR>
    <BR>
    <BR>
    <BR>
    
<HR>
<BR>
    <BR>
    <B><FONT SIZE="2">From</FONT></B><FONT SIZE="2">: spacewalk-list-bounces@redhat.com </FONT><BR>
    <B><FONT SIZE="2">To</FONT></B><FONT SIZE="2">: spacewalk-list@redhat.com </FONT><BR>
    <B><FONT SIZE="2">Sent</FONT></B><FONT SIZE="2">: Thu Nov 26 08:13:13 2009</FONT><BR>
    <B><FONT SIZE="2">Subject</FONT></B><FONT SIZE="2">: Re: [Spacewalk-list] question about jabber server and osad clients </FONT><BR>
    <BR>
    <BR>
    I don't know if it's a know bug, but I do know that this behavior was seen in both RHN4.x and RHN5.x .<BR>
    <BR>
    There are 2 ways you can deal with this:<BR>
    <BR>
     - cron job that restarts the osad daemon at X interval.<BR>
     - cron job that checks if the osad daemon is connected to it's server and restarts it when not....<BR>
    <BR>
    I don't have the script for the second solution, but I remember it to be quiet easy (40 lines or so). One thing to know is that you need to check if the osad daemon is enabled or not, otherwise you might end up in starting a lot of osad daemons where you don't want them.<BR>
    <BR>
    regards<BR>
    <BR>
    Jouk<BR>
    <BR>
    On Thu, Nov 26, 2009 at 1:57 PM, Colin Coe <<A HREF="mailto:colin.coe@gmail.com">colin.coe@gmail.com</A>> wrote:<BR>
    <BLOCKQUOTE>
        I saw this behavior in Satellite v5.1 at a previous client site...  My<BR>
        workaround was restarting osad on the clients daily.<BR>
        <BR>
        CC <BR>
        <BR>
        <BR>
        On Thu, Nov 26, 2009 at 8:49 PM, Michiel van Es <<A HREF="mailto:michiele@info.nl">michiele@info.nl</A>> wrote:<BR>
        > Anyone?<BR>
        > Is this a known bug or others then Josh and myself are experiencing?<BR>
        > Is there a setting we should change in the /etc/sysconfig/rhn/osad file?<BR>
        ><BR>
        > Kind regards,<BR>
        ><BR>
        > Michiel<BR>
        ><BR>
        ><BR>
        > -------- Original Message --------<BR>
        > Subject: Re: [Spacewalk-list] question about jabber server and osad clients<BR>
        > From: Michiel van Es <<A HREF="mailto:michiele@info.nl">michiele@info.nl</A>><BR>
        > To: <A HREF="mailto:josh.mullis@cox.com">josh.mullis@cox.com</A> <<A HREF="mailto:josh.mullis@cox.com">josh.mullis@cox.com</A>>, <A HREF="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</A><BR>
        > <<A HREF="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</A>><BR>
        > Date: 11/25/2009 03:49 PM<BR>
        ><BR>
        >><BR>
        >> Same here... especially the netstat -an | grep 5222 on the client showing<BR>
        >> the ESTABLISHED is strange..<BR>
        >><BR>
        >><BR>
        >> -------- Original Message --------<BR>
        >> Subject: [Spacewalk-list] question about jabber server and osad clients<BR>
        >> From: Mullis, Josh (CCI - Atlanta) <<A HREF="mailto:josh.mullis@cox.com">josh.mullis@cox.com</A>><BR>
        >> To: <A HREF="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</A> <<A HREF="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</A>><BR>
        >> Date: 11/25/2009 03:46 PM<BR>
        >><BR>
        >>> To build on this...<BR>
        >>><BR>
        >>> I am having the same issue.<BR>
        >>> More on the side of the client not responding to actions from the<BR>
        >>> spacewalk server after a random period of time.<BR>
        >>><BR>
        >>> (NTP is in sync on both)<BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>> Set debug to 10 on client yesterday and get nothing in the logs when it<BR>
        >>> stops responding.<BR>
        >>> (Nothing in "osa-dispatcher" log on server either)<BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>> Also, I noticed that on the client side that netstat shows an<BR>
        >>> "ESTABLISHED" connection to the spacewalk server.<BR>
        >>><BR>
        >>> But netstat on the spacewalk server does not show a connection from the<BR>
        >>> client.<BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>><BR>
        >>> On Wed, 2009-11-25 at 08:17 -0500, Michiel van Es wrote:<BR>
        >>>><BR>
        >>>> Hi,<BR>
        >>>><BR>
        >>>> We seem to habe a small problem with our Jabber server on spacewalk and<BR>
        >>>> the osad client on the spacewalk nodes.<BR>
        >>>><BR>
        >>>> Before we reboot the spacewalk server we see a 104 connections connected<BR>
        >>>> with local port 5222 (jabber).<BR>
        >>>> Whenever we reboot the Spacewalk server the connections are limited to 3<BR>
        >>>> (local connections).<BR>
        >>>> It seems that the client connections aren't reconnecting if the<BR>
        >>>> connection is lost.<BR>
        >>>><BR>
        >>>> Is there a setting in /etc/sysconfig/osad or such on the client side<BR>
        >>>> that we have to alter to force clients/nodes to reconnect if the<BR>
        >>>> spacewalk server is down?<BR>
        >>>><BR>
        >>>> Kind regards,<BR>
        >>>><BR>
        >>>> Michiel<BR>
        >>>><BR>
        >>>> _______________________________________________<BR>
        >>>> Spacewalk-list mailing list<BR>
        >>>> <A HREF="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</A> <mailto:<A HREF="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</A>><BR>
        >>>> <A HREF="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</A><BR>
        >><BR>
        >> _______________________________________________<BR>
        >> Spacewalk-list mailing list<BR>
        >> <A HREF="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</A><BR>
        >> <A HREF="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</A><BR>
        ><BR>
        > _______________________________________________<BR>
        > Spacewalk-list mailing list<BR>
        > <A HREF="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</A><BR>
        > <A HREF="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</A><BR>
        ><BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <FONT COLOR="#888888">--</FONT><BR>
        <FONT COLOR="#888888">RHCE#805007969328369</FONT> <BR>
        <BR>
        <BR>
        _______________________________________________<BR>
        Spacewalk-list mailing list<BR>
        <A HREF="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</A><BR>
        <A HREF="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</A><BR>
        <BR>
    </BLOCKQUOTE>
    <BR>
</BLOCKQUOTE>
</BODY>
</HTML>