LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-03-2009, 05:34 AM   #1
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Rep: Reputation: 15
Notify Space used to users


Hi Friends,

I needed some inputs on this, I am having a system set up with 8 users, all using common workarea and having their email addresses as

user1@abc.com , user2@abc.com etc etc


Now I want to keep track of data usage of each user. Which I can check by du --max-depth=1 -h
This command does a complete traversal and gives details of all the user specific space usage and also total usage.

Now is there is some way out where we can directly email user with status on this particular date, or some kind of auto email send to user moment he crosses critical mark and reaches towards quota usage.
For example All users on one particular day should get an email about their status usage.

Kindly provide your inputs.

THnx in advance.

Cheers,
Sahil
 
Old 04-03-2009, 05:36 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
Why not use the quota system and use the soft limit so that when the users cross the soft limit set for them they will be notified.
 
Old 04-03-2009, 05:43 AM   #3
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
THanks for reply.
Quota system is already there...... I want to know about some script if can be placed and at some particular day , say every 1st of month.
IT sends email to all the 8 users with their status.

How shall i go for this.....need some pointers for that...!!
 
Old 04-03-2009, 05:47 AM   #4
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
Ya quota would be better option, as u don't to monitor the space for specific users, just set a soft limit & hard limit for the user folder and that will be all.on reaching the soft limit the user will be intimated about the usage & on reaching hard limit he wont be able to do any more activity on the folder.

So definitely Quota will be a better option.
 
Old 04-03-2009, 05:54 AM   #5
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Well the whole purpose of script is to notify user with their usage stats at the end of month.
Ex- User1 :- YOur workarea usage for month of Jan is 10 Gb

something like that........!!
 
Old 04-04-2009, 09:40 AM   #6
sathiyamoorthy
Member
 
Registered: Feb 2008
Posts: 32

Rep: Reputation: 15
I dont know whether some script is already there open source or not.

But you can implement with ur requirements specification ? Chose perl which may ease your work in cross checking, and mail sending.
 
Old 04-04-2009, 06:37 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Just run the repquota cmd at the end of the mth.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 01:32 PM
Notify When End Users Install Anything? tbeehler General 2 05-04-2007 12:31 PM
limiting space for new users spooge Linux - General 2 01-28-2006 11:08 AM
how do i limit a users space ? ruwach Linux - Software 2 02-20-2005 08:54 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration