Cleanup dirs

This commit is contained in:
Ubergeek
2019-01-31 01:19:57 +00:00
parent 7855af95cc
commit afe9b34945
15 changed files with 0 additions and 0 deletions

12
plugins/mem Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
export SITE=$1
ALERT=70
awk '/MemFree/{free=$2} /MemTotal/{total=$2} END{print (free*100)/total}' /proc/meminfo | awk '{printf("%d\n",$1 + 0.5)}' | while read freemem; do
if [ "$freemem" -lt "$ALERT" ]
then
exit 1
fi
done