Files
monitor/monitorTop.sh
2025-03-24 21:33:34 +00:00

8 lines
187 B
Bash
Executable File

#!/bin/bash
# rrd_update(os.path.join(SUBFOLDER, 'load.rrd'), 'N:{0}:{1}:{2}'.f
IFS=' ' read -r -a 'HH' <<< "$(cat /proc/loadavg)"
rrdtool update load.rrd N:${HH[0]}:${HH[1]}:${HH[2]}