FsPages laisse la place à Gitlab Pages ! Voici la documentation pour vous en servir : https://docs.gitlab.com/ce/user/project/pages/index.html

Public
Snippet $335 authored by cOOb

check disk usage

checkDiskUsage.sh
#/bin/bash 

# http://www.cyberciti.biz/faq/mac-osx-unix-get-an-alert-when-my-disk-is-full/
diskUsage=$(df -Ph  / | grep /dev/sda1 | awk '{ print $5}' | sed 's/%//g')

sizeLimit=85

# If disk usage bigger than size limit then send a message to slack. 
if [ "$diskUsage" -gt "$sizeLimit" ]; then

	username='<user_name>'
	channel='#<chanel_name>'
	message="Disk is ${diskUsage}% used"

#	echo -m "${message}" -u "${username}" -c "${channel}"

	postToSlack  -m "${message}" -u "${username}" -c "${channel}"
fi