<?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 the diskspace on your VMFS volumes</title>
	<atom:link href="http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/</link>
	<description>Building blocks for virtualization...</description>
	<lastBuildDate>Thu, 18 Mar 2010 06:02:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: kcampbell</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-5407</link>
		<dc:creator>kcampbell</dc:creator>
		<pubDate>Fri, 04 Dec 2009 14:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-5407</guid>
		<description>fabu -many tx!</description>
		<content:encoded><![CDATA[<p>fabu -many tx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kklo</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-4706</link>
		<dc:creator>kklo</dc:creator>
		<pubDate>Mon, 05 Oct 2009 16:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-4706</guid>
		<description>There is a malfunction in my last post.

if there is o warning yellow or red, the SENDMAIL variable is not defined and this gives a sintaxis error in the eval:
if [ $SENDMAIL -ge 1 ]; then

So the better way to avoid this error is change the test as follows:

if [ ! $SENDMAIL ]; then
   # SENDMAIL is not defined, so there is no warning
else
#Put here the sending mail procedure
....

fi


regards
kklo</description>
		<content:encoded><![CDATA[<p>There is a malfunction in my last post.</p>
<p>if there is o warning yellow or red, the SENDMAIL variable is not defined and this gives a sintaxis error in the eval:<br />
if [ $SENDMAIL -ge 1 ]; then</p>
<p>So the better way to avoid this error is change the test as follows:</p>
<p>if [ ! $SENDMAIL ]; then<br />
   # SENDMAIL is not defined, so there is no warning<br />
else<br />
#Put here the sending mail procedure<br />
&#8230;.</p>
<p>fi</p>
<p>regards<br />
kklo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kklo</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-4703</link>
		<dc:creator>kklo</dc:creator>
		<pubDate>Mon, 05 Oct 2009 09:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-4703</guid>
		<description>Hello,

To be able to send a mail only when there is a YELLOW or a RED warning you should modify the script as follows:


SENDMAIL=0
SENDMAIL=$( /usr/sbin/vdf -h -P &#124; sort -k 6 &#124; grep -E &#039;^/vmfs/volumes/&#039; &#124; awk &#039;{ print $2 &quot; &quot; $3 &quot; &quot; $4 &quot; &quot; $5 &quot; &quot; $6 }&#039; &#124; while read output ; do
......
......
    if [ $CUTPERC -ge $VMFSYELLOW ] ; then
      WARNING=&quot;yellow&quot; 
      echo -ne 1
    fi  
......
......
  done 
)
echo &quot;&quot; &gt;&gt; &quot;${LOG}&quot;
echo &quot;VMFS - Disk Usage Monitor by BitBat, S.L.&quot; &gt;&gt; &quot;${LOG}&quot;
echo &quot;&quot; &gt;&gt; &quot;${LOG}&quot;
echo &quot;&quot; &gt;&gt; &quot;${LOG}&quot; 

if [ $SENDMAIL -ge 1 ]; then
   MAIL_BODY=`cat ${LOG}`

  /usr/bin/perl smtp_send.pl -t $MAIL_TO -f $MAIL_FROM -s &quot;VMFS Disk Usage - $MYDATE&quot; -r $MAIL_SERVER -m &quot;$MAIL_BODY&quot;
fi

best regards,
kklo</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>To be able to send a mail only when there is a YELLOW or a RED warning you should modify the script as follows:</p>
<p>SENDMAIL=0<br />
SENDMAIL=$( /usr/sbin/vdf -h -P | sort -k 6 | grep -E &#8216;^/vmfs/volumes/&#8217; | awk &#8216;{ print $2 &#8221; &#8221; $3 &#8221; &#8221; $4 &#8221; &#8221; $5 &#8221; &#8221; $6 }&#8217; | while read output ; do<br />
&#8230;&#8230;<br />
&#8230;&#8230;<br />
    if [ $CUTPERC -ge $VMFSYELLOW ] ; then<br />
      WARNING=&#8221;yellow&#8221;<br />
      echo -ne 1<br />
    fi<br />
&#8230;&#8230;<br />
&#8230;&#8230;<br />
  done<br />
)<br />
echo &#8220;&#8221; &gt;&gt; &#8220;${LOG}&#8221;<br />
echo &#8220;VMFS &#8211; Disk Usage Monitor by BitBat, S.L.&#8221; &gt;&gt; &#8220;${LOG}&#8221;<br />
echo &#8220;&#8221; &gt;&gt; &#8220;${LOG}&#8221;<br />
echo &#8220;&#8221; &gt;&gt; &#8220;${LOG}&#8221; </p>
<p>if [ $SENDMAIL -ge 1 ]; then<br />
   MAIL_BODY=`cat ${LOG}`</p>
<p>  /usr/bin/perl smtp_send.pl -t $MAIL_TO -f $MAIL_FROM -s &#8220;VMFS Disk Usage &#8211; $MYDATE&#8221; -r $MAIL_SERVER -m &#8220;$MAIL_BODY&#8221;<br />
fi</p>
<p>best regards,<br />
kklo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naz</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-2853</link>
		<dc:creator>naz</dc:creator>
		<pubDate>Thu, 19 Mar 2009 11:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-2853</guid>
		<description>Hello timbow, 

how did you modify the script?
I need the same functionality, I want only Emails when one of the Volumes status is red.  could you help me ? 

Thank you

Naz</description>
		<content:encoded><![CDATA[<p>Hello timbow, </p>
<p>how did you modify the script?<br />
I need the same functionality, I want only Emails when one of the Volumes status is red.  could you help me ? </p>
<p>Thank you</p>
<p>Naz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timbow</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-2802</link>
		<dc:creator>timbow</dc:creator>
		<pubDate>Thu, 12 Mar 2009 15:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-2802</guid>
		<description>Hello Duncan,

thanks for the nice script. I&#039;ve got a ESX 3.5 Server and it works great. I modified it so it only sends Emails when one of the Volumes status is &quot;red&quot;. Manually used it works perfect, but when I put it in Crontab as a job nothing happens. In the Crontab log files I can see that the script is executed every hour, thats like i wanted it but theres no email sending... can you help me? Thanks for help greetings from germany</description>
		<content:encoded><![CDATA[<p>Hello Duncan,</p>
<p>thanks for the nice script. I&#8217;ve got a ESX 3.5 Server and it works great. I modified it so it only sends Emails when one of the Volumes status is &#8220;red&#8221;. Manually used it works perfect, but when I put it in Crontab as a job nothing happens. In the Crontab log files I can see that the script is executed every hour, thats like i wanted it but theres no email sending&#8230; can you help me? Thanks for help greetings from germany</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abid</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-2644</link>
		<dc:creator>Abid</dc:creator>
		<pubDate>Sat, 28 Feb 2009 21:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-2644</guid>
		<description>Hello Duncan,

thanks for your very great script. Your Script works very good. I am a beginner in perl but now I would like to modify the script. I would like to be Informed only if the threshold for Warning is reached.

 at the bottom of your script,I have add this.

if [ $CUTPERC -ge $VMFSRED ] ; then
/usr/local/bin/smtp_send.pl -t info@me.com -s “Diskspace report of the VMFS volumes” -f esx01@me.com -m “`cat /var/log/vdf.html`” -r 172.10.10.10
fi

But unfortunately it does not work because the values of $CUTPERC and $VMFSRED are lost after the loop.  Could you give me a hint , how I can solve my problem


Many thanks.</description>
		<content:encoded><![CDATA[<p>Hello Duncan,</p>
<p>thanks for your very great script. Your Script works very good. I am a beginner in perl but now I would like to modify the script. I would like to be Informed only if the threshold for Warning is reached.</p>
<p> at the bottom of your script,I have add this.</p>
<p>if [ $CUTPERC -ge $VMFSRED ] ; then<br />
/usr/local/bin/smtp_send.pl -t <a href="mailto:info@me.com">info@me.com</a> -s “Diskspace report of the VMFS volumes” -f <a href="mailto:esx01@me.com">esx01@me.com</a> -m “`cat /var/log/vdf.html`” -r 172.10.10.10<br />
fi</p>
<p>But unfortunately it does not work because the values of $CUTPERC and $VMFSRED are lost after the loop.  Could you give me a hint , how I can solve my problem</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abid Belghiran</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-2601</link>
		<dc:creator>Abid Belghiran</dc:creator>
		<pubDate>Tue, 24 Feb 2009 17:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-2601</guid>
		<description>Hi Duncan,

very great job! This script is very useful.
Thanks a lot !

Greetings

Abid</description>
		<content:encoded><![CDATA[<p>Hi Duncan,</p>
<p>very great job! This script is very useful.<br />
Thanks a lot !</p>
<p>Greetings</p>
<p>Abid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rwu</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-1882</link>
		<dc:creator>rwu</dc:creator>
		<pubDate>Wed, 03 Dec 2008 16:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-1882</guid>
		<description>Would it be possible for you to try and get this info incorporated into RVTools?</description>
		<content:encoded><![CDATA[<p>Would it be possible for you to try and get this info incorporated into RVTools?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: :: blazilla.de ::</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-1311</link>
		<dc:creator>:: blazilla.de ::</dc:creator>
		<pubDate>Fri, 17 Oct 2008 09:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-1311</guid>
		<description>&lt;strong&gt;Aufgabe von vdf als HTML...&lt;/strong&gt;

Mittels vdf kann man sich die aktuelle Belegung der VMFS Dateisysteme auf der Serviceconsole vom VMware ESX ausgeben lassen. Da es aber bei der Serviceconsole um ein mehr oder weniger komplettes RHEL3 handelt, kann man sich natürlich die üblichen Skr...</description>
		<content:encoded><![CDATA[<p><strong>Aufgabe von vdf als HTML&#8230;</strong></p>
<p>Mittels vdf kann man sich die aktuelle Belegung der VMFS Dateisysteme auf der Serviceconsole vom VMware ESX ausgeben lassen. Da es aber bei der Serviceconsole um ein mehr oder weniger komplettes RHEL3 handelt, kann man sich natürlich die üblichen Skr&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RiK</title>
		<link>http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/comment-page-1/#comment-1161</link>
		<dc:creator>RiK</dc:creator>
		<pubDate>Sat, 20 Sep 2008 01:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.yellow-bricks.com/2008/01/21/checking-the-diskspace-on-your-vmfs-volumes/#comment-1161</guid>
		<description>I love this script, it helps a lot! I&#039;m not a scripter, does anyone know how I could add a row at the bottom with total used/available and overall percent? Thanks!</description>
		<content:encoded><![CDATA[<p>I love this script, it helps a lot! I&#8217;m not a scripter, does anyone know how I could add a row at the bottom with total used/available and overall percent? Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
