Repository with scripts that can help Power BI Admins to manage their On-Premises data gateways.
In folder gw_status_check you can find a script that allows to monitor the gateways' health and raise an error if the cluster or one node in the cluster goes offline. It uses the PowerShell Cmdlets for On-premises data gateway management, which is currently in Public Preview. More information at this link to the Microsoft documentation: PowerShell Cmdlets for On-premises data gateway