1

We own a few servers, each with about 100 users on it, some with 1 domain, some with a few. I'm looking for a script which runs in the background which can provide information about which users uses which amount of resource.

I'd like to know what the load on our server is, top only gives me a 'now'-view, I want to be able to check out the load for a period of time.

To make it more detailed, I'd like this per user, and if possible even more specific (which files are used a lot, or database usage, anything I can use to optimise a bit)

I have no clue whether this exists, I can only find some code which only gives my live results, like top and ps, that's not what I'm looking for.

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
Martijn
  • 111
  • 3
  • You might be interested in Zabbix: https://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/zabbix_agent or Nagios. – Boris Burkov Oct 07 '13 at 10:26
  • That looks very complicated to me, something a bit more stupid-proof would be great. Im going to check it out anyway, as soon as I got the time for it, thanks – Martijn Oct 07 '13 at 11:04
  • Quick pointers only rather than a full guide, the unix standard command for usage reporting is called "sar", "System Activity Reporter" and monitors various things like disk io, cpu etc on a per user basis, from this there were tools like just 'sa' (doesn't exist under linux, check some of the 'see also' commands for sar). Might be some help – iain Oct 07 '13 at 13:18

2 Answers2

0

You should look at something like grafana and collectd. Collectd will collect resource usage metrics and send it to grafana so you can have current and historic graphs

Timothy Frew
  • 241
  • 1
  • 7
0

You might want to rephrase this question and make it more focused. What you're asking is too broad a question.

ideas

slm
  • 363,520
  • 117
  • 767
  • 871