code_junkie

Is there a monitoring tool like xentop that will track historical data?

Nov 11th, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. perl xenstat.pl -- generate cpu stats every 5 secs
  2. perl xenstat.pl 10 -- generate cpu stats every 10 secs
  3. perl xenstat.pl 5 2 -- generate cpu stats every 5 secs, 2 samples
  4.  
  5. perl xenstat.pl d 3 -- generate disk stats every 3 secs
  6. perl xenstat.pl n 3 -- generate network stats every 3 secs
  7. perl xenstat.pl a 5 -- generate cpu avail (e.g. cpu idle) stats every 5 secs
  8.  
  9. perl xenstat.pl 3 1 http://server/log.php -- gather 3 secs cpu stats and send to URL
  10. perl xenstat.pl d 4 1 http://server/log.php -- gather 4 secs disk stats and send to URL
  11. perl xenstat.pl n 5 1 http://server/log.php -- gather 5 secs network stats and send to URL
  12.  
  13. [server~]# xenstat 5
  14. cpus=2
  15. 40_falcon 2.67% 2.51 cpu hrs in 1.96 days ( 2 vcpu, 2048 M)
  16. 52_python 0.24% 747.57 cpu secs in 1.79 days ( 2 vcpu, 1500 M)
  17. 54_garuda_0 0.44% 2252.32 cpu secs in 2.96 days ( 2 vcpu, 750 M)
  18. Dom-0 2.24% 9.24 cpu hrs in 8.59 days ( 2 vcpu, 564 M)
  19.  
  20. 40_falc 52_pyth 54_garu Dom-0 Idle
  21. 2009-10-02 19:31:20 0.1 0.1 82.5 17.3 0.0 *****
  22. 2009-10-02 19:31:25 0.1 0.1 64.0 9.3 26.5 ****
  23. 2009-10-02 19:31:30 0.1 0.0 50.0 49.9 0.0 *****
Add Comment
Please, Sign In to add comment