Difference between revisions of "Disable Disk Space Monitoring for Loop Devices"

(Created page with "{{BC|Certified}} __FORCETOC__ <div class="col-md-12 ibox-content"> ==Disable Disk Space Monitoring for Loop Devices== <hr> {{KB|{{WIP}}|{{ZCS 9.0}}|{{ZCS 8.8}}|{{ZCS 8.7}}|}}...")
Line 52: Line 52:
|'''Submitted by''':  Heera Singh Koranga
|'''Submitted by''':  Heera Singh Koranga
{{Article Footer|ZCS 9.0,8.8,8.7|2020-09-27}}
{{Article Footer|ZCS 9.0,8.8,8.7|2020-09-26}}

Latest revision as of 20:59, 26 September 2020

Disable Disk Space Monitoring for Loop Devices

   KB 24161        Last updated on 2020-09-26  

(0 votes)


1st Scenario: Ubuntu VMs on AWS and Oracle Cloud are generating 100% disk space utilization alert continuously.

2nd Scenario: Exclude a specific volume from disk monitoring.

Sample 'df -Th' output:

zimbra@mail:~$ df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  7.9G     0  7.9G   0% /dev
tmpfs          tmpfs     1.6G  162M  1.5G  11% /run
/dev/sda1      ext4       97G  9.7G   88G  10% /
tmpfs          tmpfs     7.9G     0  7.9G   0% /dev/shm
tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs          tmpfs     7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/sda15     vfat      105M  3.6M  101M   4% /boot/efi
/dev/loop6     squashfs   25M   25M     0 100% /snap/oracle-cloud-agent/8
/dev/loop1     squashfs   55M   55M     0 100% /snap/core18/1880
/dev/loop2     squashfs   42M   42M     0 100% /snap/oracle-cloud-agent/9
tmpfs          tmpfs     1.6G     0  1.6G   0% /run/user/1000
/dev/loop5     squashfs   56M   56M     0 100% /snap/core18/1885
/dev/loop0     squashfs   97M   97M     0 100% /snap/core/9804
/dev/loop4     squashfs   98M   98M     0 100% /snap/core/9993


Exclude all loop devices from the monitoring.

su - zimbra 
zmlocalconfig -e zmstat_df_excludes='/dev/loop0:/dev/loop1:/dev/loop2:/dev/loop3:/dev/loop4:/dev/loop5:/dev/loop6'
zmstatctl restart 

Note: There was a bug on old ZCS versions where changing 'zmstat_df_excludes' values do not take affect until logrotate happens.

Submitted by: Heera Singh Koranga
Verified Against: ZCS 9.0,8.8,8.7 Date Created: 2020-09-26
Article ID: https://wiki.zimbra.com/index.php?title=Disable_Disk_Space_Monitoring_for_Loop_Devices Date Modified: 2020-09-26

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search