aboutsummaryrefslogtreecommitdiff
path: root/examples/mem.sh
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2014-12-29 00:34:16 +0800
committerDeterminant <[email protected]>2014-12-29 00:34:16 +0800
commit4c7c9dcdfd05a2d9648756c0da5c68588929ba5d (patch)
tree2c1681ad60e1469b4dda7a2ab6a0d03637dbde1e /examples/mem.sh
parent5dc3a3b043a990fc58a4ead74c2c5c92e910727d (diff)
restructured the project
Diffstat (limited to 'examples/mem.sh')
-rwxr-xr-xexamples/mem.sh8
1 files changed, 8 insertions, 0 deletions
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