aboutsummaryrefslogblamecommitdiff
path: root/mem.sh
blob: e6d93fb29d448c3ef431e3c9770693d2f9972c39 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                   
#!/bin/bash
export JMNAME='MEM'
export JTYPE='linegraph'
function trigger {
    $CLIENT --add "$JID" $(python -c $'import psutil\nprint psutil.virtual_memory().free*.1/2**20')
}
export -f trigger
./monitor_daemon.sh