Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /root/scripts/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/sh drive="/" servername="mail.trisud.com" msg80="Hard disk "$drive" on "$servername" is over 80% full" emails="jbye@net-techs.com stephenb@net-techs.com" output=$(df -P $drive | grep $drive | awk '{ print $5}' | sed 's/%//g') df -h >/root/df.txt #echo $output if [ $output -gt 80 ]; then mutt -x -s "$msg80" -- $emails </root/df.txt echo $drive" "$servername" "$msg80 fi exit 0 |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0084 ]-- |