initial
This commit is contained in:
commit
818f7abbe2
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#notify on reboot
|
||||||
|
|
||||||
|
. func.sh
|
||||||
|
send "Server%20started."
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# the main bot script
|
||||||
|
|
||||||
|
#hdd usage
|
||||||
|
used=$(df --output=pcent /dev/sda3 | tail -1 | grep -Po "(\\d+)" --color=never)
|
||||||
|
if [ "$used" -gt 50 ]; then
|
||||||
|
. func.sh
|
||||||
|
echo "warn!"
|
||||||
|
send "warnung%20server%20used%20$used%25%20of%20the%20storage!"
|
||||||
|
fi
|
Loading…
Reference in New Issue