Or, you can just use the zmlocalconfig variables:
Code:
zmlocalconfig -e zmdisklog_warn_threshold=95
zmlocalconfig -e zmdisklog_critical_threshold=99
zmstatctl stop
zmstatctl start
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_ignore_disks="sdc1"
I just use the useful part of the mount point, no need for "/dev/", etc.
To ignore more than one partition, separate them by a pipe:
Code:
zmlocalconfig -e zmdisklog_ignore_disks="sda1|sdc1"
Then, to use the new variable, you modify zmstat-df. Comment out the my $DF line,
Code:
#my $DF = '/bin/df -k';
and substitute:
Code:
my $IGNORE_DISKS = getLocalConfig("zmdisklog_ignore_disks");
my $DF = "/bin/df -k | /bin/egrep -v \"$IGNORE_DISKS\""; Then, stop/start stats:
Code:
zmstatctl stop
zmstatctl start
If you don't want to bother with the variable, you can just be explicit in zmstat-df:
Code:
my $DF = '/bin/df -k | /bin/egrep -v sdc1';