Today is: 9 January, 2012
Check todays hot topics

April 2011

Iostat for ganglia

#!/usr/bin/perl
#
# iostat_gmetric:
#
# simple script to parse iostat output
# and push the data into ganglia
#
# iostat -x 20 | iostat_gmetric
# iostat -d 20 | iostat_gmetric
#
# tkimball Tue Apr 26 17:46:18 EDT 2011
 
use strict;
use warnings;
 
my $gmetric = '/usr/bin/gmetric';
my $gconf = '/etc/ganglia/gmond.conf';
 
if ( ! -x $gmetric )
{
    print "ERROR: Unable to execute $gmetric, exiting.\n";
    exit 1;
}
 
if ( !