<?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 file system capacity in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499420#M20623</link>
    <description>Here is a little shell script that uses awk to check for any filesystem that is at 99% or above and then e-mails the appropriate info.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;H=`hostname`&lt;BR /&gt;fs=`bdf -l | awk '&lt;BR /&gt;        /%/ &amp;amp;&amp;amp; ($6 !~ /cdrom/ ) &amp;amp;&amp;amp; ($1 !~ /Filesystem/ ){&lt;BR /&gt;                if ( $1 &amp;gt; 0 )&lt;BR /&gt;                  { split($4,perc,"%"); if (perc[1]&amp;gt;=99) {print h": " $5 " at " $4} }&lt;BR /&gt;                else &lt;BR /&gt;                  { split($5,perc,"%"); if (perc[1]&amp;gt;=99) {print h": " $6 " at "$5} }&lt;BR /&gt;                }&lt;BR /&gt;        ' h=$H`&lt;BR /&gt;if [[ ! -z $fs ]]&lt;BR /&gt;then&lt;BR /&gt;#   echo $fs&lt;BR /&gt;   /usr/bin/mailx -s "Disk problem" your_eamail@address.com  &amp;lt; $fs&lt;BR /&gt;fi&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Feb 2001 16:53:26 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2001-02-28T16:53:26Z</dc:date>
    <item>
      <title>monitoring file system capacity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499418#M20621</link>
      <description>Sometimes my /var file system becomes full.&lt;BR /&gt;&lt;BR /&gt;I need to get warnings in system log when a file system is nearly full.&lt;BR /&gt;&lt;BR /&gt;Is there any program to get that ?&lt;BR /&gt;&lt;BR /&gt;Thanx in advans.&lt;BR /&gt;&lt;BR /&gt;P.D: monitoring system tables as "nproc" and "nfile" is also desired</description>
      <pubDate>Wed, 28 Feb 2001 16:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499418#M20621</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2001-02-28T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring file system capacity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499419#M20622</link>
      <description>Hi,&lt;BR /&gt;What about using Big brother, its a freeware (I think) that does just the job and can do much more, look at:&lt;BR /&gt;&lt;A href="http://bb4.com/" target="_blank"&gt;http://bb4.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I use it and am happy about it...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 28 Feb 2001 16:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499419#M20622</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-02-28T16:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring file system capacity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499420#M20623</link>
      <description>Here is a little shell script that uses awk to check for any filesystem that is at 99% or above and then e-mails the appropriate info.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;H=`hostname`&lt;BR /&gt;fs=`bdf -l | awk '&lt;BR /&gt;        /%/ &amp;amp;&amp;amp; ($6 !~ /cdrom/ ) &amp;amp;&amp;amp; ($1 !~ /Filesystem/ ){&lt;BR /&gt;                if ( $1 &amp;gt; 0 )&lt;BR /&gt;                  { split($4,perc,"%"); if (perc[1]&amp;gt;=99) {print h": " $5 " at " $4} }&lt;BR /&gt;                else &lt;BR /&gt;                  { split($5,perc,"%"); if (perc[1]&amp;gt;=99) {print h": " $6 " at "$5} }&lt;BR /&gt;                }&lt;BR /&gt;        ' h=$H`&lt;BR /&gt;if [[ ! -z $fs ]]&lt;BR /&gt;then&lt;BR /&gt;#   echo $fs&lt;BR /&gt;   /usr/bin/mailx -s "Disk problem" your_eamail@address.com  &amp;lt; $fs&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2001 16:53:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499420#M20623</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-02-28T16:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring file system capacity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499421#M20624</link>
      <description>How about this script?&lt;BR /&gt;bdf | grep -iv filesystem | awk '{print $6 " "$5}' | while&lt;BR /&gt;read LINE; do&lt;BR /&gt;  PERC=`echo $LINE | cut -d "%" -f1 | awk '{ print $2 }'`&lt;BR /&gt;  if [[ $PERC -gt 95 ]]; then&lt;BR /&gt;   echo "${PERC}% ALERT!" | mailx -s "${LINE} on `hostname` is almost full" root&lt;BR /&gt;  fi&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;Hope This Helps!&lt;BR /&gt;&lt;BR /&gt;Rob &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2001 16:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499421#M20624</guid>
      <dc:creator>Robert Smith_1</dc:creator>
      <dc:date>2001-02-28T16:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring file system capacity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499422#M20625</link>
      <description>If you want to monitor nproc and nfile in real time, you may use glance in char mode, hit 't' will show you what is configured and what is current usage.&lt;BR /&gt;If you keep running glance, you may get alarm history if your hitting limits.&lt;BR /&gt;I hope this helps you.</description>
      <pubDate>Wed, 28 Feb 2001 17:34:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499422#M20625</guid>
      <dc:creator>Chris B</dc:creator>
      <dc:date>2001-02-28T17:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring file system capacity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499423#M20626</link>
      <description>Here's an snippit from a script I run daily.  After the function, list the mounts you want to check and the percentage above which you want it to warn at:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;# Disk utilization function&lt;BR /&gt;disk_utilization()&lt;BR /&gt;{&lt;BR /&gt;echo $1 | awk '{x=sprintf("Checking size of %s ............................. ",$0);printf("%18s ",substr(x,1,45))}'&lt;BR /&gt;sz=`bdf | awk -v var=$1 '{if($NF == var){x=sprintf("%d",substr($5,1,(index($5,"%")-1)))}}END{printf("%d",x)}' `&lt;BR /&gt;if [[ $sz -ge $2 ]] then&lt;BR /&gt;  echo "[NG] - ${sz}%  Limit = ${2}%"&lt;BR /&gt;else&lt;BR /&gt;  echo "[OK] - ${sz}%  Limit = ${2}%"&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# List disks to check here -  disk_utilization &lt;MOUNT&gt; &amp;lt;% full threshold&amp;gt; &lt;BR /&gt;disk_utilization /var 85&lt;BR /&gt;disk_utilization /usr 80&lt;BR /&gt;disk_utilization /home 50&lt;BR /&gt;&lt;/MOUNT&gt;</description>
      <pubDate>Thu, 01 Mar 2001 01:44:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-file-system-capacity/m-p/2499423#M20626</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2001-03-01T01:44:40Z</dc:date>
    </item>
  </channel>
</rss>

