XavierBerger / RPi-Monitor

Real time monitoring for embedded devices
https://xavierberger.github.io/RPi-Monitor-docs/index.html
GNU General Public License v3.0
1.16k stars 176 forks source link

Storage template does not work for 4TB SSD #396

Open thncode opened 2 years ago

thncode commented 2 years ago

Can someone pls hint me to what may reach overflow here?

Bildschirmfoto 2022-06-21 um 06 31 17

Rgrds, Thomas

gilarelli commented 2 years ago

Hi,

Can you post you configuration file as well as the mount point you want to monitor?

thncode commented 2 years ago

########################################################################

Extract Storage (1-sda1, 2-sda3) information

Page: 1

Information Status Statistics

- storage1 total - yes - yes

- storage1 used - yes - yes

- storage2 total - yes - yes

- storage2 used - yes - yes

######################################################################## static.10.name=storage1_total static.10.source=df -t ext4 static.10.regexp=nvme0n1p1\s+(\d+) static.10.postprocess=$1/1024

static.11.name=storage2_total static.11.source=df -t ext4 static.11.regexp=sdb1\s+(\d+) static.11.postprocess=$1/1024

dynamic.14.name=storage1_used dynamic.14.source=df -t ext4 dynamic.14.regexp=nvme0n1p1\s+\d+\s+(\d+) dynamic.14.postprocess=$1/1024 dynamic.14.rrd=GAUGE

dynamic.15.name=storage2_used dynamic.15.source=df -t ext4 dynamic.15.regexp=sdb1\s+\d+\s+(\d+) dynamic.15.postprocess=$1/1024 dynamic.15.rrd=GAUGE

web.status.1.content.9.name=Storage web.status.1.content.9.icon=usb_hdd.png web.status.1.content.9.line.1="/SSD Used: "+KMG(data.storage1_used,'M')+" ("+Percent(data.storage1_used,data.storage1_total,'M')+") Free: "+KMG(data.storage1_total-data.storage1_used,'M')+ " Total: "+ KMG(data.storage1_total,'M') +"" web.status.1.content.9.line.2=ProgressBar(data.storage1_used,data.storage1_total) web.status.1.content.9.line.3="/mSD Used: "+KMG(data.storage2_used,'M')+" ("+Percent(data.storage2_used,data.storage2_total,'M')+") Free: "+KMG(data.storage2_total-data.storage2_used,'M')+ " Total: "+ KMG(data.storage2_total,'M') +"" web.status.1.content.9.line.4=ProgressBar(data.storage2_used,data.storage2_total)

web.statistics.1.content.9.name=Storage1 web.statistics.1.content.9.graph.1=storage1_total web.statistics.1.content.9.graph.2=storage1_used web.statistics.1.content.9.ds_graph_options.storage1_total.label=Storage1 total space (MB) web.statistics.1.content.9.ds_graph_options.storage1_total.color="#FF7777" web.statistics.1.content.9.ds_graph_options.storage1_used.label=Storage1 used space (MB) web.statistics.1.content.9.ds_graph_options.storage1_used.lines={ fill: true } web.statistics.1.content.9.ds_graph_options.storage1_used.color="#7777FF"

web.statistics.1.content.10.name=Storage2 web.statistics.1.content.10.graph.1=storage2_total web.statistics.1.content.10.graph.2=storage2_used web.statistics.1.content.10.ds_graph_options.storage2_total.label=Storage2 total space (MB) web.statistics.1.content.10.ds_graph_options.storage2_total.color="#FF7777" web.statistics.1.content.10.ds_graph_options.storage2_used.label=Storage2 used space (MB) web.statistics.1.content.10.ds_graph_options.storage2_used.lines={ fill: true } web.statistics.1.content.10.ds_graph_options.storage2_used.color="#7777FF"

thncode commented 2 years ago

UUID=bbc81151-1911-4c76-a705-0ebb0ffd3d4b /media/ssd ext4 auto,nofail,sync,users,rw 0 0