[SAC] [OSGeo] #159: We Need Low Disk notifier on osgeo1 and osgeo2

#159: We Need Low Disk notifier on osgeo1 and osgeo2
----------------------+-----------------------------------------------------
Reporter: warmerdam | Owner: sac@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@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&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#159: We Need Low Disk notifier on osgeo1 and osgeo2
------------------------+---------------------------------------------------
  Reporter: warmerdam | Owner: sac@lists.osgeo.org
      Type: task | Status: new
  Priority: normal | Component: SAC
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by mloskot):

The script above was taken from NIXCRAFT website,
[http://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html
Shell script to watch the disk space]

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/159#comment:1&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#159: We Need Low Disk notifier on osgeo1 and osgeo2
---------------------------+----------------------
Reporter: warmerdam | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone:
Component: Systems Admin | Resolution: wontfix
Keywords: |
---------------------------+----------------------
Changes (by wildintellect):

* status: new => closed
* resolution: => wontfix

Comment:

We no longer have osgeo1 and osgeo2. Current systems send munin
notifications.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/159#comment:2&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.