diff options
Diffstat (limited to 'cpu.sh')
-rwxr-xr-x | cpu.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +#!/bin/bash +export JMNAME='CPU' +export JTYPE='linegraph' +function trigger { + $CLIENT --add "$JID" $(python -c $'import psutil\nimport time\ntime.sleep(1)\nprint psutil.cpu_percent()') +} +export -f trigger +./monitor_daemon.sh |