nagiosgrapher: adding further DS to rrd database

Marcus Schopen lists at localguru.de
Mon Feb 14 01:28:08 CET 2011


Am Sonntag, den 13.02.2011, 19:22 +0100 schrieb Badri Pillai:
> Hi,
> 
> have a look at RRD::Simple CPAN module..
> 
> n2rrd uses that!!

Ah, thanks! RRD::Simple nice module. Must have overseen it.

------------------
#!/usr/bin/perl

use strict;
use warnings;

use RRD::Simple();

my $rrd_file = "./orig.rrd";
my $rrd = RRD::Simple->new();

print "Processing $rrd_file...";
$rrd->add_source($rrd_file, 'APACHE2' => 'GAUGE');
print " ok.\n";
------------------

Ciao!



------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list