xoa api SR space usage
-
hi team,
we were wondering, is it possible to get the usage of the SRs of a pool from the xoa API so we could monitor it?
also is there a list somewhere online of what information we can get from the xoa API at the moment? I don't want to bother you with my questions all the time, easier to check what's possiblecheers, Ringo
-
Hi,
This is not a direct answer to your question, but here is a script I used (using Sensu to execute/monitor it):
https://paste.iondev.lu/?59090add7694827a#3TH1vYxNjpz2ZWz4fUNSj4L4brJVRJTMRH9szbk1x8EB -
There's already a plugin that is doing that (alert plugin). But we got a REST API that is easy to use to fetch that info.
Take a look here: https://xen-orchestra.com/docs/restapi.html
-
@jedimarcus thank you i will have a look!