<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Checking Hard Disk Usage in Linux</title>
	<atom:link href="http://blog.emobilez.com/2009/01/22/checking-hard-disk-usage-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.emobilez.com/2009/01/22/checking-hard-disk-usage-in-linux/</link>
	<description>All about mobiles, ubuntu, wordpress, graphics, tech tips &#38; tricks</description>
	<lastBuildDate>Mon, 15 Mar 2010 06:20:10 +0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jadu Saikia</title>
		<link>http://blog.emobilez.com/2009/01/22/checking-hard-disk-usage-in-linux/comment-page-1/#comment-38</link>
		<dc:creator>Jadu Saikia</dc:creator>
		<pubDate>Thu, 22 Jan 2009 06:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emobilez.com/?p=228#comment-38</guid>
		<description>A small script for getting alert email if some partition reaches some threshold. 

------------
#!/bin/sh
#

mailid=&quot;example@example.com&quot;
thres=75

df -H &#124; awk &#039;!/^Filesystem&#124;tmpfs&#124;cdrom/ { gsub(/\%/,&quot;&quot;,$5); print $5,$1}&#039; &#124; while read line
        do
                 echo $line
                 eval $(echo &quot;$line&quot; &#124; awk &#039;{print &quot;percent=&quot;$1&quot;;parti=&quot;$2}&#039;)
                 [ $percent -ge $thres ] &amp;&amp; echo &quot;Running out of space \&quot;$parti ($percent%)\&quot; on $(hostname) as on $(date)&quot; &#124; mail -s &quot;Alert: Almost out of disk space $percent%&quot; $mailid
done
--------

//Jadu, unstableme.blogspot.com</description>
		<content:encoded><![CDATA[<p>A small script for getting alert email if some partition reaches some threshold. </p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
#!/bin/sh<br />
#</p>
<p>mailid=&#8221;example@example.com&#8221;<br />
thres=75</p>
<p>df -H | awk &#8216;!/^Filesystem|tmpfs|cdrom/ { gsub(/\%/,&#8221;",$5); print $5,$1}&#8217; | while read line<br />
        do<br />
                 echo $line<br />
                 eval $(echo &#8220;$line&#8221; | awk &#8216;{print &#8220;percent=&#8221;$1&#8243;;parti=&#8221;$2}&#8217;)<br />
                 [ $percent -ge $thres ] &amp;&amp; echo &#8220;Running out of space \&#8221;$parti ($percent%)\&#8221; on $(hostname) as on $(date)&#8221; | mail -s &#8220;Alert: Almost out of disk space $percent%&#8221; $mailid<br />
done<br />
&#8212;&#8212;&#8211;</p>
<p>//Jadu, unstableme.blogspot.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ikus060</title>
		<link>http://blog.emobilez.com/2009/01/22/checking-hard-disk-usage-in-linux/comment-page-1/#comment-36</link>
		<dc:creator>ikus060</dc:creator>
		<pubDate>Thu, 22 Jan 2009 03:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emobilez.com/?p=228#comment-36</guid>
		<description>Hi,

Also in the same idea. Some time it&#039;s interesting to know how busy the HardDrive is. 
Under AIX platform i&#039;m using topas. But it&#039;s not esily available on all distro, so I use &#039;atop&#039;.

Pressing &#039;d&#039; key, will display a list of process ordered by the disk usage.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Also in the same idea. Some time it&#8217;s interesting to know how busy the HardDrive is.<br />
Under AIX platform i&#8217;m using topas. But it&#8217;s not esily available on all distro, so I use &#8216;atop&#8217;.</p>
<p>Pressing &#8216;d&#8217; key, will display a list of process ordered by the disk usage.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
