Changeset 4c15f05


Ignore:
Timestamp:
07/31/13 09:53:21 (15 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
ccffc93
Parents:
8c2bd1a
Message:

Set alert flag when disk usage warning is thrown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/zfsmon.sh

    r8c2bd1a r4c15f05  
    2424haveMsg=0 
    2525 
     26# Remove the old du alert flag 
     27if [ -e "${DBDIR}/zpool-alert-du" ] ; then rm ${DBDIR}/zpool-alert-du ; fi 
     28 
    2629zpool list  | grep -v "^NAME" > /tmp/.lPreserver-df.$$ 
    2730while read line 
     
    3235      if [ $cap -gt $DUWARN ] ; then 
    3336         queue_msg "Warning! ${zpool} is currently at ${cap}% capacity!"         
     37         echo "$cap" > $DBDIR/zpool-alert-du 
    3438         haveMsg=1 
    3539      fi 
Note: See TracChangeset for help on using the changeset viewer.