<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Linux Systems and Network Administration</title>
	<atom:link href="http://rhcelinuxguide.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rhcelinuxguide.wordpress.com</link>
	<description>Everything for the newbie admins.</description>
	<lastBuildDate>Mon, 13 May 2013 16:02:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rhcelinuxguide.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Linux Systems and Network Administration</title>
		<link>http://rhcelinuxguide.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rhcelinuxguide.wordpress.com/osd.xml" title="Linux Systems and Network Administration" />
	<atom:link rel='hub' href='http://rhcelinuxguide.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Missing Dependency: perl(URI)</title>
		<link>http://rhcelinuxguide.wordpress.com/2010/11/10/missing-dependency-perluri/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2010/11/10/missing-dependency-perluri/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 01:48:41 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Linux General]]></category>
		<category><![CDATA[Linux Installation]]></category>
		<category><![CDATA[Linux:- Tips & Tricks]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/?p=168</guid>
		<description><![CDATA[Solution with an example below ########################################### -bash-3.2# yum install subversion Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: centos.mirror.netriplex.com * base: mirror.sanctuaryhost.com * extras: mirror.steadfast.net * updates: mirrors.serveraxis.net addons                                                                                                                                           &#124;  951 B     00:00 base                                                                                                                                             &#124; 2.1 kB     00:00 extras                                                                                                                                           &#124; 2.1 kB     00:00 updates                                                                                                                                          &#124; 1.9 kB     00:00 Excluding Packages in global [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=168&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Solution with an example below<br />
###########################################</p>
<p>-bash-3.2# yum install subversion<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
* addons: centos.mirror.netriplex.com<br />
* base: mirror.sanctuaryhost.com<br />
* extras: mirror.steadfast.net<br />
* updates: mirrors.serveraxis.net<br />
addons                                                                                                                                           |  951 B     00:00<br />
base                                                                                                                                             | 2.1 kB     00:00<br />
extras                                                                                                                                           | 2.1 kB     00:00<br />
updates                                                                                                                                          | 1.9 kB     00:00<br />
Excluding Packages in global exclude list<br />
Finished<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated<br />
&#8211;&gt; Processing Dependency: perl(URI) &gt;= 1.17 for package: subversion<br />
&#8211;&gt; Processing Dependency: neon &gt;= 0.25.5-6.el5 for package: subversion<br />
&#8211;&gt; Processing Dependency: libneon.so.25 for package: subversion<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated<br />
&#8212;&gt; Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated<br />
&#8211;&gt; Processing Dependency: perl(URI) &gt;= 1.17 for package: subversion<br />
&#8211;&gt; Finished Dependency Resolution<br />
subversion-1.4.2-4.el5_3.1.i386 from base has depsolving problems<br />
&#8211;&gt; Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base)<br />
Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base)<br />
You could try using &#8211;skip-broken to work around the problem<br />
You could try running: package-cleanup &#8211;problems<br />
package-cleanup &#8211;dupes<br />
rpm -Va &#8211;nofiles &#8211;nodigest<br />
The program package-cleanup is found in the yum-utils package.</p>
<p><strong><span style="color:#ff0000;">Solution</span></strong><br />
<span style="color:#0000ff;">#########################</span><br />
<span style="color:#ff0000;">Get the latest perl-URI rpm from <a href="http://packages.sw.be/perl-URI/" rel="nofollow">http://packages.sw.be/perl-URI/</a> and install it:</span></p>
<p><span style="color:#ff0000;"><br />
</span></p>
<p>-bash-3.2# wget <a href="http://packages.sw.be/perl-URI/perl-URI-1.17-1.el2.rf.noarch.rpm" rel="nofollow">http://packages.sw.be/perl-URI/perl-URI-1.17-1.el2.rf.noarch.rpm</a><br />
&#8211;2010-11-09 19:43:20&#8211;  <a href="http://packages.sw.be/perl-URI/perl-URI-1.17-1.el2.rf.noarch.rpm" rel="nofollow">http://packages.sw.be/perl-URI/perl-URI-1.17-1.el2.rf.noarch.rpm</a><br />
Resolving packages.sw.be&#8230; 85.13.226.40<br />
Connecting to packages.sw.be|85.13.226.40|:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 302 Found<br />
Location: <a href="http://rpmforge.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/perl-URI-1.17-1.el2.rf.noarch.rpm" rel="nofollow">http://rpmforge.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/perl-URI-1.17-1.el2.rf.noarch.rpm</a> [following]<br />
&#8211;2010-11-09 19:43:20&#8211;  <a href="http://rpmforge.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/perl-URI-1.17-1.el2.rf.noarch.rpm" rel="nofollow">http://rpmforge.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/perl-URI-1.17-1.el2.rf.noarch.rpm</a><br />
Resolving rpmforge.sw.be&#8230; 85.13.226.40<br />
Reusing existing connection to packages.sw.be:80.<br />
HTTP request sent, awaiting response&#8230; 200 OK<br />
Length: 94140 (92K) [application/x-rpm]<br />
Saving to: `perl-URI-1.17-1.el2.rf.noarch.rpm&#8217;</p>
<p>100%[==============================================================================================================================&gt;] 94,140       193K/s   in 0.5s</p>
<p>2010-11-09 19:43:21 (193 KB/s) &#8211; `perl-URI-1.17-1.el2.rf.noarch.rpm&#8217; saved [94140/94140]</p>
<p>-bash-3.2# rpm -ivh perl-URI-1.17-1.el2.rf.noarch.rpm<br />
Preparing&#8230;                ########################################### [100%]<br />
1:perl-URI               ########################################### [100%]</p>
<p>-bash-3.2# yum install subversion<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
* addons: centos.mirror.netriplex.com<br />
* base: mirror.sanctuaryhost.com<br />
* extras: mirror.steadfast.net<br />
* updates: mirrors.serveraxis.net<br />
addons                                                                                                                                           |  951 B     00:00<br />
base                                                                                                                                             | 2.1 kB     00:00<br />
extras                                                                                                                                           | 2.1 kB     00:00<br />
updates                                                                                                                                          | 1.9 kB     00:00<br />
Excluding Packages in global exclude list<br />
Finished<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated<br />
&#8211;&gt; Processing Dependency: neon &gt;= 0.25.5-6.el5 for package: subversion<br />
&#8211;&gt; Processing Dependency: libneon.so.25 for package: subversion<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>========================================================================================================================================================================<br />
Package                                  Arch                               Version                                           Repository                          Size<br />
========================================================================================================================================================================<br />
Installing:<br />
subversion                               i386                               1.4.2-4.el5_3.1                                   base                               2.3 M<br />
Installing for dependencies:<br />
neon                                     i386                               0.25.5-10.el5_4.1                                 base                               101 k</p>
<p>Transaction Summary<br />
========================================================================================================================================================================<br />
Install       2 Package(s)<br />
Upgrade       0 Package(s)</p>
<p>Total download size: 2.4 M<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
(1/2): neon-0.25.5-10.el5_4.1.i386.rpm                                                                                                           | 101 kB     00:00<br />
(2/2): subversion-1.4.2-4.el5_3.1.i386.rpm                                                                                                       | 2.3 MB     00:01<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Total                                                                                                                                   1.2 MB/s | 2.4 MB     00:02<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Finished Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing     : neon                                                                                                                                             1/2<br />
Installing     : subversion                                                                                                                                       2/2</p>
<p>Installed:<br />
subversion.i386 0:1.4.2-4.el5_3.1</p>
<p>Dependency Installed:<br />
neon.i386 0:0.25.5-10.el5_4.1</p>
<p>Complete!<br />
-bash-3.2#</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=168&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2010/11/10/missing-dependency-perluri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtuozo : Clone container Within Hardware Node</title>
		<link>http://rhcelinuxguide.wordpress.com/2010/10/19/virtuozo-clone-container-within-hardware-node/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2010/10/19/virtuozo-clone-container-within-hardware-node/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 06:28:03 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/?p=159</guid>
		<description><![CDATA[[root@vps001 ~]# vzmlocal -C 149:150 Moving/copying CT#149 -&#62; CT#150, [], [] &#8230; Check disk space Tracker started Syncing private area &#8216;/vz/private/149&#8242;-&#62;&#8217;/vz/private/150&#8242; done OfflineManagement CT#149 &#8230; done Stopping CT#149 &#8230; done Syncing tracked files from &#8216;/vz/private/149/fs&#8217; to &#8216;/vz/private/150/fs&#8217; done Copying/modifying config scripts of CT#149 &#8230; OfflineManagement CT#149 &#8230; done Starting CT#149 &#8230; vzctl : Hostname for [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=159&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>[root@vps001 ~]# vzmlocal -C 149:150<br />
Moving/copying CT#149 -&gt; CT#150, [], [] &#8230;<br />
Check disk space<br />
Tracker started<br />
Syncing private area &#8216;/vz/private/149&#8242;-&gt;&#8217;/vz/private/150&#8242;<br />
done<br />
OfflineManagement CT#149 &#8230;<br />
done<br />
Stopping CT#149 &#8230;<br />
done<br />
Syncing tracked files from &#8216;/vz/private/149/fs&#8217; to &#8216;/vz/private/150/fs&#8217;<br />
done<br />
Copying/modifying config scripts of CT#149 &#8230;<br />
OfflineManagement CT#149 &#8230;<br />
done<br />
Starting CT#149 &#8230;<br />
vzctl : Hostname for Container set: server1.SOMENAME.org<br />
vzctl : File resolv.conf was modified<br />
done<br />
Successfully completed<br />
[root@vps001 ~]#</p>
<p>However, before starting to use Container 150, you should set another IP address and another hostname for this Container which are currently identical to those of Container 149.</p>
<p>Ref: <a href="http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/lin/VzLinuxUG/16260.htm" rel="nofollow">http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/lin/VzLinuxUG/16260.htm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=159&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2010/10/19/virtuozo-clone-container-within-hardware-node/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>Automated Process monitoring during high server load</title>
		<link>http://rhcelinuxguide.wordpress.com/2010/08/26/automated-process-monitoring-during-high-server-load/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2010/08/26/automated-process-monitoring-during-high-server-load/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 18:54:16 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Linux General]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux:- Tips & Tricks]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Tuning Linux]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/?p=160</guid>
		<description><![CDATA[root@myServer [/root]# cat load-process-monitor.sh #!/bin/bash # Define Variables DT=`date +&#8221;%A %b %e %r&#8221;` HOSTNAME=`hostname` # Create dir to store data mkdir -p /opt/loadcheck/ # Retrieve the load average of the past 1 minute LAVG=`uptime &#124; awk {&#8216;print $10}&#8217; &#124; cut -d. -f1` LCURRENT=`uptime &#124; awk {&#8216;print $10,$11,$12}&#8217;` # Define Threshold. This value will be compared [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=160&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>root@myServer [/root]#  cat load-process-monitor.sh<br />
<span style="color:#993366;">#!/bin/bash</span></p>
<p><span style="color:#993366;"># Define Variables<br />
DT=`date +&#8221;%A %b %e %r&#8221;`<br />
HOSTNAME=`hostname`</span></p>
<p><span style="color:#993366;"># Create dir to store data<br />
mkdir -p /opt/loadcheck/</span></p>
<p><span style="color:#993366;"># Retrieve the load average of the past 1 minute<br />
LAVG=`uptime | awk {&#8216;print $10}&#8217; | cut -d. -f1`<br />
LCURRENT=`uptime | awk {&#8216;print $10,$11,$12}&#8217;`</span></p>
<p><span style="color:#993366;"># Define Threshold. This value will be compared with the current load average. Set the value as per your wish.<br />
LIMIT=-1</span></p>
<p><span style="color:#993366;"># Compare the current load average with Threshold and email the server administrator if threshold is greater.</span></p>
<p><span style="color:#993366;">if [ $LAVG -gt $LIMIT ]<br />
then</span></p>
<p><span style="color:#993366;">#Save the current running processes in a file<br />
/bin/ps -auxf &gt;&gt; /opt/ps_output</span></p>
<p><span style="color:#993366;">echo &#8220;Current Time :: $DT. &gt;&gt; /tmp/loadmon.txt<br />
echo &#8220;Current Load Average :: $LCURRENT. &gt;&gt; /tmp/loadmon.txt<br />
echo &#8220;current processes list attached with the email 1 instance. &gt;&gt; /tmp/loadmon.txt<br />
echo &#8220;Also check loadps.txt :: loadtop.txt :: netstat_all.txt ::  netstat_port80.txt inside /opt/loadcheck/ on the server&#8221;  &gt;&gt; /tmp/loadmon.txt<br />
# Send email to support<br />
/usr/bin/mutt -s &#8220;Server Load ALERT!!! High 1 minute load average on &#8216;$HOSTNAME&#8217;&#8221; -a /opt/ps_output support@somedomain.com &gt; /opt/ps_output</span></p>
<p><span style="color:#993366;">echo &#8220;Current Time :: $DT&#8221; &gt;&gt; /tmp/loadmon.txt<br />
echo &#8220;Current Load Average :: $LCURRENT&#8221; &gt;&gt; /tmp/loadmon.txt<br />
echo &#8220;current processes list attached with the email 1 instance&#8221; &gt;&gt; /tmp/loadmon.txt<br />
echo &#8220;Also check loadps.txt :: loadtop.txt :: netstat_all.txt ::  netstat_port80.txt inside /opt/loadcheck/ on the server&#8221;  &gt;&gt; /tmp/loadmon.txt<br />
# Send email to support<br />
/usr/bin/mutt -s &#8221; Server Load ALERT ::: High 1 minute load average on &#8216;$HOSTNAME&#8217; &#8221; -a /opt/ps_output support@integrityhost.com &gt; /opt/loadcheck/loadps.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadps.txt<br />
/bin/top -c -n1  &gt;&gt;  /opt/loadcheck/loadtop.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadtop.txt<br />
/bin/netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n &gt;&gt;  /opt/loadcheck/netstat_all.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_all.txt<br />
/bin/netstat -alntp | grep :80 | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort |  uniq -c | sort -n  &gt;&gt;  /opt/loadcheck/netstat_port80.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_port80.txt</span></p>
<p><span style="color:#993366;">/bin/ps -auxf &gt;&gt; /opt/loadcheck/loadps.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadps.txt<br />
/bin/top -c -n1  &gt;&gt;  /opt/loadcheck/loadtop.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadtop.txt<br />
/bin/netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n &gt;&gt;  /opt/loadcheck/netstat_all.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_all.txt<br />
/bin/netstat -alntp | grep :80 | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort |  uniq -c | sort -n  &gt;&gt;  /opt/loadcheck/netstat_port80.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_port80.txt</span></p>
<p><span style="color:#993366;">/bin/ps -auxf &gt;&gt; /opt/loadcheck/loadps.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadps.txt<br />
/bin/top -c -n1  &gt;&gt;  /opt/loadcheck/loadtop.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadtop.txt<br />
/bin/netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n &gt;&gt;  /opt/loadcheck/netstat_all.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_all.txt<br />
/bin/netstat -alntp | grep :80 | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort |  uniq -c | sort -n  &gt;&gt;  /opt/loadcheck/netstat_port80.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_port80.txt</span></p>
<p><span style="color:#993366;">/bin/ps -auxf &gt;&gt; /opt/loadcheck/loadps.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadps.txt<br />
/bin/top -c -n1  &gt;&gt;  /opt/loadcheck/loadtop.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadtop.txt<br />
/bin/netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n &gt;&gt;  /opt/loadcheck/netstat_all.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_all.txt<br />
/bin/netstat -alntp | grep :80 | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort |  uniq -c | sort -n  &gt;&gt;  /opt/loadcheck/netstat_port80.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_port80.txt</span></p>
<p><span style="color:#993366;">/bin/ps -auxf &gt;&gt; /opt/loadcheck/loadps.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadps.txt<br />
/bin/top -c -n1  &gt;&gt;  /opt/loadcheck/loadtop.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/loadtop.txt<br />
/bin/netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n &gt;&gt;  /opt/loadcheck/netstat_all.txt<br />
echo &#8220;#########################################################################################################################&#8221; &gt;&gt; /opt/loadcheck/netstat_all.txt<br />
/bin/netstat -alntp | grep :80 | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort |  uniq -c | sort -n  &gt;&gt;  /opt/loadcheck/netstat_port80.txt<br />
echo &#8221; ######################################################################################################################### &#8221; &gt;&gt; /opt/loadcheck/netstat_port80.txt</span></p>
<p><span style="color:#993366;">fi</span></p>
<p><span style="color:#993366;"># Remove residue logs<br />
/bin/rm -f /tmp/loadmon.txt<br />
/bin/rm -f /opt/ps_output</span></p>
<p>root@myServer [/root]#</p>
<p>Add a cron to run load-process-monitor.sh  ( * * * * * /bin/sh /path-to/load-process-monitor.sh ) every min and when server load goes beyond 4, it will send you email and log some important details, which can help to some extent to find some pointers to load issue from process and netstat listings.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=160&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2010/08/26/automated-process-monitoring-during-high-server-load/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>write a message to a particular user through terminal</title>
		<link>http://rhcelinuxguide.wordpress.com/2010/04/21/write-a-message-to-a-particular-user-through-terminal/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2010/04/21/write-a-message-to-a-particular-user-through-terminal/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 22:39:31 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Advanced Commands]]></category>
		<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Linux Kernel]]></category>
		<category><![CDATA[Linux:- Tips & Tricks]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/2010/04/21/write-a-message-to-a-particular-user-through-terminal/</guid>
		<description><![CDATA[We use wall to broadcast any message to all users logged in at any point of time through terminal We can use &#8216;write&#8217; command to send or write a message to a particular user through terminal. root@server1056 [/root]# w 18:23:38 up 22 days, 17:03, 3 users, load average: 0.47, 0.22, 0.12 USER TTY FROM LOGIN@ [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=155&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>We use wall to broadcast any message to all users logged in at any point of time through terminal</p>
<p>We can use &#8216;write&#8217;  command to send or write a message to a particular user through terminal.</p>
<p><font color='blue'><br />
root@server1056 [/root]# w<br />
 18:23:38 up 22 days, 17:03,  3 users,  load average: 0.47, 0.22, 0.12<br />
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT<br />
root     pts/0    1x.3x.7x.53-sta 17:48    0.00s  0.06s  0.06s -bash<br />
root     pts/3    12x.16x.6x.138   16:14   40:29   0.19s  0.19s -bash<br />
obama  pts/4    adsl-7x-4x-1x-18 Mon18   47:18m  0.00s  0.01s sshd: obama [priv]<br />
</font></p>
<p><font color='blue'><br />
root@server1056 [/root]# <font color='brown'>write  obama pts/4<br />
</font><br />
<font color='red'>hey bud,  please call me, I lost your no. since my cell was stolen.<br />
</font><br />
root@server1056 [/root]#<br />
</font></p>
<p>After typing &#8220;write  obama pts/4&#8243;  as the command hit enter key once,  </p>
<p>then type your message and hit your enter key once to push the message.</p>
<p>then hit ctrl+d  to  exit out of the write session.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=155&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2010/04/21/write-a-message-to-a-particular-user-through-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba</title>
		<link>http://rhcelinuxguide.wordpress.com/2010/04/01/error-missing-dependency-perlconvertasn1-is-needed-by-package-samba/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2010/04/01/error-missing-dependency-perlconvertasn1-is-needed-by-package-samba/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 20:13:31 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Advanced Commands]]></category>
		<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Linux General]]></category>
		<category><![CDATA[Linux:- Tips & Tricks]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/?p=152</guid>
		<description><![CDATA[Error root@server276 [~]# yum -y install samba samba-client samba-common Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: hpc.arc.georgetown.edu * base: mirror.trouble-free.net * extras: ftp.lug.udel.edu * rpmforge: apt.sw.be * updates: mirror.clarkson.edu Excluding Packages in global exclude list Finished Setting up Install Process Resolving Dependencies &#8211;&#62; Running transaction check &#8212;&#62; Package samba.x86_64 0:3.0.33-3.15.el5_4.1 set [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=152&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Error</strong><br />
root@server276 [~]# yum -y install  samba samba-client samba-common<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
 * addons: hpc.arc.georgetown.edu<br />
 * base: mirror.trouble-free.net<br />
 * extras: ftp.lug.udel.edu<br />
 * rpmforge: apt.sw.be<br />
 * updates: mirror.clarkson.edu<br />
Excluding Packages in global exclude list<br />
Finished<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package samba.x86_64 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8211;&gt; Processing Dependency: perl(Convert::ASN1) for package: samba<br />
&#8212;&gt; Package samba-client.x86_64 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8212;&gt; Package samba-common.i386 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8212;&gt; Package samba-common.x86_64 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8211;&gt; Finished Dependency Resolution<br />
samba-3.0.33-3.15.el5_4.1.x86_64 from updates has depsolving problems<br />
  &#8211;&gt; Missing Dependency: perl(Convert::ASN1) is needed by package samba-3.0.33-3.15.el5_4.1.x86_64 (updates)<br />
Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba-3.0.33-3.15.el5_4.1.x86_64 (updates)<br />
 You could try using &#8211;skip-broken to work around the problem<br />
 You could try running: package-cleanup &#8211;problems<br />
                        package-cleanup &#8211;dupes<br />
                        rpm -Va &#8211;nofiles &#8211;nodigest<br />
The program package-cleanup is found in the yum-utils package.</p>
<p><strong>Soln</strong></p>
<p>root@server276 [~]# wget <a href="http://dag.wieers.com/rpm/packages/perl-Convert-ASN1/perl-Convert-ASN1-0.21-2.el5.rf.noarch.rpm" rel="nofollow">http://dag.wieers.com/rpm/packages/perl-Convert-ASN1/perl-Convert-ASN1-0.21-2.el5.rf.noarch.rpm</a><br />
root@server276 [~]# rpm -Uvh perl-Convert-ASN1-0.21-2.el5.rf.noarch.rpm<br />
Preparing&#8230;                ########################################### [100%]<br />
   1:perl-Convert-ASN1      ########################################### [100%]<br />
root@server276 [~]# yum -y install  samba samba-client samba-common<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
 * addons: hpc.arc.georgetown.edu<br />
 * base: mirror.trouble-free.net<br />
 * extras: ftp.lug.udel.edu<br />
 * rpmforge: apt.sw.be<br />
 * updates: mirror.clarkson.edu<br />
Excluding Packages in global exclude list<br />
Finished<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package samba.x86_64 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8212;&gt; Package samba-client.x86_64 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8212;&gt; Package samba-common.i386 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8212;&gt; Package samba-common.x86_64 0:3.0.33-3.15.el5_4.1 set to be updated<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>==============================================================================================================================================================<br />
 Package                               Arch                            Version                                         Repository                        Size<br />
==============================================================================================================================================================<br />
Installing:<br />
 samba                                 x86_64                          3.0.33-3.15.el5_4.1                             updates                           16 M<br />
 samba-client                          x86_64                          3.0.33-3.15.el5_4.1                             updates                          5.7 M<br />
 samba-common                          i386                            3.0.33-3.15.el5_4.1                             updates                          8.7 M<br />
 samba-common                          x86_64                          3.0.33-3.15.el5_4.1                             updates                          8.8 M</p>
<p>Transaction Summary<br />
==============================================================================================================================================================<br />
Install      4 Package(s)<br />
Update       0 Package(s)<br />
Remove       0 Package(s)</p>
<p>Total download size: 40 M<br />
Downloading Packages:<br />
(1/4): samba-client-3.0.33-3.15.el5_4.1.x86_64.rpm                                                                                     | 5.7 MB     00:03<br />
(2/4): samba-common-3.0.33-3.15.el5_4.1.i386.rpm                                                                                       | 8.7 MB     00:03<br />
(3/4): samba-common-3.0.33-3.15.el5_4.1.x86_64.rpm                                                                                     | 8.8 MB     00:02<br />
(4/4): samba-3.0.33-3.15.el5_4.1.x86_64.rpm                                                                                            |  16 MB     00:04<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Total                                                                                                                         2.7 MB/s |  40 MB     00:14<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Finished Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
  Installing     : samba-common                                                                                                                           1/4<br />
  Installing     : samba-common                                                                                                                           2/4<br />
  Installing     : samba-client                                                                                                                           3/4<br />
  Installing     : samba                                                                                                                                  4/4</p>
<p>Installed:<br />
  samba.x86_64 0:3.0.33-3.15.el5_4.1                   samba-client.x86_64 0:3.0.33-3.15.el5_4.1            samba-common.i386 0:3.0.33-3.15.el5_4.1<br />
  samba-common.x86_64 0:3.0.33-3.15.el5_4.1</p>
<p>Complete!<br />
root@server276 [~]#</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=152&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2010/04/01/error-missing-dependency-perlconvertasn1-is-needed-by-package-samba/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating OS EZ Template Caches</title>
		<link>http://rhcelinuxguide.wordpress.com/2009/08/24/updating-os-ez-template-caches/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2009/08/24/updating-os-ez-template-caches/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:37:37 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ez Templates]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[parallels]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[Virtuozzo]]></category>
		<category><![CDATA[virtuozzo4.0]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/2009/08/24/updating-os-ez-template-caches/</guid>
		<description><![CDATA[##################################### [root@vps ~]# ls /vz/template/cache centos-5-x86.tar.gz fedora-core-9-x86.tar.gz ubuntu-8.04-x86.tar.gz [root@vps ~]# [root@vps ~]# vzpkg update cache centos-5-x86 Update OS template cache for centos-5-x86 template Loading &#8220;rpm2vzrpm&#8221; plugin Cleaning up xml metadata 16 metadata files removed Loading &#8220;rpm2vzrpm&#8221; plugin Making cache files for all metadata files. This may take a while depending on the speed of this [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=150&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>#####################################</p>
<p>[root@vps ~]# ls /vz/template/cache<br />
centos-5-x86.tar.gz   fedora-core-9-x86.tar.gz  ubuntu-8.04-x86.tar.gz<br />
[root@vps ~]#</p>
<p>[root@vps ~]# vzpkg update cache centos-5-x86<br />
Update OS template cache for centos-5-x86 template</p>
<p>Loading &#8220;rpm2vzrpm&#8221; plugin<br />
Cleaning up xml metadata<br />
16 metadata files removed</p>
<p>Loading &#8220;rpm2vzrpm&#8221; plugin<br />
Making cache files for all metadata files.<br />
This may take a while depending on the speed of this computer<br />
Setting up repositories<br />
base0                     100% |=========================| 1.1 kB    00:00<br />
base1                     100% |=========================|  951 B    00:00<br />
base2                     100% |=========================|  951 B    00:00<br />
base3                     100% |=========================|  951 B    00:00<br />
primary.xml.gz            100% |=========================| 878 kB    00:00<br />
primary.xml.gz            100% |=========================| 306 kB    00:00<br />
base1     : ################################################## 465/465<br />
Added 296 new packages, deleted 0 old in 4.80 seconds<br />
primary.xml.gz            100% |=========================| 1.7 kB    00:00<br />
primary.xml.gz            100% |=========================| 1.0 kB    00:00<br />
filelists.xml.gz          100% |=========================| 2.8 MB    00:00<br />
filelists.xml.gz          100% |=========================| 2.2 MB    00:00<br />
base1     :                                                    2/465<br />
=== ==  == == ==<br />
=== ==  == == ==<br />
=== ==  == == ==<br />
=== ==  == == ==<br />
ev.i386 0:095-14.20.el5_3 usermode.i386 0:1.88-3.el5.2 util-linux.i386 0:2.13-0.50.el5 vim-common.i386 2:7.0.109-4.el5_2.4z zlib.i386 0:1.2.3-3<br />
Complete!<br />
grep: /tmp/pam/*: No such file or directory<br />
OS template centos-5-x86 cache was updated<br />
[root@vps ~]#</p>
<p>[root@vps ~]# ls /vz/template/cache<br />
centos-5-x86.tar.gz  centos-5-x86.tar.gz-old  fedora-core-9-x86.tar.gz  fedora-core-9-x86.tar.gz-old  ubuntu-8.04-x86.tar.gz<br />
[root@vps ~]#</p>
<p>[root@vps ~]# vzup2date</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=150&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2009/08/24/updating-os-ez-template-caches/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>CenOS 5.3 yum installation in VPS</title>
		<link>http://rhcelinuxguide.wordpress.com/2009/08/21/cenos-5-3-yum-installation-in-vps/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2009/08/21/cenos-5-3-yum-installation-in-vps/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 22:34:41 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos vps centos5.3 yum virtuozzo openvz xen]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/2009/08/21/cenos-5-3-yum-installation-in-vps/</guid>
		<description><![CDATA[-bash-3.2# cd /root/ -bash-3.2# mkdir yumfiles -bash-3.2# cd yumfiles/ -bash-3.2# ls -bash-3.2# vi yumdload.sh wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libelf-0.137-3.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/m2crypto-0.16-6.el5.3.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/readline-5.1-1.1.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-4.4.2.3-9.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-libs-4.4.2.3-9.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-python-4.4.2.3-9.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/popt-1.10.2.3-9.el5.i386.rpm rpm [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=149&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>-bash-3.2# cd /root/<br />
-bash-3.2# mkdir yumfiles<br />
-bash-3.2# cd yumfiles/<br />
-bash-3.2# ls<br />
-bash-3.2# vi yumdload.sh</p>
<p>wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libelf-0.137-3.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libelf-0.137-3.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/m2crypto-0.16-6.el5.3.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/m2crypto-0.16-6.el5.3.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/readline-5.1-1.1.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/readline-5.1-1.1.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-4.4.2.3-9.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-4.4.2.3-9.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-libs-4.4.2.3-9.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-libs-4.4.2.3-9.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-python-4.4.2.3-9.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-python-4.4.2.3-9.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm</a><br />
wget <a href="http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/popt-1.10.2.3-9.el5.i386.rpm" rel="nofollow">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/popt-1.10.2.3-9.el5.i386.rpm</a></p>
<p>rpm -Uvh rpm-4.4.2.3-9.el5.i386.rpm rpm-libs-4.4.2.3-9.el5.i386.rpm  popt-1.10.2.3-9.el5.i386.rpm &#8211;force<br />
rpm -Uvh rpm-python-4.4.2.3-9.el5.i386.rpm<br />
rpm -Uvh m2crypto-0.16-6.el5.3.i386.rpm python-*.rpm yum*.rpm</p>
<p>-bash-3.2# sh  yumdload.sh<br />
-bash-3.2#</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=149&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2009/08/21/cenos-5-3-yum-installation-in-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing PECL shared extensions</title>
		<link>http://rhcelinuxguide.wordpress.com/2009/07/30/installing-pecl-shared-extensions/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2009/07/30/installing-pecl-shared-extensions/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 23:08:02 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/2009/07/30/installing-pecl-shared-extensions/</guid>
		<description><![CDATA[[root@server ]# ls -l `which curl` `which curl-config` lrwxrwxrwx 1 root root 21 Mar 7 10:59 /usr/bin/curl -&#62; /opt/curlssl/bin/curl lrwxrwxrwx 1 root root 28 Mar 7 10:55 /usr/bin/curl-config -&#62; /opt/curlssl/bin/curl-config [root@server ]# cd /root/ ; wget http://pecl.php.net/get/pecl_http-1.6.3.tgz [root@server ]# tar -zxvf pecl_http-1.6.3.tgz [root@server ]# cd pecl_http-1.6.3 [root@server ]# phpize [root@server ]# ./configure &#8211;with-http-curl-requests=/opt/curlssl [root@server ]# [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=147&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>[root@server ]# ls -l  `which curl`  `which curl-config`<br />
lrwxrwxrwx  1 root root 21 Mar  7 10:59 /usr/bin/curl -&gt; /opt/curlssl/bin/curl<br />
lrwxrwxrwx  1 root root 28 Mar  7 10:55 /usr/bin/curl-config -&gt; /opt/curlssl/bin/curl-config</p>
<p>[root@server ]# cd /root/  ; wget <a href="http://pecl.php.net/get/pecl_http-1.6.3.tgz" rel="nofollow">http://pecl.php.net/get/pecl_http-1.6.3.tgz</a><br />
[root@server ]# tar -zxvf pecl_http-1.6.3.tgz<br />
[root@server ]# cd pecl_http-1.6.3<br />
[root@server ]# phpize<br />
[root@server ]# ./configure &#8211;with-http-curl-requests=/opt/curlssl<br />
[root@server ]# make<br />
[root@server ]# make test<br />
[root@server ]# make install<br />
[root@server ]#  php -i |  grep &#8220;Configuration File&#8221;<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini</p>
<p>[root@server ]#  vi /usr/local/lib/php.ini  , and add </p>
<p>extension=http.so  ( below extension_dir line in php.ini , make sure extension_dir alredy points to the folder having http.so lib )</p>
<p>** curl / curl-config may depend on your system setup. you can also use &#8211;prefix=/usr/local/pecl_http  or anything you want)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=147&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2009/07/30/installing-pecl-shared-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>There could also be a problem with the server&#8217;s session.save_path</title>
		<link>http://rhcelinuxguide.wordpress.com/2009/06/09/there-could-also-be-a-problem-with-the-servers-session-save_path/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2009/06/09/there-could-also-be-a-problem-with-the-servers-session-save_path/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 01:14:04 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Linux General]]></category>
		<category><![CDATA[Linux:- Tips & Tricks]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/?p=144</guid>
		<description><![CDATA[New joomla install would show following: An error has occurred.:Cookies do not appear to be enabled on your browser client. You will not be able to install the application with this feature disabled. Alternatively, there could also be a problem with the server&#8217;s session.save_path. If this is the case, please consult your hosting provider if [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=144&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><font color='brown'><br />
New joomla install would show following:</p>
<p>An error has occurred.:Cookies do not appear to be enabled on your browser client. You will not be able to install the application with this feature disabled. Alternatively, there could also be a problem with the server&#8217;s session.save_path. If this is the case, please consult your hosting provider if you don&#8217;t know how to check or fix this yourself.</p>
<p>and</p>
<p>existing admin login to  joomla installations were not authenticating.<br />
</font><br />
Soln=====&gt;</p>
<p>Compare the following in php.ini</p>
<p>Working configuration<br />
#############################</p>
<p>[root@server  root]# grep session. /usr/local/lib/php.ini<br />
session.save_handler = files<br />
; variable in order to use PHP&#8217;s session functions.<br />
;     session.save_path = &#8220;N;/path&#8221;<br />
; where N is an integer.  Instead of storing all the session files in<br />
; store the session data in those directories.  This is useful if you<br />
; a more efficient layout for servers that handle lots of sessions.<br />
;         You can use the script in the ext/session dir for that purpose.<br />
;         use subdirectories for session storage<br />
;session.save_path = /tmp<br />
session.use_cookies = 1<br />
; attacks which involve passing session ids in URLs; defaults to 0.<br />
; session.use_only_cookies = 1<br />
; Name of the session (used as cookie name).<br />
session.name = PHPSESSID<br />
; Initialize session on request startup.<br />
session.auto_start = 0<br />
session.cookie_lifetime = 0<br />
session.cookie_path = /<br />
session.cookie_domain =<br />
session.serialize_handler = php<br />
; on every session initialization.<br />
session.gc_probability = 1<br />
session.gc_divisor     = 100<br />
session.gc_maxlifetime = 1440<br />
; NOTE: If you are using the subdirectory option for storing session files<br />
;       (see session.save_path above), then garbage collection does *not*<br />
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):<br />
;          cd /path/to/sessions; find -cmin +24 | xargs rm<br />
; to initialize a session variable in the global scope, albeit register_globals<br />
session.bug_compat_42 = 1<br />
session.bug_compat_warn = 1<br />
; HTTP_REFERER has to contain this substring for the session to be<br />
session.referer_check =<br />
session.entropy_length = 0<br />
; Specified here to create the session id.<br />
session.entropy_file =<br />
;session.entropy_length = 16<br />
;session.entropy_file = /dev/urandom<br />
session.cache_limiter = nocache<br />
session.cache_expire = 180<br />
; &#8211; User may send URL contains active session ID<br />
; &#8211; URL that contains active session ID may be stored<br />
; &#8211; User may access your site with the same session ID<br />
session.use_trans_sid = 0<br />
[root@server root]#</p>
<p>Things to check for<br />
##########################</p>
<p>1) check that the above are set and check that:</p>
<p>2) /tmp has permissions 1777</p>
<p>3) /dev/urandom exists, if not create it with following commands:<br />
mknod -m 644 /dev/urandom c 1 9<br />
chown root:root /dev/random /dev/urandom</p>
<p>4) uncomment<br />
;session.save_path = /tmp<br />
in php.ini , if the sessions folder is not /tmp ( by default for cpanel server installation it is /tmp , however if php/apache is installed on a plain server, the sessions folder is usually /var/lib/php/sessions or something)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=144&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2009/06/09/there-could-also-be-a-problem-with-the-servers-session-save_path/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Latest postgresql using yum from pgsqlrpms</title>
		<link>http://rhcelinuxguide.wordpress.com/2008/09/29/install-latest-postgresql-using-yum-from-pgsqlrpms/</link>
		<comments>http://rhcelinuxguide.wordpress.com/2008/09/29/install-latest-postgresql-using-yum-from-pgsqlrpms/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 14:27:45 +0000</pubDate>
		<dc:creator>madanwordpress</dc:creator>
				<category><![CDATA[Advanced Commands]]></category>
		<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Linux General]]></category>
		<category><![CDATA[Linux:- Tips & Tricks]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rhcelinuxguide.wordpress.com/?p=140</guid>
		<description><![CDATA[################################################## [root@server ~]# yum erase postgresql postgresql-server [root@server ~]# wget http://yum.pgsqlrpms.org/reporpms/8.3/pgdg-centos-8.3-4.noarch.rpm [root@server ~]# rpm -ivh pgdg-centos-8.3-4.noarch.rpm [root@server ~]# yum install postgresql postgresql-server [root@server ~]# chkconfig postgresql on [root@server ~]# service postgresql initdb [root@server ~]# chkconfig postgresql on &#38;&#38; service postgresql start [root@server ~]# /usr/bin/postgres &#8211;version postgres (PostgreSQL) 8.3.4 [root@server ~]# Set port and the interface [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=140&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>##################################################</p>
<p>[root@server ~]# yum erase postgresql postgresql-server<br />
[root@server ~]# wget <a href="http://yum.pgsqlrpms.org/reporpms/8.3/pgdg-centos-8.3-4.noarch.rpm" rel="nofollow">http://yum.pgsqlrpms.org/reporpms/8.3/pgdg-centos-8.3-4.noarch.rpm</a><br />
[root@server ~]# rpm -ivh pgdg-centos-8.3-4.noarch.rpm<br />
[root@server ~]# yum install postgresql postgresql-server<br />
[root@server ~]# chkconfig postgresql on<br />
[root@server ~]# service postgresql initdb<br />
[root@server ~]# chkconfig postgresql on &amp;&amp; service postgresql start</p>
<p>[root@server ~]# /usr/bin/postgres &#8211;version<br />
postgres (PostgreSQL) 8.3.4<br />
[root@server ~]#</p>
<p>Set port and the interface to bind to</p>
<p>#########################################</p>
<p><code>vi /var/lib/pgsql/data/postgresql.conf</code></p>
<p># &#8211; Connection Settings -</p>
<p>listen_addresses = ‘*’<br />
port = 5432</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhcelinuxguide.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhcelinuxguide.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rhcelinuxguide.wordpress.com&#038;blog=246833&#038;post=140&#038;subd=rhcelinuxguide&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rhcelinuxguide.wordpress.com/2008/09/29/install-latest-postgresql-using-yum-from-pgsqlrpms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87425c3990b1e7bfa7d315b4c1536ee4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
