The workload of the server. Services?

0 like 0 dislike
5 views
Good night.

There is a server with installed Debian and ISP Manager.

All anything, enter the top command in the console or this plugin for ISP...


BUT. You need to obtain a permanent statistics of the server (RAM, CPU, processes themselves) of each user. Permanent ie some kind of service demonstrate this data, no matter whether in the console or in the logs, quite detailed and clear. And most importantly — with the certain interval updates.


The Lord system administrators, please advise the program, or a script for Debian which will monitor the workload of servers in the most convenient and extensive.


Thank you
by | 5 views

4 Answers

0 like 0 dislike
> You need to obtain a permanent statistics of the server (RAM, CPU, processes themselves) of each user. Permanent ie some kind of service demonstrate this data, no matter whether in the console or in the logs, quite detailed and clear. And most importantly — with the certain interval updates.
\r
\rZabbix can get any value from Zabbix agent-a,
which in turn can receive data from any inputof (bash, perl, php, script)
\r
create a script that will export certain data
(CPU of a certain PID, size objectified. folders, etc.)
and monitor their health
\r
ps: without reading the manual and practice not to do
by
0 like 0 dislike
Obtaining complete and reliable data on the consumption of server resources (RAM, CPU) for each USER on linux and freebsd it is impossible. You can take a snapshot of the statistics every N minutes (for example from ps), and assume that this reflects the real picture =) In reality, the process can work between charges statistics, to devour all the resources and completed, leaving you a trace. Or for example to eat other resources — iops's hard drive, without giving load on Prots, but shipping the entire system. Or, if we are talking about hosting, making requests to mysql, for which wartime shot.
\r
On the other hand (as is the case in all sorts of cpanel) — just Google with Yandex to visit the site as work limits for instantaneous overload % (depending on settings) can lead to immediate blocking of the hosting.
\r
However, let's not talk about sad =) a Snapshot of the data to remove can and should still nothing else to do. Ready monitoring system in the visualization of these data in you it will hardly help, except maybe Cacti, piles of scripts and large files — the number of users in the system can vary, and even cacti will have to press refresh
by
0 like 0 dislike
By the way, what you suggested is best suited for monitoring a single server?
by
0 like 0 dislike
it is strange that no one offered sar... — is allowed to collect different (mostly iron) statistics with any timeframe, the desired amount of time. the program is very capacious. man sar
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
7 answers
0 like 0 dislike
5 answers
110,608 questions
257,186 answers
0 comments
28,804 users