Remote collection of vmstat log files

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

Comments
Hi,

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

Bye
# Posted By Michenaud Laurent | 4/9/09 7:58 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.