diff options
Diffstat (limited to 'examples/mem.sh')
-rwxr-xr-x | examples/mem.sh | 8 |
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 |