Page 1 of 1

How to convert Json file back to rrd.

Posted: Fri Jan 10, 2020 3:58 am
by rakikulkarni
I am downloading network performance data through Nagios API , but it's in json format, I need to plot this data through rrdgraph,
Is there a way to convert json to rrd? or is there a way to plot json file in rrdgraph tool?

Re: How to convert Json file back to rrd.

Posted: Fri Jan 10, 2020 2:27 pm
by tacolover101
how do you normally plot data into the rrd with your current process?

you should be able to pull the data in json, utilize the key-pair values, and then print it into rrdtool to update the rrd.

jq is a great tool for parsing out json - https://stedolan.github.io/jq/

Re: How to convert Json file back to rrd.

Posted: Mon Jan 13, 2020 9:28 am
by scottwilkerson