Initial clone

This commit is contained in:
Ubergeek
2019-01-31 01:18:23 +00:00
commit 7855af95cc
15 changed files with 894 additions and 0 deletions

12
monurbox-master/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