« Content Sync For Load Balancer With UnisonDisable Qmail Double Bounces »

Change ZimbraMon Disk Thresholds

03/08/09

Permalink 02:34:03 pm, by admin Email , 130 words   English (US)
Categories: Project Gallery

Change ZimbraMon Disk Thresholds

Edit the file at:

/opt/zimbra/libexec/zmdisklog

Look for these lines:

my $DISK_CRIT_THRESHOLD = 90;
my $DISK_WARN_THRESHOLD = 80;

Change them as desired to give different warning/critical levels.

In one case that we worked on, the server had multiple partitions. We wanted different thresholds on each partition which was accomplished with the following patch:

--- zmdisklog.orig 2009-03-08 15:10:26.000000000 -0400
+++ zmdisklog 2009-03-08 15:13:21.000000000 -0400
@@ -77,8 +77,12 @@
my (undef, $total, $used, $avail) = split(/\s+/, $df[0]);
my $pct=int(($used/$total)*100) if ($total > 0);
my $lvl = "info";
+if ($dev eq "/dev/sdb1") {
+ $lvl = "err" if ($pct > 95);
+} else {
$lvl = "err" if ($pct > $DISK_WARN_THRESHOLD);
$lvl = "crit" if ($pct > $DISK_CRIT_THRESHOLD);
+};
if ($lvl eq "info") {
Zimbra::Mon::Logger::Log( "$lvl", "$dt, DISK: ${hostname}: dev: $dev, mp: $mp, tot: $total, avail: $avail" );
} else {

1 comment

Comment from: Rajnikant Sharma [Visitor] Email · http://www.3dblueprint.in
*****
Dear sir, i receive this mail every ten minutes, how can i solve this problem

we are not able to send mail as is says insufficient space problem.


Jul 28 18:10:03 3dserver zimbramon[19660]: 19660:err: Disk warning: 3dserver.3dbp.in /dev/mapper/ddf1_3draidp2 at 89%

Jul 28 18:10:03 3dserver zimbramon[19660]: 19660:crit: Disk warning: 3dserver.3dbp.in /dev/mapper/ddf1_3draidp1 at 94%

Regards

Rajnikant
07/28/10 @ 07:51

This post has 10 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
September 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Reliable Penguin offers Linux Server Migrations, Systems Administration & Programming. Visit our main website at:

http://www.reliablepenguin.com

Search

Bookmark and Share

XML Feeds

powered by b2evolution