<?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: Auto email when mountpoint exceeds 90% in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007354#M127771</link>
    <description>Hi Peter:&lt;BR /&gt;&lt;BR /&gt;This question was asked just this morning.  There are various scripts in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 25 Jun 2003 14:38:56 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2003-06-25T14:38:56Z</dc:date>
    <item>
      <title>Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007353#M127770</link>
      <description>HP-UX newbie here. Was wondering how it would be possible to have UX auto-sense/send me an email when a mountpoint exceeds 90% utilization. Perhaps pulling info from a BDF?&lt;BR /&gt;Any help/utilities/suggestions would be awesome. Thanks. :)</description>
      <pubDate>Wed, 25 Jun 2003 14:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007353#M127770</guid>
      <dc:creator>Peter A. Berger Jr.</dc:creator>
      <dc:date>2003-06-25T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007354#M127771</link>
      <description>Hi Peter:&lt;BR /&gt;&lt;BR /&gt;This question was asked just this morning.  There are various scripts in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Jun 2003 14:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007354#M127771</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-25T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007355#M127772</link>
      <description>I have this script, which runs from cron every day:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;THRESHHOLD="9[0-9]%"&lt;BR /&gt;THRESHHOLD1="100%"&lt;BR /&gt;NOTIFY="sysadmins"&lt;BR /&gt;HOSTNAME=`hostname`&lt;BR /&gt;for FILESYSTEM in `bdf -l | grep -e $THRESHHOLD -e $THRESHHOLD1| awk -v HOSTNAME =\`hostname\` '{print $6":"HOSTNAME":"$5}'`&lt;BR /&gt;do&lt;BR /&gt;        MESSAGE=`echo $FILESYSTEM | awk -F: '{print "The " $1 " file system on "&lt;BR /&gt; $2 " is at " $3 " utilization"}'`&lt;BR /&gt;        mailx -s "$MESSAGE" my_mail_address.com &amp;lt; /dev/null&lt;BR /&gt;done</description>
      <pubDate>Wed, 25 Jun 2003 14:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007355#M127772</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-06-25T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007356#M127773</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Put this simple script in cron. Man "cron" for more details. Depending on how often you want to check the usage, you will need to decide the interval. Run it manually and see if it works as it is supposed to.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#Add the mount points below&lt;BR /&gt;MOUNTS="/db001 /db002 /home /perf"&lt;BR /&gt;&lt;BR /&gt;#Replace this with your id&lt;BR /&gt;MYMAIL=your_id@yourmail.com&lt;BR /&gt;&lt;BR /&gt;THRESHOLD=90&lt;BR /&gt;&lt;BR /&gt;STAMP=0&lt;BR /&gt;&lt;BR /&gt;for MOUNT in $MOUNTS&lt;BR /&gt;do&lt;BR /&gt;USED=$(df -k $MOUNT |awk '/% allocation used/ {print $1}')&lt;BR /&gt;if [ $USED -ge $THRESHOLD ]&lt;BR /&gt;then&lt;BR /&gt;echo $MOUNT: $USED  &amp;gt;&amp;gt; /tmp/mount$$&lt;BR /&gt;STAMP=1&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;if [ $STAMP = 1 ]&lt;BR /&gt;then&lt;BR /&gt;mail /tmp/mount$$&lt;BR /&gt;fi&lt;BR /&gt;mailx -s "Filesystem Usage Report" $MYMAIL &amp;lt; /tmp/mount$$&lt;BR /&gt;&lt;BR /&gt;rm -f /tmp/mount$$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 25 Jun 2003 14:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007356#M127773</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-06-25T14:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007357#M127774</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Various ways,&lt;BR /&gt;&lt;BR /&gt;1. Glance / Measureware - Very good monitoring and trending product, that can be used to set alarms for Disk Space used and to alert based on these.&lt;BR /&gt;&lt;BR /&gt;2. Scripting - As in the above posting, you can write a script to monitor space and report. However, you need to judge how quickly you need to know about the lvol reaching the limit. You also need to cater for exceptions (database filesystems can be exempted, as can other static filesystems like copies of CDs, etc).&lt;BR /&gt;&lt;BR /&gt;Bdf can be used to good effect for scripting, but you have to watch the double-line effect&lt;BR /&gt;&lt;BR /&gt;eg. /dev/vgXXX/lvol22     # End line 1&lt;BR /&gt;          222222 3333333 444444 59% /mntpt1 # End Line 2&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 14:45:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007357#M127774</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-06-25T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007358#M127775</link>
      <description>bdf| grep -v "Filesystem" | awk 'BEGIN { } NF == 1 { first=$1 ;break} NF != 6 { print first" "$1" "$2" "$3" "$4" "$5 }&lt;BR /&gt;        NF == 6 { print $1" "$2" "$3" "$4" "$5" "$6 }' |awk '$1 !~ /:/ { print $0 }'&lt;BR /&gt;&lt;BR /&gt;Sorry, here's the code to bring bdf back to single lines for each entry (excluding NFS Mounts).&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Wed, 25 Jun 2003 14:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007358#M127775</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-06-25T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto email when mountpoint exceeds 90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007359#M127776</link>
      <description />
      <pubDate>Wed, 25 Jun 2003 19:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-email-when-mountpoint-exceeds-90/m-p/3007359#M127776</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-06-25T19:57:34Z</dc:date>
    </item>
  </channel>
</rss>

