Trying to figure out how to graph multiple data point in one graph when
sending data to gmetric?
Below is what I am doing.... and this work but I have endless graphs. How
can I consolidate this into one with multiple data points? Can I do this?
#!/usr/bin/perl
my $Mapping="/root/Ganglia_Distro/mapping.txt";
$Mapping Looks like this: START
asm01 dm-6
asm02 dm-7
asm03 dm-8
asm04 dm-9
END
open( FILE, "< $Mapping" ) or die "Can't open $Mapping : $!";
while (<FILE>) {
my ($alias, $dm) = split(' ');
my $io_out=`/usr/bin/iostat -x -k -d $dm | grep $dm`;
my
($dev,$rrqm,$wrqm,$rs,$ws,$rkB,$wkB,$avgrq,$avgqu,$await,$svctm,$util)=split('
',$io_out);
system("/usr/bin/gmetric -t int16 -n $alias.await -v$await");
system("/usr/bin/gmetric -t int16 -n $alias.svctm -v$svctm");
system("/usr/bin/gmetric -t int16 -n $alias.rkB -v$rkB");
system("/usr/bin/gmetric -t int16 -n $alias.wkB -v$wkB");
}
This is to get iostat info for my multipathed devices.
THANKS!!!!!
Craig
--
Get Creative!!! @ http://3rdstone.net
Use your BRAIN @ http://brainradar.com
Get Wisdom @ http://www.youtube.com/profile_videos?user=drturistar&p=r
"In the circle the beginning and the end are common"
~ Heraclitis (540-480BC)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers