Monitor Synology Active Backup for Business

One question - why not using the API of the Synology to get the wanted information?
No hassle with SSH login and shell scripts.