From 4c7c9dcdfd05a2d9648756c0da5c68588929ba5d Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 29 Dec 2014 00:34:16 +0800 Subject: restructured the project --- examples/mem.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 examples/mem.sh (limited to 'examples/mem.sh') diff --git a/examples/mem.sh b/examples/mem.sh new file mode 100755 index 0000000..e8a3df6 --- /dev/null +++ b/examples/mem.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export JMNAME='RAM' +export JTYPE='linegraph' +function trigger { + $CLIENT --add "$JID" $(python -c $'import psutil\nprint psutil.virtual_memory().percent') +} +export -f trigger +./monitor_daemon.sh -- cgit v1.2.3-70-g09d2