Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Hard Limits

General questions about VestaCP
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
rocky123xo
Posts: 28
Joined: Wed Aug 20, 2014 9:53 pm

Hard Limits
  • Quote

Post by rocky123xo » Sat Jul 25, 2015 12:58 am

I host quite a few clients with Vesta, and this drives me INSANE.

I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Hard Limits
  • Quote

Post by joem » Sat Jul 25, 2015 10:24 am

rocky123xo wrote:I host quite a few clients with Vesta, and this drives me INSANE.

I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
I have made a simple script if you would like to try it.

Code: Select all

   curl -o userdiskband.zip https://dl.sizzlinhost.com/userdiskband.zip
   unzip -o userdiskband.zip -d /usr/local/vesta
   rm -rf userdiskband.zip
   chmod 755 $VESTA/bin/v-check-disk-band

Every Minute

Code: Select all

v-add-cron-job "admin" "*" "*" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-disk-band"

Every Day at Midnight

Code: Select all

   v-add-cron-job "admin" "00" "00" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-disk-band"
Last edited by joem on Mon Mar 06, 2017 6:16 am, edited 1 time in total.
Top

schiwe
Posts: 11
Joined: Wed Dec 28, 2016 7:45 am

Re: Hard Limits
  • Quote

Post by schiwe » Sat Jan 07, 2017 9:13 am

joem wrote:
rocky123xo wrote:I host quite a few clients with Vesta, and this drives me INSANE.

I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
I have made a simple script if you would like to try it.

Code: Select all

   curl -o userdiskband.zip http://dl.cdnmall.com/?id=userdiskband.zip
   unzip -o userdiskband.zip -d /usr/local/vesta
   rm -rf userdiskband.zip
   chmod 755 $VESTA/bin/v-check-user-disk-band

Every Minute

Code: Select all

v-add-cron-job "admin" "*" "*" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-user-disk-band"

Every Day at Midnight

Code: Select all

   v-add-cron-job "admin" "00" "00" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-user-disk-band"
The link is broken ..
Top

schiwe
Posts: 11
Joined: Wed Dec 28, 2016 7:45 am

Re: Hard Limits
  • Quote

Post by schiwe » Wed Jan 11, 2017 5:14 pm

@joem The link is broken ?
Can't download the zip file from http://dl.cdnmall.com/?id=userdiskband.zip
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Hard Limits
  • Quote

Post by skurudo » Fri Mar 03, 2017 5:06 am

schiwe wrote:@joem The link is broken ?
PM to joem, it's just old link and maybe moved allready.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Hard Limits
  • Quote

Post by joem » Mon Mar 06, 2017 6:16 am

Link has been updated
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Hard Limits
  • Quote

Post by skurudo » Mon Mar 06, 2017 11:46 am

Thanks, joem!

PS: https://dl.sizzlinhost.com/userdiskband.zip
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password