aboutsummaryrefslogtreecommitdiff
path: root/mem.sh
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2014-12-27 13:29:20 +0800
committerDeterminant <ted.sybil@gmail.com>2014-12-27 13:29:20 +0800
commit30c896841c65c78cb4cf048c0c26c8e62ee0cf05 (patch)
tree5fb076c5a373b3ffa2e25842f47fe2e64dd7b6bc /mem.sh
init
Diffstat (limited to 'mem.sh')
-rwxr-xr-xmem.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/mem.sh b/mem.sh
new file mode 100755
index 0000000..e6d93fb
--- /dev/null
+++ b/mem.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+export JMNAME='MEM'
+export JTYPE='linegraph'
+function trigger {
+ $CLIENT --add "$JID" $(python -c $'import psutil\nprint psutil.virtual_memory().free*.1/2**20')
+}
+export -f trigger
+./monitor_daemon.sh