Tech Blog

Remote collection of vmstat log files

Posted At : December 1, 2008 10:42 PM 1 Comments

We've been doing a lot of load testing recently and are planning on doing a lot more, so we've developed a simple little script to make the collection of the vmstat (performance statistics) a bit quicker.

multivmstat is a php command line script which makes it easy to collect the statistics. Download the script

To run it you specify a list of servers to check:

./multivmstat server1,server2,server3 5

This will run vmstat on each of the servers with a 5 second interval between samples.

It will create the following files:

server1-vmstat.log
server2-vmstat.log
server3-vmstat.log

Note: You mush have ssh access to each machine - ideally with a certificate so that no interactive authentication is required.

Download the script

1 Comments

Michenaud Laurent 4/9/09 7:58 AM

Hi,

It may interest you. With vmstax, you can easily draw charts
from a vmstat log file.
http://www.michenux.net/vmstax/

Bye