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?
How to convert Json file back to rrd.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: How to convert Json file back to rrd.
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/
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/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact: