OidZddlmZddlZd dZedk(r7eZejddZe dee ed k(rdd y) zFNetwork health checks for ensuring the WireGuard tunnel is responsive.) annotationsNc tjgdtjtjd}|jdk(rddiSddiS#t$rddicYSwxYw)z Ping the Avamposto gateway through the WireGuard tunnel. Returns: A dictionary with key 'status' equal to 'online' when the ping succeeds, otherwise 'offline'. )pingz-c3z10.0.0.1F)stdoutstderrcheckstatusofflineronline) subprocessrunDEVNULLFileNotFoundError returncode)results 4/mnt/ssd/adrian/flotta-diagnostics/network_health.pycheck_network_tunnelrso% +%%%%  A(## i  %)$$%s7A A A __main__r r zTunnel status: r )returnzdict[str, str]) __doc__ __future__rr r__name__outcomegetr print SystemExitrr!scL"!0 z"$G [[9 -F OF8 $% &H,Q 44! 44 r