<?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/"
	>

<channel>
	<title>chkconfig &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/chkconfig/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Fri, 26 Nov 2010 04:45:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>Monitoring A System With Sysstat On CentOS</title>
		<link>https://lifelinux.com/monitoring-a-system-with-sysstat-on-centos/</link>
					<comments>https://lifelinux.com/monitoring-a-system-with-sysstat-on-centos/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Fri, 26 Nov 2010 03:51:41 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[iostat command]]></category>
		<category><![CDATA[monitor centos]]></category>
		<category><![CDATA[monitor linux]]></category>
		<category><![CDATA[monitor with sar]]></category>
		<category><![CDATA[monitoring server linux]]></category>
		<category><![CDATA[mpstat command]]></category>
		<category><![CDATA[sar command]]></category>
		<category><![CDATA[sysstat]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=218</guid>

					<description><![CDATA[<p>The Sysstat package contains utilities to monitor system performance and usage activity. Sysstat contains the sar, iostat, mpstat,&#8230; utilities, common to many commercial Unixes, and tools you can schedule via cron to collect and historize performance and activity data. In this topic, i&#8217;ll explain how to monitor a system with sysstat on CentOS. Installing Sysstat [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/monitoring-a-system-with-sysstat-on-centos/">Monitoring A System With Sysstat On CentOS</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>The <strong>Sysstat </strong>package contains           utilities to monitor system performance and usage activity.           Sysstat contains the <strong>sar</strong>, <strong>iostat</strong>, <strong>mpstat</strong>,&#8230; utilities, common to many           commercial Unixes, and tools you can schedule via cron to collect           and historize performance and activity data. In this topic, i&#8217;ll explain how to monitor a system with sysstat on CentOS.<span id="more-218"></span></p>
<h2>Installing Sysstat</h2>
<pre>yum install sysstat
</pre>
<h2>Start sysstat service</h2>
<pre>/etc/init.d/sysstat start
</pre>
<h2>Set sysstat service to automatically startup</h2>
<pre><a href="http://www.lifelinux.com/chkconfig-command/">chkconfig</a> sysstat on
</pre>
<h2>sysstat reports activity</h2>
<p>By default, sysstat reports activity every 10 minutes everyday. If you’d like to change that interval, edit it here:</p>
<pre>vi /etc/cron.d/sysstat
</pre>
<pre># run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib/sa/sa2 -A
</pre>
<h2>iostat command</h2>
<p>The iostat command displays the average CPU usage since the last reboot. By default, the command without an option displays the average CPU usage and input/output stats of all the drives and their partitions. Type the following command:</p>
<pre>[root@server2 sa]# iostat
Linux 2.6.18-194.17.1.el5 (server2)  11/26/2010

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
0.96    0.00    0.26    0.03    0.00   98.75

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda               8.77         1.51       275.43    5272719  960252518
sdb               8.79         1.55       275.43    5413063  960252518
dm-0             34.52         3.06       275.43   10684502  960252518
dm-1              0.00         0.00         0.00       1666      11358
dm-2              2.22         0.05        17.75     180478   61885856
dm-3              0.00         0.00         0.00       1460        136
dm-4             32.29         3.01       257.68   10500418  898355168
</pre>
<p>If you may also wanted to display the CPU stats after every specific interval say, 5 seconds</p>
<pre>[root@server2 sa]# iostat -tc 5
Linux 2.6.18-194.17.1.el5 (server2)  11/26/2010

Time: 11:19:56 AM
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
0.96    0.00    0.26    0.03    0.00   98.75

Time: 11:20:01 AM
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
2.17    0.00    0.57    0.03    0.00   97.22
</pre>
<h2>mpstat command</h2>
<p><strong>mpstat</strong> command is use to display CPU usage of each CPU individually. By default, mpstat command without option shows the extended output of CPU usage. See bellow:</p>
<pre>[root@server2 sa]# mpstat
Linux 2.6.18-194.17.1.el5 (server2)  11/26/2010

11:21:31 AM  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s
11:21:31 AM  all    0.96    0.00    0.16    0.03    0.04    0.06    0.00   98.75   1107.64
</pre>
<h2>sar command</h2>
<p><strong>sar </strong>command generates the stats for CPU usage, RAM usage and load average of the server and stores them in a file at regular interval. By default, the command without an option displays CPU stats of the current day, type the following command:</p>
<pre>[root@server2 sa]# sar
Linux 2.6.18-194.17.1.el5 (server2)  11/26/2010

12:00:01 AM       CPU     %user     %nice   %system   %iowait    %steal     %idle
12:10:01 AM       all      1.80      0.00      0.35      0.04      0.00     97.81
...
</pre>
<p>Display data stored in output file pass -f option</p>
<pre>[root@server2 sa]# sar -f /var/log/sa/sa10 | more
Linux 2.6.18-194.17.1.el5 (server2)  11/10/2010

12:00:01 AM       CPU     %user     %nice   %system   %iowait    %steal     %idl
e
12:10:01 AM       all      1.02      0.00      0.38      0.04      0.00     98.5
6
...
</pre>
<p>Display the current CPU usage in specific time interval. The following command generates the output every 5 seconds for 2 times.</p>
<pre>[root@server2 sa]# sar -u 5 2
Linux 2.6.18-194.17.1.el5 (server2)  11/26/2010

11:26:42 AM       CPU     %user     %nice   %system   %iowait    %steal     %idle
11:26:47 AM       all      1.52      0.00      0.53      0.05      0.00     97.90
11:26:52 AM       all      3.00      0.00      0.60      0.02      0.00     96.38
Average:          all      2.26      0.00      0.56      0.04      0.00     97.14
</pre>
<p>Watch CPU activity evolve for 10 minutes and save data</p>
<pre>sar -o &lt;path_to_file&gt; 60 10
</pre>
<g:plusone href="https://lifelinux.com/monitoring-a-system-with-sysstat-on-centos/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/monitoring-a-system-with-sysstat-on-centos/">Monitoring A System With Sysstat On CentOS</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/monitoring-a-system-with-sysstat-on-centos/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Runlevels</title>
		<link>https://lifelinux.com/linux-runlevels/</link>
					<comments>https://lifelinux.com/linux-runlevels/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 17:33:14 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[change runlevel]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[runlevel]]></category>
		<category><![CDATA[runlevel on centos]]></category>
		<category><![CDATA[runlevel on linux]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=111</guid>

					<description><![CDATA[<p>Runlevels define what services or processes should be running on the system. The Linux operating system can make use of runlevels through the programs of the sysvinit project. After the Linux kernel has booted, the init program reads the /etc/inittab file to determine the behavior for each runlevel. Unless the user specifies another value as [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/linux-runlevels/">Linux Runlevels</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>Runlevels</strong> define what services or processes should be running on the system. The Linux operating system can make use of runlevels through the programs of the sysvinit project. After the Linux kernel has booted, the init program reads the /etc/inittab file to determine the behavior for each runlevel. Unless the user specifies another value as a kernel boot parameter, the system will attempt to enter (start) the default runlevels.<span id="more-111"></span></p>
<h2>Runlevels on RedHat, Centos and Fedora have 6 levels:</h2>
<pre>Runlevel 0: Halt System - To shutdown the system
Runlevel 1: Single user mode
Runlevel 2: Basic multi user mode without NFS
Runlevel 3: Full multi user mode (text based)
Runlevel 4: unused
Runlevel 5: Multi user mode with Graphical User Interface
Runlevel 6: Reboot System
</pre>
<h2>Change Runlevels</h2>
<p>Use the init command to change run levels:</p>
<pre>init &lt;level&gt;
</pre>
<p>On most Linux server default run level 3 and on most Linux desktop default run level 5 with GUI. The default run level is defined in /etc/inittab file. You can change default run level by edit /etc/inittab file.</p>
<pre>vi /etc/inittab
</pre>
<p>The following line at the top line of inittab file</p>
<pre>id:3:initdefault:
</pre>
<p>Change default run level from 3 to 5:</p>
<pre>id:5:initdefault:
</pre>
<g:plusone href="https://lifelinux.com/linux-runlevels/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/linux-runlevels/">Linux Runlevels</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/linux-runlevels/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
