json report output

Any new ideas, possible impromevents for future versions.

json report output

Postby molnart » 2020.06.17. 09:27

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.
molnart
 
Posts: 5
Joined: 2011.05.18. 22:25

Re: json report output

Postby hdsentinel » 2020.06.18. 10:33

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-hdsentinel-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 :)
User avatar
hdsentinel
Site Admin
 
Posts: 2365
Joined: 2008.07.27. 17:00
Location: Hungary

Re: json report output

Postby molnart » 2020.06.18. 13:06

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/blob/release-1.14/plugins/inputs/exec/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
molnart
 
Posts: 5
Joined: 2011.05.18. 22:25


Return to Feature Requests

Who is online

Users browsing this forum: No registered users