move the disk usage logic to the agent