json report output
json report output
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.
- hdsentinel
- Site Admin
- Posts: 3115
- Joined: 2008.07.27. 17:00
- Location: Hungary
- Contact:
Re: json report output
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
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
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
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