Hi Karel,
Rather than connecting to each cluster to check the health status in your script individually have you considered querying AIQUM for all datasources (ONTAP Clusters) assuming you are using Active IQ (OCUM)
What programming language are you developing in? If you are using PowerShell check out this module i've developed which is for Active IQ 9.7.
https://github.com/matthew-beattie/AIQUM/blob/master/AIQUM.psm1
See the function "Get-UMDatasource" (if your using another programming language you can atleast see the URI's in the code). AIQUM contains the clusters health status for each cluster and is automatically re-discovered every 15 minutes. Some other properties to monitor would be the last discovery time (EG if it's much more than 15 minutes then there is a communication issue between AIQUM and ONTAP and that should be investigated). The REST API shows expiring licenses etc so there is some useful information there if you are developing a health check. I have some powershell code which will does a basic health check on that if you are interested?
Hope that gives you some ideas.
/Matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.