M/Monit how to see current disk space

disk-space-utilizationmonitsystem-monitoring

In the admin interface of M/Monit under Reports -> Analytics I can chose to show Space %.

  1. How can I make the Monit clients submit this info?
  2. Is there a way to display Disk Space percentage on the Status page besides %Cpu and %Mem?

I have found that I can set alerts if disk space is running out (will do that, but would like to have an overview as well).

Best Answer

You can see this information on the Reports -> Analytics page.

enter image description here

Your Monit config needs to have disk checks for the filesystems you require:

check device root with path /
    if SPACE usage > 80% then alert

check device var with path /var
    if SPACE usage > 80% then alert

check device usr with path /usr
    if SPACE usage > 80% then alert

check device tmp with path /tmp
    if SPACE usage > 80% then alert

There's no way to add disk space to the overview graph. It wouldn't make sense from a design or UI perspective.

enter image description here