sensu-plugins / sensu-plugins-disk-checks

This plugin provides native disk instrumentation for monitoring and metrics collection, including: health, usage, and various metrics.
http://sensu-plugins.io
MIT License
27 stars 63 forks source link

"More accurate disk percent usage" #157 change produces strange numbers #161

Open VeselaHouba opened 3 years ago

VeselaHouba commented 3 years ago

I appreciate @SaviourSelf work #157 as now the warning comes before it's too late, but we found some strange numbers: In version 5.1.2

CheckDisk CRITICAL: /backup 100.14% bytes usage (10.46 TiB/10.55 TiB)

Old version 5.1.1

CheckDisk WARNING: /backup 99.14% bytes usage (10.46 TiB/10.55 TiB)

Check definition

check-disk-usage.rb -r -w 75 -c 90 -l 20 -m 0.8 -x proc,tmpfs,aufs,nsfs,debugfs,tracefs,nfs,nfs4 -p '/var/lib/docker/'

df numbers

# df -h /backup/
Filesystem              Size  Used Avail Use% Mounted on
/dev/mapper/vg0-backup   11T   11T   94G 100% /backup