RRD Daten öffnen ?

Hallo,

ich hole mir mir mittels 1-wire von einem Impulszähler Stromdaten ab. Diese schreibe ich in einen Datenbank (SQL) und benutze Sie für einen Graphen. Lieder hat aus irgendwelchen Gründen, wie ich nicht im Lande war, der SQL export nicht fubktioniert. Diese Daten ligen jetzt nur noch in der .rrd drinne. Habe ich irgendeine Möglichkeit, an diese Daten ran zu kommen. Diese würde ich dann gerne der Datenbank hinzufügen.

Hat jemand eine Idee, hab leider nach allem möglichen gesucht, aber nix gefunden.

Script zum öffnen der rrd Datenbank oder so was ??

Gruß und dankend für eure Hilfe

Andy

Ich habe ein RRD befehl gefunden, weiss aber leider nicht wie ich diesen anwenden könnte. Hier der Befehl:

rrddump
SYNOPSIS

rrdtool dump [–no-header|-n] filename.rrd > filename.xml

or

rrdtool dump [–no-header|-n] filename.rrd filename.xml
DESCRIPTION

The dump function writes the contents of an RRD in human readable (?) XML format to a file or to stdout. This format can be read by rrdrestore. Together they allow you to transfer your files from one computer architecture to another as well to manipulate the contents of an RRD file in a somewhat more convenient manner.

filename.rrd

The name of the RRD you want to dump.

filename.xml

The (optional) filename that you want to write the XML output to. If not specified, the XML will be printed to stdout.

[–no-header|-n]

In rrdtool 1.3, the dump function started producing correct xml-headers. Unfortunately the rrdtool restore function from the 1.2 series can not handle these headers. With this option you can supress the creatinon of the xml headers.

EXAMPLES

To transfer an RRD between architectures, follow these steps:

  1. On the same system where the RRD was created, use rrdtool dump to export the data to XML format.
  2. Transfer the XML dump to the target system.
  3. Run rrdtool restore to create a new RRD from the XML dump. See rrdrestore for details.

Quelle: http://oss.oetiker.ch

Gruß Andy

Tja,

Kennst du das princip hinter eine RRD?
nein : sorry -> zu lange geschichte

ja: ok nimm dir dann ein dump. Nur die zeitliche geschriebene werte sind gultig. Denn rest sind die RRA-werte die beim wegschreiben berechnet werden sind. (zb AVERAGE); Es gibt in deine RRD noch zig zeitgebundene werte (Abhänglich von die CREATE parameter).

Den rest ist futsch.
Ich hoffe nur das die zeitlucke, die noch zeitgeschriebene werte hat, genugend ist um deine db zu reparieren.

Good Luck
Fredje

(sollte ich mal ein mini-kurz .RRD geben ? Jemanden interesse ?)

Hallo Fredje,

ich habe ein ähnliches Prob und auch schon daran herum getüftelt, also immer her damit!

Grüße
Fabian

Absoluter 1e. schritt … copy von die .rrd -> ansonnsten sind die ‚älteste‘ werte weg.