# Example: Detect if Origin client is running but network to Orange service is down import psutil import socket def is_origin_running(): for proc in psutil.process_iter(['name']): if proc.info['name'] and 'origin' in proc.info['name'].lower(): return True return False
def can_communicate_with_orange(host="orange.internal.com", port=80): try: socket.create_connection((host, port), timeout=3) return True except OSError: return False Origin Seems To Be Running No Communication With Orange
If you meant something else, please provide more details (e.g., where you saw this message, full error log, or the software involved). # Example: Detect if Origin client is running
if origin_on and not orange_comm: return "Origin Seems To Be Running No Communication With Orange" elif origin_on and orange_comm: return "Origin and Orange communicating normally" elif not origin_on: return "Origin not running" else: return "Unknown state" port=80): try: socket.create_connection((host