[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Quota Notification 550
- Subject: RE: [cobalt-users] Quota Notification 550
- From: Brian Rahill <cobalt@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue Oct 28 08:00:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
At 12:37 PM 10/28/2003 +0000, you wrote:
Might be worth having a look into the swatch.conf and see if anything is
wrong there, as I understand it this is the routine that runs every 15 min
to check things like disk quotas and other server based things. So it pretty
well must be something either in there or something called by it which has
ceased operations.
Well it looks like the file:
/usr/sausalito/swatch/bin/am_disk.pl
handles the emailing, etc. and it looks like it's coded to only send mail
once the site goes over quota.
Here's the top of the file:
#!/usr/bin/perl
# $Id: am_disk.pl,v 1.9.2.5 2002/03/20 09:03:21 uzi Exp $
#
# Email is sent to admin for everyone who is over their quota
# at 4am.
#
# Email is sent to users the instant they are over their quota,
# at most once a day.
#
This isn't very helpful since if the users are over quota they won't get
the mail anyway....it bounces because it can't write to their mailbox....
On my 4r it emails when users get close to being over quota like 90% or 95%
-- which is much more helpful since we can increase their quota or delete
some files before disaster strikes.
It looks like their is code in there to check percentages but just not to
fire off the email at these percentages.
if (!defined($ENV{red_pcnt})) {
$ENV{red_pcnt} = 95;
}
if (!defined($ENV{yellow_pcnt})) {
$ENV{yellow_pcnt} = 90;
}
Wish I knew a bit more perl and could fix this, but it looks like a stock
Raq550 thing. I'm surprised I haven't heard other complaints about this.
Brian