[rrd-users] Problem with timestamp from RRDs::last

faema Mats.Fahlesson at arbetsformedlingen.se
Thu Jun 16 13:30:19 CEST 2011


Hi,
have been using perl and rrdtool on Solaris sparc for years, but when
running the same script on Solaris x86, I get problems with RRD::last, the
time returned is false.
The testscript returns: lastupdate: 577716223951862640
while rrdtool returns the correct time:
/usr/local/rrdtool-1.0.49/bin/rrdtool last ROUTER1.rrd
1168210800

my testscript:
#!/usr/bin/perl -w
#
use strict;
use lib qw( /usr/local/rrdtool-1.0.49/lib/perl ../lib/perl );
use RRDs;

my $rrd = "ROUTER1.rrd";
my $lastupdate = 0;
$lastupdate = RRDs::last $rrd;
if (my $Error = RRDs::error) {
    print STDOUT "RRD::last, ERROR: $Error\n";
}

printf ("lastupdate: %d \n", $lastupdate );

Perl used is the standard 32-bit, on Solaris 10. 
#: /usr/bin/perl -v
This is perl, v5.8.4 built for i86pc-solaris-64int
(with 32 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

rrdtool 1.4.5 gives a simular result.
Any ideas what may cause this?

Thanks
Mats

 


--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Problem-with-timestamp-from-RRDs-last-tp6482671p6482671.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list