How can I collect the cpu utilization in a graphical form ? Is there anyway to collect this graph from nmon? I need to send this to our apps/DB guys to look in.
Thanks
I use the command vmstat and a perlscript that convert the Output from vmstat to excel.
vmstat_ausgabe.sh (runs once the day via cron)
out=/tmp/vmstat/`date +%w`-vmstat.out
vmstat -t 900 96 > $out &
vmreport.pl (runs once the day via cron)
#!/usr/bin/perl
use strict;
use Spreadsheet::WriteExcel;
use Env;
use MIME::Lite;
my $path = "/tmp/vmstat/";
my $datin = "-vmstat.out";
my $node = `hostname`;
chomp ($node);
my $exl = "$node-vmstat";
my $mailto = "your.name\@your-company.de";
my $datum = `date +%d.%m.%Y`;
my $i = 0;
my $sum_cpu = 0;
my $sum_ps = 0;
my $line = 0;
my @felder = " ";
my $exlfile = Spreadsheet::WriteExcel->new("$path$exl.xls");
my @tag = ("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.