mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
Merge remote-tracking branch 'server/master'
This commit is contained in:
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
|
||||
Reference in new issue
Block a user