Xen vps multi CPU, core usage monitoring using xenstat

by rajesh 2012-12-13 10:10:56

You can use xenstat.pl, a perl script to monitor xen vm or vps multi processors core usage

You can download the code form
https://github.com/feiskyer/xen-code-learn/blob/master/xenstat.pl

Usage:
perl xenstat.pl -- generate cpu stats every 5 secs
perl xenstat.pl 10 -- generate cpu stats every 10 secs
perl xenstat.pl 5 2 -- generate cpu stats every 5 secs, 2 samples

perl xenstat.pl d 3 -- generate disk stats every 3 secs
perl xenstat.pl n 3 -- generate network stats every 3 secs
perl xenstat.pl a 5 -- generate cpu avail (e.g. cpu idle) stats every 5 secs

perl xenstat.pl 3 1 http://server/log.php -- gather 3 secs cpu stats and send to URL
perl xenstat.pl d 4 1 http://server/log.php -- gather 4 secs disk stats and send to URL
perl xenstat.pl n 5 1 http://server/log.php -- gather 5 secs network stats and send to URL
1521
like
0
dislike
0
mail
flag

You must LOGIN to add comments