I am using nagios API(rrdexport) to get data for device , but i need to plot the data in rrdgraph, since rrdgraph only takes .rrd file as input , how to i convert json file back to .rrd file , or is there a way to plot rrdgraph with json file as input.
Asked
Active
Viewed 327 times
1 Answers
0
You have a couple of options.
You could always generate your graph from the same RRD file that you used to originally export the XML. Since you can export the data you can also graph it.
You could use
rrdrestoreto load the exported data back into a (temporary) RRD file, then callrrdgraphon that to make the graph.RRDTool supports
libdbias a data source, in the same way as RRD files. If you have an appropriate libdbi format driver for your data then you can pull it from there. For example, load your data into amysqldatabase, and let rrdtool graph from that.
For more information about using libdbi as a data source, see https://oss.oetiker.ch/rrdtool/doc/rrdgraph_libdbi.en.html
Steve Shipway
- 3,754
- 3
- 22
- 39