Required to monitor vmdk
search cancel

Required to monitor vmdk


Article ID: 207310


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM)


Need to monitor vmdk for vmware through UIM. Please provide required information.


Release : 9.0.2

Component : UIM - VMWARE


This is not supported out of the box but you can use the logmon probe to run a command or the nexec probe for vmdk's and size.

Determine disk usage with the command line

Open a SSH connection to the ESXi host and navigate to the virtual machine folder. To identify the virtual machines directory I usually use the "esxcli vm process list" command.

The ls -lh command displays the configured size, to which the file can grow. The provisioned size is 10 GB.

root@esx3:/vmfs/volumes/ds1/vma $ ls -lh vma_1-flat.vmdk
-rw------- 1 root root 10.0G Nov 7 10:10 vma_1-flat.vmdk

The du -h (Disk Usage) command displays the actual size of the virtual disk. 

root@esx3:/vmfs/volumes/ds1/vma $ du -h vma_1-flat.vmdk
6.2G vma_1-flat.vmdk

You can also use the "stat" command to display the number of used blocks and the block size. This file has 12951552 blocks with a blocksize of 512 bytes.

12951552 * 512 bytes = 6,631,194,624 = 6,2 GB

root@esx10:/vmfs/volumes/ds1/vma $ stat -c %b*%B vma_1-flat.vmdk