Back to Geneos FAQ

How does the Disk Plugin calculate totalSpace of the partition in Linux?

The Netprobe uses the function statfs() to gather this information about specific mounted file systems.

The value of totalSpace of disk shown in Disk sampler is based on the total value of “Used” & “Available” columns and not from “1K-blocks” as it might be expected.

df command output:

8051916136349 mceclip0

In this example, we are looking at the /boot partition on a Linux machine.

i.e. ( 308772 + 729564) / 1024 is approximately 1014Mb.

Disk sampler dataview:

8051895132317 mceclip1

Please also note that the total value of “Used” & “Available” columns might not be equivalent with “1K-blocks” column due to blocks that are reserved for root.

["Geneos"] ["Geneos > Netprobe"] ["FAQ"]

Was this topic helpful?