<font size=2 face="sans-serif">Hi!</font>
<br>
<br><font size=2 face="sans-serif">Evenso we have by far not 6000+ machines
in Spacewalk, only a few hundred, but we had also trouble with osad, which
went away, as we switched the jabberd to SQLite.</font>
<br>
<br><font size=2 face="sans-serif">cheers</font>
<br><font size=2 face="sans-serif">Matthias</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:      
 </font><font size=1 face="sans-serif">Matt Moldvan <matt@moldvan.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:      
 </font><font size=1 face="sans-serif">spacewalk-list@redhat.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:      
 </font><font size=1 face="sans-serif">17.01.2017 15:14</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">Re: [Spacewalk-list]
Alternative ways without OSAD</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von:    
   </font><font size=1 face="sans-serif">spacewalk-list-bounces@redhat.com</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Depends on the volume of your systems... I tried this
as well, but rhn_check initially makes HTTPS calls and with 6,000+ systems
it overwhelmed the Apache instances and caused deadlocks in the Postgres
databases (even with Apache and pgsql variables increased).</font>
<br>
<br><font size=3>I ended up switching the jabberd database to SQLite and
it made a lot of difference over the default Berkeley DB.</font>
<br>
<br><font size=3>For systems going offline, we have a few lines in our
Puppet configs to restart OSAD on stale connections on a daily basis. 
To debug your own connection issues, I recommend increasing the debug value
for OSAD in /etc/sysconfig/rhn/osad.conf (debug = 9) then restart OSAD,
to see if you can narrow down what might be causing the systems to go offline. 
If it's not at the clients you might be able to find something at the server,
somewhere in /var/log/rhn or so.</font>
<br>
<br><font size=3>        $date = strftime("%F")</font>
<br><font size=3>        $datetime = strftime("%F
@ %T")</font>
<br><font size=3>        exec { "restart_osad_on_conn_error":</font>
<br><font size=3>               
command => "/sbin/service osad restart",</font>
<br><font size=3>               
onlyif => "/bin/grep -q '^${date}.*Unable to connect to jabber
servers' /var/log/osad && sed -i 's/Unable to connect to jabber
servers/fixed on ${datetime} by spacewalk::c_osad.pp/g' /var/log/osad",</font>
<br><font size=3>        }</font>
<br><font size=3>        exec { "restart_osad_on_stale_conn":</font>
<br><font size=3>               
command => "/sbin/service osad restart",</font>
<br><font size=3>               
onlyif => "/bin/netstat -an | /bin/grep -q ':5222.*CLOSE_WAIT'",</font>
<br><font size=3>        }</font>
<br>
<br>
<br><font size=3>On Tue, Jan 17, 2017 at 5:33 AM Zeal Vora <</font><a href=mailto:zeal@freecharge.com><font size=3 color=blue><u>zeal@freecharge.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=3>Hi</font>
<br>
<br><font size=3>Thanks for the inputs everyone.</font>
<br>
<br><font size=3>Basically we need the rpm's to be installed in real time
( around 2-3 minutes delay is fine ) from SpaceWalk. Since OSAD was giving
bit of trouble, we thought rhn_check was ideal solution. </font>
<br>
<br><font size=3>As we cannot configure rhn_check in the configuration
to check every few minutes, I thought to put a cron for 2 minutes which
does rhn_check but it didn't seem to work properly. Can this be an ideal
way ?</font>
<br>
<br>
<br>
<br><font size=3>On Thu, Jan 12, 2017 at 5:17 PM, Lichtinger, Bernhard
<</font><a href=mailto:Bernhard.Lichtinger@lrz.de target=_blank><font size=3 color=blue><u>Bernhard.Lichtinger@lrz.de</u></font></a><font size=3>>
wrote:</font>
<br><font size=3><br>
><br>
>> Due to some reason, many of the servers have issues related to
OSAD going offline time and again so sometimes we just go for a way of
running rhn_check manually.<br>
>><br>
>> So I was wondering, can we have rhn_check in all the servers in
CRON ? Can it work in this situation ? I had bit trouble with putting it
in cron so wanted to verify.<br>
><br>
<br>
You don't need to run rhn_check via cron: rhnsd is already checking in
to spacewalk server (per default) every 4 hours.<br>
So if you don't need to trigger actions in "real time" then just
disable osad on the clients.<br>
_______________________________________________<br>
Spacewalk-list mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Spacewalk-list@redhat.com" target=_blank><font size=3 color=blue><u>Spacewalk-list@redhat.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target=_blank><font size=3 color=blue><u>https://www.redhat.com/mailman/listinfo/spacewalk-list</u></font></a>
<br>
<br><font size=3>_______________________________________________<br>
Spacewalk-list mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Spacewalk-list@redhat.com" target=_blank><font size=3 color=blue><u>Spacewalk-list@redhat.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target=_blank><font size=3 color=blue><u>https://www.redhat.com/mailman/listinfo/spacewalk-list</u></font></a><tt><font size=2>_______________________________________________<br>
Spacewalk-list mailing list<br>
Spacewalk-list@redhat.com<br>
</font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a>
<br><br><font size="2" face="Arial"> </font><br>
<br>
<font size="2" face="Arial">Persönlich haftende Gesellschafter: Harald Illy, Michael Klaus, Friedrich von Metzler, Emmerich Müller, Dr. Johannes J. Reich, Gerhard Wiesheu<br>
Vorsitzender des Aufsichtsrates: Dr. Christoph Schücking<br>
Sitz der Gesellschaft: Frankfurt am Main, Handelsregisternummer: HRB 27 515</font><br>
<br>
<font size="2" face="Arial"><font size="2" face="Arial">Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfänger sein, so bitten wir Sie höflich, dies unverzüglich dem Absender mitzuteilen und die Nachricht zu löschen. Es ist unzulässig, die Nachricht unbefugt weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder Vollständigkeit der in dieser Nachricht enthaltenen Informationen garantieren oder zusichern können, sind die vorstehenden Ausführungen rechtlich nicht bindend. Eine Haftung hierfür wird ausgeschlossen.</font></font><br>
<font size="2" face="Arial"><font size="2" face="Arial">This message is confidential. If you are not the intended recipient, we kindly ask you to inform the sender and delete the information. Any unauthorised dissemination or copying hereof is prohibited. As we cannot guarantee or assure the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. Accordingly we cannot accept any liability for their contents.</font></font>