Merge remote-tracking branch 'server/master'

This commit is contained in:
Axel Uhl committed 2021-07-23 16:45:31 +09:00
commit 08cb148196
1 file changed
+6
@@ -0,0 +1,6 @@
#!/bin/bash
WARN_THRESHOLD_PERCENT=80
mongo_volume_fill=$( ssh ec2-user@tokyo-ssh.sapsailing.com df /var/lib/mongo | awk '{ print $5; }' | tail -n 1 | sed -e 's/%$//' )
if [ ${mongo_volume_fill} -gt ${WARN_THRESHOLD_PERCENT} ]; then
notify-operators "MongoDB volume on tokyo-ssh.sapsailing.com almost full; currently at ${mongo_volume_fill}%"
fi