HBMonv2/sysinfo/rrd-db.sh

53 lines
1.1 KiB
Bash
Raw Normal View History

2021-01-06 07:25:44 -05:00
#!/bin/sh
# Db for temperature CPU
2021-02-22 07:22:21 -05:00
rrdtool create /opt/HBMonv2/sysinfo/tempC.rrd \
2021-01-06 07:25:44 -05:00
--step 300 \
DS:temp:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:288 \
RRA:AVERAGE:0.5:3:672 \
RRA:MIN:0.5:1:288 \
RRA:MIN:0.5:3:672 \
RRA:MAX:0.5:1:288 \
RRA:MAX:0.5:3:672 \
RRA:LAST:0.5:1:288 \
RRA:LAST:0.5:3:672
# Db for memory usage
2021-02-22 07:22:21 -05:00
rrdtool create /opt/HBMonv2/sysinfo/mem.rrd \
2021-01-06 07:25:44 -05:00
--step 300 \
DS:mem:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:288 \
RRA:AVERAGE:0.5:3:672 \
RRA:MIN:0.5:1:288 \
RRA:MIN:0.5:3:672 \
RRA:MAX:0.5:1:288 \
RRA:MAX:0.5:3:672 \
RRA:LAST:0.5:1:288 \
RRA:LAST:0.5:3:672
# Db for disk usage
2021-02-22 07:22:21 -05:00
rrdtool create /opt/HBMonv2/sysinfo/hdd.rrd \
2021-01-06 07:25:44 -05:00
--step 300 \
DS:hdd:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:288 \
RRA:AVERAGE:0.5:3:672 \
RRA:MIN:0.5:1:288 \
RRA:MIN:0.5:3:672 \
RRA:MAX:0.5:1:288 \
RRA:MAX:0.5:3:672 \
RRA:LAST:0.5:1:288 \
RRA:LAST:0.5:3:672
# Db for CPU load
2021-02-22 07:22:21 -05:00
rrdtool create /opt/HBMonv2/sysinfo/load.rrd -s 60 \
2021-01-06 07:25:44 -05:00
DS:load1:GAUGE:180:0:U \
DS:load5:GAUGE:180:0:U \
DS:load15:GAUGE:180:0:U \
DS:cpuuser:COUNTER:180:0:100 \
DS:cpunice:COUNTER:180:0:100 \
DS:cpusystem:COUNTER:180:0:100 \
RRA:AVERAGE:0.5:1:1440 \
RRA:AVERAGE:0.5:1440:1 \
RRA:MIN:0.5:1440:1 \
RRA:MAX:0.5:1440:1