<div dir="ltr">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).<div><br></div><div>I ended up switching the jabberd database to SQLite and it made a lot of difference over the default Berkeley DB.</div><div><br></div><div>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.</div><div><br></div><div><div>        $date = strftime("%F")</div><div>        $datetime = strftime("%F @ %T")</div><div>        exec { "restart_osad_on_conn_error":</div><div>                command => "/sbin/service osad restart",</div><div>                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",</div><div>        }</div><div>        exec { "restart_osad_on_stale_conn":</div><div>                command => "/sbin/service osad restart",</div><div>                onlyif => "/bin/netstat -an | /bin/grep -q ':5222.*CLOSE_WAIT'",</div><div>        }</div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 17, 2017 at 5:33 AM Zeal Vora <<a href="mailto:zeal@freecharge.com">zeal@freecharge.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks for the inputs everyone.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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. </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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 ?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Thu, Jan 12, 2017 at 5:17 PM, Lichtinger, Bernhard <span dir="ltr" class="gmail_msg"><<a href="mailto:Bernhard.Lichtinger@lrz.de" class="gmail_msg" target="_blank">Bernhard.Lichtinger@lrz.de</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="gmail_msg"><br class="gmail_msg">
><br class="gmail_msg">
>> 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 class="gmail_msg">
>><br class="gmail_msg">
>> 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 class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
</span>You don't need to run rhn_check via cron: rhnsd is already checking in to spacewalk server (per default) every 4 hours.<br class="gmail_msg">
So if you don't need to trigger actions in "real time" then just disable osad on the clients.<br class="gmail_msg">_______________________________________________<br class="gmail_msg">
Spacewalk-list mailing list<br class="gmail_msg">
<a href="mailto:Spacewalk-list@redhat.com" class="gmail_msg" target="_blank">Spacewalk-list@redhat.com</a><br class="gmail_msg">
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" class="gmail_msg" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br class="gmail_msg"></blockquote></div><br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
Spacewalk-list mailing list<br class="gmail_msg">
<a href="mailto:Spacewalk-list@redhat.com" class="gmail_msg" target="_blank">Spacewalk-list@redhat.com</a><br class="gmail_msg">
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" class="gmail_msg" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></blockquote></div>