aboutsummaryrefslogblamecommitdiff
path: root/cpu.sh
blob: 0487b6f6d81b179241fb0543108959197d0c9560 (plain) (tree)
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\nprint " ".join([str(i) for i in psutil.cpu_percent(1, True)])')
}
export -f trigger
./monitor_daemon.sh