Web Hosting Talk







View Full Version : Disk Space


davarious
01-17-2002, 04:20 PM
How can i monitor how many disk space a user will use...
i use now a program that is monitoring how many data-traffic the user has been used, i have installed the crontab that he must refresh that monitoring of the data-traffic,, and that works fine...
that program is webalizer..

but my question is...
the same thins as monitoring the data-triffic but now for the disk-space is using the user...


does anyone knows a realy good program for it?

davarious
01-17-2002, 04:22 PM
i use a disk-space monitor program that's named: PHPsysinfo
that program will monitor your whole linux server...

but that program is monitoring the system global...

i must have a program that is monitoring user by user...


understand???

priyadi
01-17-2002, 04:38 PM
Use 'repquota -a' and use cron to mail the output to you daily.

0 0 * * * repquota -a | mail your@address

davarious
01-17-2002, 05:38 PM
i have just add a new file in my /etc dir
named: cronjob

i have put there 0,30 **** repquota -a | mail my@email.com

know he will sent me an email every half hour...

is this command line correctly for the repquota ??

davarious
01-17-2002, 05:41 PM
he have send the mail...
only the post is empty!!

look..

Date: Thu, 17 Jan 2002 22:31:00 +0100
From: "root" <root@server> | Block Address | Add to Address Book

To: my@mail.com

if i send an mail to my linux server himself...
he will display:

Message 1:
From root Thu Jan 17 22:31:00 2002
Date: Thu, 17 Jan 2002 22:31:00 +0100
From: root@server (Cron Daemon)
To: root@server
Subject: Cron <root@server> repquota -a | mail my@email.com
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>

/bin/sh: repquota: command not found
No message, no subject; hope that's ok


what i'm doing wrong?

311
01-17-2002, 05:47 PM
If you have a control panel on your server just log-into it and then check your server stats...

davarious
01-17-2002, 06:09 PM
What control panle do you mean ??

Originally posted by 311
If you have a control panel on your server just log-into it and then check your server stats...

NexDog
01-17-2002, 08:33 PM
Don't you have a control panel like Plesk, CPanel or Ensim? Who is your server with? How are your clients managing their accounts?

elsmore1
01-18-2002, 02:32 AM
The email you got had an error message which indicated that the command repquota was not found, which means that if repquota is on the server, it is not in any of the directories in the PATH environment variables available to your shell under cron. :)

repquota may be in /usr/sbin or some other directory, which you will need to specify in your command.

first... do 'locate repquota' to find out where it is...
then modify your crontab to include the full path to repquota, as in...

0,30 **** /usr/sbin/repquota -a | mail my@email.com




Originally posted by davarious
he have send the mail...
only the post is empty!!

look..

Date: Thu, 17 Jan 2002 22:31:00 +0100
From: "root" <root@server> | Block Address | Add to Address Book

To: my@mail.com

if i send an mail to my linux server himself...
he will display:

--snip--
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
--snip--

/bin/sh: repquota: command not found
No message, no subject; hope that's ok


what i'm doing wrong?

priyadi
01-18-2002, 03:34 AM
Do you really need to check for disk usage that often? Every half an hour is a bit too often for that. Or do you have other reasons?

davarious
01-18-2002, 08:41 AM
noooo!!... not every half hour, that's to much!!
once a day or something,,