Calculation of disk usage

How is the disk utilization calculated for a Linux server monitor?

Disk utilization (both total disk utilization and partition disk utilization) is calculated by executing the following command:
df -l -T

Consider the following sample output:

disk_used_percent = (used_disk/total_disk) * 100


where,
used_disk = sum of the used spaces of all disk partitions
total_disk = sum of the used and available spaces of all disk partitions (Used + Available)

Note: The resulting value will be rounded off to two floating point values.


    • Related Articles

    • Why am I getting alerts for the disk partitions deleted from the server?

      You might receive alerts for the disk partitions that got deleted from the server because the server monitor might still be monitoring them. If any disk partition is removed from the server, it might not get automatically removed from the server ...
    • How is the total memory utilization calculated for a Linux server monitor?

      Memory utilization is calculated using the "free" command. The output of this command varies according to the Linux distribution used. Case 1: Memory Utilized = ( (Total - Free Memory) / Total * 100 ) where, Free Memory = ( Total - Used + Buffer + ...
    • Average resource utilization by AppLogs agent

      Metrics Windows Linux CPU < 1% 0.3% Memory 40 MB 25 MB Peak network 2 MB in 30 seconds 2 MB in 30 seconds Disk 100 MB 100 MB This resource utilization is subject to change when more log types are associated with a single server or the same AppLogs ...
    • How is the total CPU usage calculated for a Linux server monitor?

      CPU Utilization is calculated using the 'top' command. CPU Utilization = 100 - idle time Eg: idle value = 93.1  CPU Utilization = ( 100 - 93.1 ) = 6.9% If the server is an AWS instance, CPU usage is calculated using the formula: CPU Utilization = 100 ...
    • Setting disk utilization thresholds for server monitors

      The disk utilization thresholds for server monitor monitors the amount of disk used on a machine/server on a per-minute basis. Threshold values for disks can be set via three ways in the Site24x7 web client. Log in to Site24x7 and go to: Admin > ...