<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: need a script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210455#M32749</link>
    <description>See Nagios or such tool, or just parse the output of a &lt;BR /&gt;df -k&lt;BR /&gt;or&lt;BR /&gt;df - h</description>
    <pubDate>Wed, 04 Jun 2008 12:32:13 GMT</pubDate>
    <dc:creator>labadie_1</dc:creator>
    <dc:date>2008-06-04T12:32:13Z</dc:date>
    <item>
      <title>need a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210454#M32748</link>
      <description>Hi Gurus&lt;BR /&gt;&lt;BR /&gt;need a script that reports/informs via email to imv@xyz.org if any of the filesystem is 90%(or more) used &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 04 Jun 2008 11:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210454#M32748</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2008-06-04T11:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: need a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210455#M32749</link>
      <description>See Nagios or such tool, or just parse the output of a &lt;BR /&gt;df -k&lt;BR /&gt;or&lt;BR /&gt;df - h</description>
      <pubDate>Wed, 04 Jun 2008 12:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210455#M32749</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-06-04T12:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: need a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210456#M32750</link>
      <description>It's not quite what you're asking for - but I mail myself this every morning...&lt;BR /&gt;&lt;BR /&gt;----&amp;lt; script start&amp;gt; -------------------&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;disk_ck()&lt;BR /&gt;{&lt;BR /&gt;   echo "\n DISK SYSTEMS"&lt;BR /&gt;   echo   " ------------\n"&lt;BR /&gt;   echo " Disk Utilization sorted by percent utilization"&lt;BR /&gt;   echo " - - - - - - - - - - - - - - - - - - - - - - - "&lt;BR /&gt;   export stat_tmp="/var/tmp/statck.disk.$$"&lt;BR /&gt;   bdf &amp;gt; $stat_tmp&lt;BR /&gt;   head -1 $stat_tmp&lt;BR /&gt;   grep -v ^Filesystem  $stat_tmp | sort -k 5&lt;BR /&gt;&lt;BR /&gt;   echo "\n Disks Over 90% Full "&lt;BR /&gt;   echo   " - - - - - - - - - - "&lt;BR /&gt;   integer FULLCT=`grep -v ^Filesystem  $stat_tmp | \&lt;BR /&gt;                   grep -e "9.%" -e "1..%" | sort -k 5 | wc -l `&lt;BR /&gt;   if [ $FULLCT -gt 0 ]&lt;BR /&gt;   then&lt;BR /&gt;      head -1 $stat_tmp&lt;BR /&gt;      grep -v ^Filesystem  $stat_tmp | grep -e "9.%" -e "1..%" | sort -k 5&lt;BR /&gt;   else&lt;BR /&gt;      echo " ... No filesystems found over 90 percent full"&lt;BR /&gt;   fi&lt;BR /&gt;   rm $stat_tmp&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;disk_ck | sendmail imv@xyz.org&lt;BR /&gt;&lt;BR /&gt;--- &amp;lt; script end &amp;gt;----------------------&lt;BR /&gt;&lt;BR /&gt;You could make a few changes to this to send mail only when needed.  Send all of the output to a tmp file, and use the last "if else" statement above as a basis of whether or not to use sendmail at that point in the execution to send and email to you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jun 2008 18:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210456#M32750</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2008-06-04T18:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: need a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210457#M32751</link>
      <description>Well Maaz, I just realized that script I put is for HPUX, not Linux, because it uses "bdf" instead of "df".  You'd have to do some work to make it work in Linux.  Sorry about the posting error.</description>
      <pubDate>Wed, 04 Jun 2008 18:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210457#M32751</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2008-06-04T18:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: need a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210458#M32752</link>
      <description>Please check:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1212609819425+28353475&amp;amp;threadId=419106" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1212609819425+28353475&amp;amp;threadId=419106&lt;/A&gt;</description>
      <pubDate>Wed, 04 Jun 2008 19:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210458#M32752</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-06-04T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: need a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210459#M32753</link>
      <description>nice help, thanks ;)&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 05 Jun 2008 06:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-a-script/m-p/4210459#M32753</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2008-06-05T06:27:55Z</dc:date>
    </item>
  </channel>
</rss>

