- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- monitoring file system capacity
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 08:39 AM
02-28-2001 08:39 AM
monitoring file system capacity
I need to get warnings in system log when a file system is nearly full.
Is there any program to get that ?
Thanx in advans.
P.D: monitoring system tables as "nproc" and "nfile" is also desired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 08:48 AM
02-28-2001 08:48 AM
Re: monitoring file system capacity
What about using Big brother, its a freeware (I think) that does just the job and can do much more, look at:
http://bb4.com/
I use it and am happy about it...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 08:53 AM
02-28-2001 08:53 AM
Re: monitoring file system capacity
#!/bin/ksh
H=`hostname`
fs=`bdf -l | awk '
/%/ && ($6 !~ /cdrom/ ) && ($1 !~ /Filesystem/ ){
if ( $1 > 0 )
{ split($4,perc,"%"); if (perc[1]>=99) {print h": " $5 " at " $4} }
else
{ split($5,perc,"%"); if (perc[1]>=99) {print h": " $6 " at "$5} }
}
' h=$H`
if [[ ! -z $fs ]]
then
# echo $fs
/usr/bin/mailx -s "Disk problem" your_eamail@address.com < $fs
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 08:57 AM
02-28-2001 08:57 AM
Re: monitoring file system capacity
bdf | grep -iv filesystem | awk '{print $6 " "$5}' | while
read LINE; do
PERC=`echo $LINE | cut -d "%" -f1 | awk '{ print $2 }'`
if [[ $PERC -gt 95 ]]; then
echo "${PERC}% ALERT!" | mailx -s "${LINE} on `hostname` is almost full" root
fi
done
exit
Hope This Helps!
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 09:34 AM
02-28-2001 09:34 AM
Re: monitoring file system capacity
If you keep running glance, you may get alarm history if your hitting limits.
I hope this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 05:44 PM
02-28-2001 05:44 PM
Re: monitoring file system capacity
#!/usr/bin/sh
# Disk utilization function
disk_utilization()
{
echo $1 | awk '{x=sprintf("Checking size of %s ............................. ",$0);printf("%18s ",substr(x,1,45))}'
sz=`bdf | awk -v var=$1 '{if($NF == var){x=sprintf("%d",substr($5,1,(index($5,"%")-1)))}}END{printf("%d",x)}' `
if [[ $sz -ge $2 ]] then
echo "[NG] - ${sz}% Limit = ${2}%"
else
echo "[OK] - ${sz}% Limit = ${2}%"
fi
}
# List disks to check here - disk_utilization
disk_utilization /var 85
disk_utilization /usr 80
disk_utilization /home 50