The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RRDTool::Rawish - A RRDtool command wrapper with rawish interface

SYNOPSIS

use RRDTool::Rawish;

my $rrd = RRDTool::Rawish->new(
    rrdfile => 'rrdtest.rrd',           # option
    remote  => 'rrdtest.com:11111',  # option for rrdcached
);
my $exit_status = $rrd->create(["DS:rx:DERIVE:40:0:U", "DS:tx:DERIVE:40:0:U", "RRA:LAST:0.5:1:240"], {
    '--start'        => '1350294000',
    '--step'         => '20',
    '--no-overwrite' => '1',
});

my $exit_status = $rrd->update([
    "1350294020:0:0",
    "1350294040:50:100",
    "1350294060:80:150",
    "1350294080:100:200",
    "1350294100:180:300",
    "1350294120:220:380",
    "1350294140:270:400"
]);

my $img = $rrd->graph('-', [
    "DEF:rx=rrdtest2.rrd:rx:LAST",
    "DEF:tx=rrdtest2.rrd:tx:LAST",
    "LINE1:rx:rx#00F000",
    "LINE1:tx#0000F0",
]);

# error message
$rrd->errstr; # => "ERROR: hogehoge"

DESCRIPTION

RRDTool::Rawish is a RRDtool command wrapper class with rawish interface. You can use the class like RRDtool command interface. Almost all of modules with RRD prefix are RRDs module wrappers. It's troublesome to use RRDs with variable environments because it's a XS module and moreover not a CPAN module. In contrast, RRDTool::Rawish has less dependencies and it's easy to install it.

METHODS

AUTHOR

Yuuki Tsubouchi <yuuki@cpan.org>

THANKS TO

Shoichi Masuhara

SEE ALSO

RRDtool Documetation

LICENCE AND COPYRIGHT

Copyright (c) 2013, Yuuki Tsubouchi <yuuki@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.