ksar
ksar copied to clipboard
Display statistics for mounted filesystems
Using sar -F
(sadc option -S XDISK) we can get filesystem usage statistics. It would be nice to graph them too. Many thanks.
It seems data is already parsed, but there is no graph definition
<Stat name="misci_mountedfs">
<headerstr>MBfsfree MBfsused %fsused %ufsused Ifree Iused %Iused FILESYSTEM</headerstr>
<graphname>IGNORE</graphname>
</Stat>
I have never seen output for this and doubt this would be really meaningful to plot a graph over time. Nevertheless, please provide some ouput ..
thx
sar -F | head
produces this output:
Linux 5.0.0-37-generic (workstation01) 12/10/2019 _x86_64_ (2 CPU)
12:00:01 AM MBfsfree MBfsused %fsused %ufsused Ifree Iused %Iused FILESYSTEM
12:05:01 AM 5492 2507 31.34 36.66 493580 30708 5.86 /dev/sda5
12:05:01 AM 3364 12699 79.06 84.26 687301 361275 34.45 /dev/sda6
12:05:01 AM 63827 311522 83.00 88.08 24001704 418648 1.71 /dev/mapper/home
12:05:01 AM 28397 3729 11.61 16.76 2052540 44612 2.13 /dev/sda7
12:05:01 AM 8045 18 0.22 5.30 524259 29 0.01 /dev/mapper/vtmp
12:05:01 AM 11287 4775 29.73 34.93 1046667 1909 0.18 /dev/sda8
12:05:01 AM 16083 44 0.27 5.35 1048532 44 0.00 /dev/mapper/tmp
The daily graphics can occasionally be useful. This is for example a normal daily chart, produced by rrdtool. Conversely, if an anomaly occurs during the day (for example, when a new software version begins to occupy disk space), the onset and expiration of the anomaly can help locate the root-cause. rrdtool or any other monitoring do not always work. sadc
monitoring however is active all the time, on all our systems.
Problem: FILESYSTEM is last column instead of first column. kSAR expects the instance as first column after date/time ...