E
E
Evgeny Kuznetsov2014-08-19 09:48:49
MySQL
Evgeny Kuznetsov, 2014-08-19 09:48:49

How to find out how many resources a user used per minute/hour/day in Debian?

It is necessary to track the amount of resources consumed by a certain user in Debian per minute/hour/day.
It is necessary to have indications on the following resources:
1. How much processor the user ate
2. How much traffic the user ate
3. How much traffic he drove between php and mysql the user
4. Number of select/insert/update/delete/alter requests for the user
5. Number -number of requests to get static files (nginx)
6. Number of requests that came to php (apache2)
Kick in the right direction.
PS. According to points 5 and 6, it is clear that you need to parse logs, but how to parse them, say, for a period of 1 hour?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konkase, 2014-08-19
@Konkase

Zabbix will help you, everything will be clear, in graphs, for any period of time

A
Alexey Yamschikov, 2014-08-28
@mobilesfinks

There are many options:
- zabbix (as already written above - I support)
- munin (graphics)
- collectd + graphite ( here is an article)
- bash scripts of their own execution))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question