How to convert Json file back to rrd.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rakikulkarni
Posts: 1
Joined: Mon Dec 02, 2019 11:07 am

How to convert Json file back to rrd.

Post 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?
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: How to convert Json file back to rrd.

Post 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/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to convert Json file back to rrd.

Post by scottwilkerson »

Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked