diff --git a/check_odoo_storage.sh b/check_odoo_storage.sh index f5e08ec3eb7607d080a2f22b67d80b99e991cbb7..17e43fc85b263d6cbae185fc475e780c143d4964 100755 --- a/check_odoo_storage.sh +++ b/check_odoo_storage.sh @@ -12,7 +12,7 @@ do BYTES=$(grep "Bytes:" $file | cut -d ":" -f 2 | tr -d " ") OBJECTS=$(grep "Objects:" $file | cut -d ":" -f 2 | tr -d " ") LAST_FILE=$(tail -2 $file | grep gpg) - if [ `date -d "${LAST_FILE:5:19}" +%s` -gt `date -d '7 days ago' +%s` ] + if [ `date -d "${LAST_FILE:5:19}" +%s` -gt `date -d '1 day ago' +%s` ] then OUTPUT+="OK: Container: $CONTAINER, Size: $BYTES, # Files: $OBJECTS, Last-Modified: ${LAST_FILE:5:19}\n" else