Send a test Pushover notification.
()
| 19434 | |
| 19435 | # Check analyzer state |
| 19436 | try: |
| 19437 | analyzer = get_traffic_analyzer() |
| 19438 | if analyzer: |
| 19439 | debug_info['analyzer_exists'] = True |
| 19440 | debug_info['analyzer_running'] = analyzer._running |
| 19441 | debug_info['analyzer_interface'] = analyzer.interface |
| 19442 | debug_info['packet_queue_size'] = analyzer._packet_queue.qsize() |
| 19443 | debug_info['total_packets_raw'] = getattr(analyzer, '_raw_packet_count', 0) |
| 19444 | debug_info['total_packets_parsed'] = analyzer.total_packets |
| 19445 | debug_info['total_bytes'] = analyzer.total_bytes |
| 19446 | debug_info['host_count'] = len(analyzer.host_stats) |
| 19447 | debug_info['connection_count'] = len(analyzer.connections) |
| 19448 | debug_info['capture_process_alive'] = analyzer._capture_process is not None and analyzer._capture_process.poll() is None |
| 19449 | if analyzer._capture_process: |
| 19450 | debug_info['capture_process_pid'] = analyzer._capture_process.pid |
| 19451 | debug_info['capture_process_returncode'] = analyzer._capture_process.poll() |
| 19452 | else: |
| 19453 | debug_info['analyzer_exists'] = False |
| 19454 | except Exception as e: |
| 19455 | debug_info['analyzer_error'] = str(e) |
| 19456 | |
| 19457 | # List network interfaces |
| 19458 | try: |
| 19459 | result = subprocess.run(['ip', 'link', 'show'], capture_output=True, text=True, timeout=5) |
nothing calls this directly
no test coverage detected