From: Craig S. <kg...@gm...> - 2008-07-29 20:49:17
|
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) |