*SOLVED* SAR and MRTG to monitor the VPSs [message #4638] |
Thu, 20 July 2006 00:16 |
luismi
Messages: 8 Registered: July 2006 Location: Dublin
|
Junior Member |
|
|
Hi all,
I am thinking on create some scripts to create some graphs with mrtg and sar (from sysstat package) in order to view how is the cpu, the memory, the network...
Well,
I have some dudes that I would like to clarify before start to work.
If I install the sysstat package in every VPS.. am I going to see the same values of the host system or evert VPS is going to collect different values (that is what I want)?
I know I could do the experiment but I would like to know if anyone there knows the answer. (I installed sysstat in all my VPSs right now, so I need to wait a while yet to see the results/differences between the metrics from the host system and the VPSs)
If the answer is that sysstat is going to show me the same values for the host system and the VPSs... is there anyway to collect individual values (memory, cpu, network, disk i/o..) of every VPS?
For example, reading /proc? using vmstat, uptime or similar commands?
Any other idea will be appreciated.
Thanks!
[Updated on: Tue, 22 May 2007 08:39] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
Re: SAR and MRTG to monitor the VPSs [message #4696 is a reply to message #4687] |
Fri, 21 July 2006 20:13 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Well the problem is that in OpenVZ some /proc files are virtualized and other aren't. And all statistic programms use /proc to get information.
For example, /proc/meminfo file isn't virtualized (it means, that inside VE you see information about the whole system)
There is however places there you can get something like this information. For instance, /proc/user_beancounters file contains information (in second column) how much resources (kernel memory, private memory pages, sockets, etc.) this VE holds.
HTH,
[Updated on: Fri, 21 July 2006 20:13] Report message to a moderator
|
|
|
|