Ganglia::Gmetric - perl gmetric wrapper
use Ganglia::Gmetric; my $gmetric=Ganglia::Gmetric->new({ name => 'some name', value => 'some value', units => 'm/s', type => 'int16' }); $gmetric->ttl('5'); $gmetric->run(\$stdout,\$stderr);
Simple perl wrapper around ganglia's gmetric.
my $gmetric=Ganglia::Gmetric->new; my $gmetric=Ganglia::Gmetric->new({name => 'some name', value => 'some value', units => 'm/s', type => 'int16', channel => 'channel', port => 'port', iface => 'iface', ttl => 'ttl', path => '/path/to/gmetric/', });
$gmetric->run(\$stdout,\$stderr);
runs the gmetric command. returns gmetric return code (0 on succes).
perl.
E.Vrolijk, <fungus@cpan.org>.
Copyright (c) 2008 Erik Vrolijk. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Ganglia::Gmetric, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ganglia::Gmetric
CPAN shell
perl -MCPAN -e shell install Ganglia::Gmetric
For more information on module installation, please visit the detailed CPAN module installation guide.