Hi DOJO,
Is there a way to monitor DMS Cloud Connection Status without accessing https://dataminer.services/.
Based on Dataminer logs or log files? We want to automate this check to be notified as soon as the connection is down.
Thanks!
Hi Adel,
It depends on what you want.
The DMS Cloud Connection status you see in dataminer.services is retrieved via an API call: GET dms-connection-info. This checks the cloud side of things.
You could send these API calls directly, instead of through the app. You can try it out via https://orchcont-prod.cca-prod.aks.westeurope.dataminer.services/swagger/index.html?urls.primaryName=User%20OrchestratorController%20API%20v1.0
Those calls require three ingredients: an organizationId, a coordinationId and authentication.
The first two can easily be found if you go to the admin app of your system (admin.dataminer.services) - in the URL you'll see something like: https://admin.dataminer.services/{organizationId}/dms/{coordinationId)/overview
Within the dataminer.services app, we already have your user authentication context.
If you want to send these calls via your own integration you'll also need to take care of that authentication.
Eventually this would give you a result containing an epoch timestamp & connection status values like:
<code class="language-json">{
<span class="hljs-attr">"hasValidConnection"</span>: true,
<span class="hljs-attr">"hasTunnelConnection"</span>: true,
<span class="hljs-attr">"hasWebApiConnection"</span>: true,
<span class="hljs-attr">"lastSeen"</span>: 1779779815
}</code>
The second part of your request mentions "via local log files", so this sits at the other side of the cloud connection.
For this, the CloudGateway logs (C:\ProgramData\Skyline Communications\DataMiner CloudGateway\Logs) could give you what you need. Though also here there's a lot that will depend on the context or what it is exactly that you want to monitor.
Are we dealing with a single-node DMS, are there multiple nodes with redundancy (= multiple CloudGateway services installed) etc.
Furthermore, it's not exactly the same status as what you'd get from the cloud side. As it's log-files, it would also take more interpretation.
Maybe better to create a support ticket so we can help you further, depending on which option you want to pursue.