current statistics from command line
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
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
# /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
-
Hello :) The following document displays all of the available options available with the lvestats utility: [url=http://docs.cloudlinux.com/index.html?lve-stats.html]CloudLinux Documentation - lvestats You may want to post directly to the Cloud Linux forums to see if you can generate additional statistics: [url=http://cloudlinux.com/solutions/forum/forum11/]Cloud Linux Support Forum Thank you. 0 -
This is not exactly what you want, but closer: [url=http://www.cloudlinux.com/blog/clnews/146.php]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. 0 -
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 0
Please sign in to leave a comment.
Comments
3 comments