<?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: monitoring filesystem growth in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007082#M298255</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Several ways to do it in this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Scripts with email alarms, all kinds of good stuff.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 25 May 2007 04:36:21 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-05-25T04:36:21Z</dc:date>
    <item>
      <title>monitoring filesystem growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007081#M298254</link>
      <description>Hi,&lt;BR /&gt;Being a new HP-UX sysadmin, I wonder if anyone has a script to monitor filesystem growth on daily basis. &lt;BR /&gt;&lt;BR /&gt;I have experienced an unfortunate incident whereby one of our critical filesytem grow so rapidly, causing application failure. &lt;BR /&gt;&lt;BR /&gt;I've created a small script to capture the filesystem utilization. But at this moment the comparison is done manually. &lt;BR /&gt;&lt;BR /&gt;Appreciate all your input. Thanks.</description>
      <pubDate>Fri, 25 May 2007 04:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007081#M298254</guid>
      <dc:creator>Abe Li Kito</dc:creator>
      <dc:date>2007-05-25T04:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring filesystem growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007082#M298255</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Several ways to do it in this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Scripts with email alarms, all kinds of good stuff.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 May 2007 04:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007082#M298255</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-25T04:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring filesystem growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007083#M298256</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Here's one I use:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;typeset -i MAXPCT=90&lt;BR /&gt;BDFMEGS=/path/to/bdfmegs.sh&lt;BR /&gt;&lt;BR /&gt;if [ $(${BDFMEGS} -qlP ${MAXPCT} | wc -l) -gt 1 ]&lt;BR /&gt;then&lt;BR /&gt;    mailx -m -s "WARNING! FILESYSTEM(S) OVER ${MAXPCT}% FULL!" your@email.addr &amp;lt;&amp;lt; EOF&lt;BR /&gt;File-System           Gbytes    Used   Avail %Used Mounted on&lt;BR /&gt;$(${BDFMEGS} -qglP ${MAXPCT})&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;It relies on Bill Hassell's bdfmegs.sh shell script (attached).  Schedule it to run every 10 minutes or so via cron.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 25 May 2007 06:59:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007083#M298256</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-05-25T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring filesystem growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007084#M298257</link>
      <description>Hello (again),&lt;BR /&gt;&lt;BR /&gt;For execution every 10 minutes, your crontab entry should be similar to the following:&lt;BR /&gt;&lt;BR /&gt;5,15,25,35,45,55 * * * *  /path/to/check_fs_usage.sh&lt;BR /&gt;&lt;BR /&gt;Note that a potential problem ("feature"?) with the script I supplied is there is no mechanism to stop emails from being sent after the initial one.  This could be resolved quite easily by modifying the script to make use of a lockfile.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 25 May 2007 07:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007084#M298257</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-05-25T07:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring filesystem growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007085#M298258</link>
      <description>hi ALK,&lt;BR /&gt;We use the following script for filesystem  monitoring...it sends 3 alrm beeps to all logged in guys and a message too..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/check_bdf.sh&lt;BR /&gt;count=0&lt;BR /&gt;&lt;BR /&gt;function check_bdf&lt;BR /&gt; {&lt;BR /&gt;&amp;gt; /tmp/bdflog.txt&lt;BR /&gt;&lt;BR /&gt;bdf -l | awk '$0 !~ /^F/' |awk '{if (NF!=1){&lt;BR /&gt;   if (NF==5){&lt;BR /&gt;               print $4"\t" $5"\t"&lt;BR /&gt;             }&lt;BR /&gt;         else{&lt;BR /&gt;               print $5"\t\t" $6"\t"&lt;BR /&gt;             }&lt;BR /&gt;     }}' | sed 's/'%'/''/' &amp;gt;&amp;gt; /tmp/bdflog.txt&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;function alert&lt;BR /&gt; {&lt;BR /&gt;&lt;BR /&gt;while read percent dir&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;if [ $percent -ge 95 ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;for i in `who|awk '{printf ("/dev/"$2"\n")}'`&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;echo "----------------------------------------------------------" &amp;gt; $i&lt;BR /&gt;echo "WARNING :" $dir "-----------&amp;gt; " $percent"% full " &amp;gt; $i&lt;BR /&gt;echo " PLZ CONTACT SYSTEM ADMINISTRATOR AT 4238xxxx/4240xxxx (CDC TEAM)" &amp;gt; $i&lt;BR /&gt;echo "----------------------------------------------------------" &amp;gt; $i&lt;BR /&gt;echo "\a" &amp;gt; $i&lt;BR /&gt;sleep 1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;} &amp;lt; /tmp/bdflog.txt&lt;BR /&gt;&lt;BR /&gt;alert&lt;BR /&gt;#check_bdf                         #  create a bdf log file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while [ $count -lt 2 ]&lt;BR /&gt;do&lt;BR /&gt;check_bdf&lt;BR /&gt;alert&lt;BR /&gt;&lt;BR /&gt;count=$(($count + 1))&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2007 00:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007085#M298258</guid>
      <dc:creator>boomer_2</dc:creator>
      <dc:date>2007-05-28T00:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring filesystem growth</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007086#M298259</link>
      <description>Here is a script that will monitor all your filesystems and will provide notifications by several different methods without a storm of messages. You create a config file in /etc/diskspace.conf and run the script every 15 minutes (or more often if you need to faster response). You can send messages to pagers, cellphones, your operation center, and log the information in syslog.</description>
      <pubDate>Mon, 28 May 2007 22:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-filesystem-growth/m-p/4007086#M298259</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-05-28T22:11:40Z</dc:date>
    </item>
  </channel>
</rss>

