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