[SAC] [OSGeo] #159: We Need Low Disk notifier on osgeo1 and osgeo2
OSGeo
trac_osgeo at osgeo.org
Thu Oct 18 08:25:28 EDT 2007
#159: We Need Low Disk notifier on osgeo1 and osgeo2
----------------------+-----------------------------------------------------
Reporter: warmerdam | Owner: sac at lists.osgeo.org
Type: task | Status: new
Priority: normal | Component: SAC
Keywords: |
----------------------+-----------------------------------------------------
Could something put in place a script on osgeo1 and osgeo2 to notify the
SAC list when disk space falls below some threshhold like 5GB? Mateusz
suggests a script something like:
{{{
#!/bin/sh
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' |
while read output;
do
echo $output
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
partition=$(echo $output | awk '{ print $2 }' )
if [ $usep -ge 90 ]; then
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as
on $(date)" |
mail -s "Alert: Almost out of disk space $usep%" you at somewhere.com
fi
done
}}}
I've done my threshold of remote system admin over my sat link ... so
painful!
It might also make sense to put something like this on key telascience
servers with a smaller activation point.
--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/159>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Sac
mailing list