# PythonMonitor **Repository Path**: cb0wen/python-monitor ## Basic Information - **Project Name**: PythonMonitor - **Description**: No description available - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-29 - **Last Updated**: 2025-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1.NVIDIA用户: pip install pynvml 2.AMD用户: pip install pyamdgpu 3.通用监控: pip install wmi WMI访问被拒绝: # 启用WMI服务 Get-Service Winmgmt | Restart-Service -Force 监控设备安装环境: pip install -r requirements.txt [server] api_url = https://monitor.example.com api_key = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxxxxx [monitor] interval = 30 打包 pyinstaller --onefile main.py 发送的数据: {'timestamp': '2025-05-30T01:22:58.019138+00:00', 'cpu': 12.4, 'memory': {'total': 16982769664, 'available': 7285686272, 'used': 9697083392, 'percent': 57.1}, 'disks': [], 'network': {'loopback': {'bytes_sent': 0, 'bytes_recv': 0, 'packets_sent': 0, 'packets_recv': 0}, 'VirtualBox Host-Only Network': {'bytes_sent': 0, 'bytes_recv': 0, ' packets_sent': 0, 'packets_recv': 0}, '以太网 2': {'bytes_sent': 45479948, 'bytes_recv': 241477971, 'packets_sent': 95211, 'packets_recv': 313647}}, 'system_logs': []}