The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

current statistics from command line

Discussion in 'CloudLinux' started by Spyros, Aug 25, 2014.

  1. Spyros

    Spyros Member

    Joined:
    Jul 1, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens, Greece, Greece
    cPanel Access Level:
    Root Administrator
    Hello all,

    First of all i d'like to thx the community for helping me in previus questions.

    i dlike to make a script to inform us when an account is getting out of its limit. its easy to do it with

    Code:
    # /usr/sbin/lveinfo --period="'10 d" --by-fault="any" --display-username --csv --limit=999' 
    command if the account is allready out of limit and has faults. but its not the solution that we wont, we dlike to take the report when the vritual memory current usage is 80%

    is any option or command that i can use to get the current statistics of account, so i can compare them with the limit?


    Regards,
    Savvanis Spyros
     
    #1 Spyros, Aug 25, 2014
    Last edited by a moderator: Aug 25, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. iseletsk

    iseletsk Well-Known Member

    Joined:
    Mar 3, 2010
    Messages:
    163
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Princeton, New Jersey, United States
    This is not exactly what you want, but closer:
    Sending regular emails to yourself with LVE usage
    Try this:

    lveinfo ---by-usage=vmem_max --percentage=80 --display-username

    Also, you don't want to use vmem, you want to use pmem. vmem is giving 'wrong' info, and should be used only if you are dead set on using CL5 kernel, instead of CL6/hybrid kernels. In all other cases, you should set vmem to 0, and use only pmem.
     
  4. Spyros

    Spyros Member

    Joined:
    Jul 1, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens, Greece, Greece
    cPanel Access Level:
    Root Administrator
    iseletsk thx for the info, basically i wanted both physical and virtual ram we had a problem with a virtual ram of a site.

    well my solution is in this file /proc/lve/list , this file have the current values so i think i will use it.

    Regards
     
Loading...
Similar Threads - current statistics command
  1. junhsieh
    Replies:
    3
    Views:
    688

Share This Page