datastax / diagnostic-collection

Diagnostic Collector for Apache Cassandra
Apache License 2.0
28 stars 35 forks source link

df output can wrap breaking the disk space checks #109

Closed michaelsembwever closed 2 years ago

michaelsembwever commented 2 years ago

The output of df can wrap over multiple lines if device names are long. This breaks the disk space checks here and here.

For example

$ df -h /tmp/datastax
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_tmp
                      6.0G  761M  4.9G  14% /tmp

The use of df's --portability option could be helpful, but it is not available on macos.

michaelsembwever commented 2 years ago

being worked on in https://github.com/datastax/diagnostic-collection/pull/111