I have not found on the forum how to disable the alerts for disk one mount point in particular which is full of 100% which make me receive alerts every 10 minutes![]()
I have not found on the forum how to disable the alerts for disk one mount point in particular which is full of 100% which make me receive alerts every 10 minutes![]()
Thank you but I don't see solution formy problem, I have already read this thread.
My disk (not USB) is full and will remain so. I need to exclude it from the check![]()
same issue here, any help would be great, thanks
I set the treshold at 120% so I am no longer receiving email![]()
Where can I change that?
in /opt/zimbra/libexec/zmstat-dfmy $DISK_CRIT_THRESHOLD = getLocalConfig("zmdisklog_critical_threshold") || 120;
my $DISK_WARN_THRESHOLD = getLocalConfig("zmdisklog_warn_threshold") || 110;![]()
Or, you can just use the zmlocalconfig variables:
Of course, this just sets the thresholds for all disks. If you want to just disable monitoring for a partition, you can set a custom variable:Code:zmlocalconfig -e zmdisklog_warn_threshold=95 zmlocalconfig -e zmdisklog_critical_threshold=99 zmstatctl stop zmstatctl start
I just use the useful part of the mount point, no need for "/dev/", etc.Code:zmlocalconfig -e zmdisklog_ignore_disks="sdc1"
To ignore more than one partition, separate them by a pipe:
Then, to use the new variable, you modify zmstat-df. Comment out the my $DF line,Code:zmlocalconfig -e zmdisklog_ignore_disks="sda1|sdc1"
and substitute:Code:#my $DF = '/bin/df -k';
Then, stop/start stats:Code:my $IGNORE_DISKS = getLocalConfig("zmdisklog_ignore_disks"); my $DF = "/bin/df -k | /bin/egrep -v \"$IGNORE_DISKS\"";
If you don't want to bother with the variable, you can just be explicit in zmstat-df:Code:zmstatctl stop zmstatctl start
Code:my $DF = '/bin/df -k | /bin/egrep -v sdc1';
Hey, just a note to say this patch is no longer required.
Instead use something likeCode:zmlocalconfig -e zmstat_df_excludes="/mount/point:/mount/point2"
There are currently 1 users browsing this thread. (0 members and 1 guests)