Code Monkey home page Code Monkey logo

rrdtool-merge's People

Contributors

mcdarren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rrdtool-merge's Issues

Can't call method "text" on an undefined value at rrdtool-merge.pl line 61

An error that appeared while I have launched the script:

Can't call method "text" on an undefined value at rrdtool-merge.pl line 61

I could fix it and finally run the script thanks to Claude I. D. at webpage http://w3facility.org/question/merge-multiple-rrds-over-time/

The solution was replacing in line 61 this code:

 my $xff         = $new_rra->first_child( 'xff' )->text;

with this one:

 my $xff         = $new_rra->first_child_text( 'xff' );

Claude I. D. derived this solution from XML::Twig documentation which says this:

first_child_text ($optional_condition)
Return the text of the first child of the element, or the first child
matching the $optional_condition If there is no first_child then returns ''. This
avoids getting the child, checking for its existence then getting the text for trivial
cases.

Many thanks to Darren Murphy for nice script and Claude I. D.! for his post I was able to merge all rrd files that I needed.

I hope that it would help also to the others.

usage rrdtool restore error

i am recieving error below

perl rrdtool-merge.pl --oldrrd=/var/lib/cacti/rra/fezziwig_-terminal_server_hdd_used_510.rrd --newrrd=/var/lib/cacti/rra/fezziwig-terminal_server_hdd_used_509.rrd
Dumping /var/lib/cacti/rra/fezziwig
-terminal_server_hdd_used_510.rrd to XML: /tmp/fezziwig-terminal_server_hdd_used_510.rrd_old_4480.xml
Dumping /var/lib/cacti/rra/fezziwig
-terminal_server_hdd_used_509.rrd to XML: /tmp/fezziwig-terminal_server_hdd_used_509.rrd_new_4480.xml
Parsing /var/lib/cacti/rra/fezziwig
-terminal_server_hdd_used_510.rrd XML......parsing completed
Parsing /var/lib/cacti/rra/fezziwig
-_terminal_server_hdd_used_509.rrd XML...
Last Update: 1433871327
Start processing Round Robin DB
CF : AVERAGE
Pdp x Row : 1
Start processing DB rows
Finished processing DB rows
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : AVERAGE
Pdp x Row : 1
Start processing DB rows
Finished processing DB rows
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : AVERAGE
Pdp x Row : 6
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : AVERAGE
Pdp x Row : 24
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : AVERAGE
Pdp x Row : 288
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : MAX
Pdp x Row : 1
Start processing DB rows
Finished processing DB rows
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : MAX
Pdp x Row : 1
Start processing DB rows
Finished processing DB rows
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : MAX
Pdp x Row : 6
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : MAX
Pdp x Row : 24
Start processing DB rows
Finished processing DB rows
Start processing Round Robin DB
CF : MAX
Pdp x Row : 288
Start processing DB rows
Finished processing DB rows
Start processing header
DB Service Name: hdd_used
Finished updating header
...parsing completed
Outputing to
Restoring from XML to RRD:
ERROR: usage rrdtool restore [--range-check/-r] [--force-overwrite/-f] file.xml file.rrd
File clean up
Processing complete. It took 7 seconds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.