aboutsummaryrefslogtreecommitdiff
path: root/cpu.sh
blob: 935d5155046b233e0599a49acf61dc820ebd5e9f (plain) (blame)
1
2
3
4
5
6
7
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