Page 1 of 1
json report output
Posted: 2020.06.17. 09:27
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.
Re: json report output
Posted: 2020.06.18. 10:33
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
Re: json report output
Posted: 2020.06.18. 13:06
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