Erik Vrolijk > Ganglia-Gmetric-0.3 > Ganglia::Gmetric

Download:
Ganglia-Gmetric-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.3   Source  

NAME ^

Ganglia::Gmetric - perl gmetric wrapper

SYNOPSIS ^

  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);

DESCRIPTION ^

Simple perl wrapper around ganglia's gmetric.

new

  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/',
});

run

  $gmetric->run(\$stdout,\$stderr);

runs the gmetric command. returns gmetric return code (0 on succes).

SEE ALSO ^

perl.

AUTHOR ^

E.Vrolijk, <fungus@cpan.org>.

COPYRIGHT ^

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.

syntax highlighting: