json report output

Any new ideas, possible impromevents for future versions.
molnart
Posts: 8
Joined: 2011.05.18. 22:25

json report output

Post by molnart »

Would be be possible to generate a json format report for hdsentinel? XML is not used much today anymore, and the json output would enable easier integration with grafana.
User avatar
hdsentinel
Site Admin
Posts: 3021
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: json report output

Post by hdsentinel »

Thanks for the question and tip.
Yes, to be honest, I was thinking about it - but until now there was no real inquiry for JSON.

In contrast, many users use the XML output and other tools also process the XML files (eg. Nagios : https://www.hdsentinel.com/tutorial-hds ... nagios.php ) so I'd surely not say "XML is not used much today anymore" ;)

Please let me know which sections/information would be the most important (for the integration) as then it is possible to focus on that area first (maybe you can send a very short sample to illustrate to info (at) hdsentinel (dot) com)

Then maybe you can also have a tutorial about how to integrate/connect with grafana :)
molnart
Posts: 8
Joined: 2011.05.18. 22:25

Re: json report output

Post by molnart »

for my purpose the <Hard_Disk_Summary> section would be sufficient, but implementing the full reports content would be probably preferred.

as for the grafana integration, i use influxdb as data source, HDSentinel could be integrated easily via the input.exec plugin (https://github.com/influxdata/telegraf/ ... /README.md). for this to work i think it may be necessary to suppress the initial scanning messeges.

but maybe i will take at prometheus (https://prometheus.io/) which claims to support xml input
Post Reply