| 14356 | 'last_run': background_thread_health.get('arp_last_run', 0), |
| 14357 | 'last_run_ago_seconds': time.time() - background_thread_health.get('arp_last_run', 0) if background_thread_health.get('arp_last_run', 0) > 0 else 'NEVER', |
| 14358 | 'alive': background_thread_health.get('arp_alive', False), |
| 14359 | 'status': '✅ HEALTHY' if background_thread_health.get('arp_alive', False) else '⚠️ POSSIBLY STUCK' |
| 14360 | }, |
| 14361 | 'health_monitor': { |
| 14362 | 'enabled': True, |
| 14363 | 'check_interval_seconds': 15 |
| 14364 | } |
| 14365 | } |
| 14366 | |
| 14367 | # === FILE OPERATIONS DEBUGGING === |
| 14368 | try: |
| 14369 | # Check key files |
| 14370 | important_files = [ |
| 14371 | getattr(shared_data, 'network_file', 'NOT_SET'), |
| 14372 | shared_data.webconsolelog if hasattr(shared_data, 'webconsolelog') else 'NOT_SET', |
| 14373 | get_wifi_specific_network_file() |