{"id":23110564,"url":"https://github.com/wanghui5801/monitor-nextjs","last_synced_at":"2026-04-13T20:32:30.434Z","repository":{"id":266258974,"uuid":"897178523","full_name":"wanghui5801/Monitor-nextjs","owner":"wanghui5801","description":"Server monitor based on Next.js and Python API","archived":false,"fork":false,"pushed_at":"2024-12-11T19:13:07.000Z","size":553,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T11:45:51.613Z","etag":null,"topics":["api-engineering","authentication","flask","nextjs","server-monitor"],"latest_commit_sha":null,"homepage":"https://vps.1101949.xyz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wanghui5801.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-02T07:10:32.000Z","updated_at":"2025-02-18T02:03:35.000Z","dependencies_parsed_at":"2025-04-03T23:39:03.048Z","dependency_job_id":null,"html_url":"https://github.com/wanghui5801/Monitor-nextjs","commit_stats":null,"previous_names":["wanghui5801/monitor-nextjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wanghui5801/Monitor-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanghui5801%2FMonitor-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanghui5801%2FMonitor-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanghui5801%2FMonitor-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanghui5801%2FMonitor-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wanghui5801","download_url":"https://codeload.github.com/wanghui5801/Monitor-nextjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanghui5801%2FMonitor-nextjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-engineering","authentication","flask","nextjs","server-monitor"],"created_at":"2024-12-17T01:49:24.796Z","updated_at":"2026-04-13T20:32:30.417Z","avatar_url":"https://github.com/wanghui5801.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Monitor\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/downloads/)\n[![Node.js](https://img.shields.io/badge/Node.js-18+-green.svg)](https://nodejs.org/)\n[![Next.js](https://img.shields.io/badge/Next.js-14.0+-black.svg)](https://nextjs.org/)\n[![Flask](https://img.shields.io/badge/Flask-3.0+-lightgrey.svg)](https://flask.palletsprojects.com/)\n[![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20Windows-orange.svg)](https://github.com/wanghui5801/Monitor-nextjs)\n\n![Homepage Screenshot](Figures/homepage.png)\n\nA user-friendly, real-time monitoring system for distributed servers with an intuitive dashboard interface.\n\n## Key Features\n\n✨ Real-time System Metrics:\n- CPU usage \u0026 model information\n- Memory utilization\n- Disk space monitoring\n- Automatic location detection\n- Network traffic monitoring\n- IP address protection (IPs are hidden for non-authenticated users)\n\n🌟 Additional Features:\n- Multi-server management\n- Automatic status detection\n- Cross-platform (Windows/Linux)\n- Dark/Light mode\n- One-click installation\n- Secure admin interface\n\n## Security Features\n\n### IP Address Protection\n- Public view: IP addresses are masked (displayed as ***.***.***.**)\n- Admin view: Full IP addresses visible after authentication\n- Secure JWT-based authentication\n- Protected API endpoints\n\n## Quick Installation Guide\n\n### 1. Server Setup (Linux Only)\n\nRun this command on your Linux server:\n\n```bash\nwget -O install.sh https://raw.githubusercontent.com/wanghui5801/Monitor-nextjs/main/install_server.sh \u0026\u0026 chmod +x install.sh \u0026\u0026 sudo ./install.sh\n```\n\nAfter installation, access:\n- Dashboard: `http://YOUR_SERVER_IP`\n- API: `http://YOUR_SERVER_IP:5000`\n\n### 2. Client Installation\n\n#### For Linux:\n\n```bash\nwget -O install.sh https://raw.githubusercontent.com/wanghui5801/Monitor-nextjs/main/install_client.sh \u0026\u0026 chmod +x install.sh \u0026\u0026 sudo ./install.sh\n```\n\n#### For Windows:\nRun PowerShell as Administrator:\n\n```powershell\nInvoke-WebRequest -Uri 'https://raw.githubusercontent.com/wanghui5801/Monitor-nextjs/main/install_client.bat' -OutFile 'install_client.bat'; .\\install_client.bat\n```\n\n## Domain Setup (Optional)\n\nTo configure a custom domain with SSL:\n\n1. Ensure you have a domain pointed to your server's IP address\n2. Run the domain setup script:\n\n```bash\nwget -O setup_domain.sh https://raw.githubusercontent.com/wanghui5801/Monitor-nextjs/main/setup_domain.sh \u0026\u0026 chmod +x setup_domain.sh \u0026\u0026 sudo ./setup_domain.sh\n```\n\nThis script will:\n- Install and configure Nginx\n- Obtain SSL certificate via Let's Encrypt\n- Set up reverse proxy for both frontend and API\n- Update application configuration\n- Restart all services\n\nAfter setup, your monitor will be accessible at:\n- Dashboard: `https://YOUR_DOMAIN`\n- API: `https://YOUR_DOMAIN/api`\n\n### Updating Existing Clients\n\nIf you have existing clients, update their API endpoint:\n\n1. Edit the client configuration:\n\n```bash\nsudo nano /opt/server-monitor-client/monitor.py\n```\n\n2. Update the API_URL:\n\n```python\nAPI_URL = 'https://YOUR_DOMAIN/api'\n```\n\n3. Restart the client service:\n\nFor Linux:\n\n```bash\nsudo systemctl restart server-monitor-client\n```\n\nFor Windows:\n\n```powershell\nRestart-Service ServerMonitorClient\n```\n\n## System Requirements\n\n### Server\n- OS: Ubuntu/Debian/CentOS/RHEL/Fedora\n- **Python 3.8+ (Required)**\n- **Required Python packages:**\n  - python3-pip\n  - python3-venv\n- Node.js 18+\n- 1GB RAM minimum\n- 10GB free disk space\n\n### Client\n- OS: Windows/Linux\n- **Python 3.8+ (Required)**\n- **Required Python packages:**\n  - python3-pip\n  - python3-venv\n- 100MB free disk space\n- Admin/Root privileges\n\n### Installing Python Requirements (Linux)\n\nFor Debian/Ubuntu:\n\n```bash\nsudo apt-get update\nsudo apt-get install python3 python3-pip python3-venv\n```\n\nFor CentOS/RHEL:\n\n```bash\nsudo dnf install python3 python3-pip python3-venv\n```\n\nFor Fedora:\n\n```bash\nsudo dnf install python3 python3-pip python3-venv\n```\n\n## Development Setup\n\n1. Clone and prepare:\n\n```bash\ngit clone https://github.com/wanghui5801/Monitor-nextjs.git\ncd Monitor-nextjs\n```\n\n2. Setup Frontend:\n\n```bash\ncd frontend\nnpm install\nnpm run dev\n```\n\n3. Setup Backend:\n\n```bash\ncd backend\npython -m venv venv\nsource venv/bin/activate  # Windows: .\\venv\\Scripts\\activate\npip install -r requirements.txt\npython app.py\n```\n\n## Configuration\n\n### Server\n- API Port: 5000\n- Frontend Port: 3000\n- Database: SQLite3 (/opt/server-monitor/backend/servers.db)\n\n### Client\n- Update Interval: 2 seconds\n- Auto-restart: Enabled\n- API Endpoint: http://YOUR_SERVER_IP:5000\n\n## Service Management\n\n### Server (PM2)\n\nMonitor server status:\n\n```bash\nsudo pm2 status\n```\n\nView logs:\n\n```bash\nsudo pm2 logs                    # All logs\nsudo pm2 logs server-monitor-frontend  # Frontend logs only\nsudo pm2 logs server-monitor-backend   # Backend logs only\n```\n\nRestart services:\n\n```bash\nsudo pm2 restart all            # Restart all\nsudo pm2 restart server-monitor-frontend\nsudo pm2 restart server-monitor-backend\n```\n\nStop services:\n\n```bash\nsudo pm2 stop all              # Stop all\nsudo pm2 stop server-monitor-frontend\nsudo pm2 stop server-monitor-backend\n```\n\n### Client Service\n\n#### Linux (Systemctl)\n\nCheck status:\n\n```bash\nsudo systemctl status server-monitor-client\n```\n\nView logs:\n\n```bash\nsudo journalctl -u server-monitor-client -f\n```\n\nManage service:\n\n```bash\nsudo systemctl start server-monitor-client\nsudo systemctl stop server-monitor-client\nsudo systemctl restart server-monitor-client\n```\n\n#### Windows (Services)\n\nUsing Command Prompt (Admin):\n\n```cmd\nnet start ServerMonitorClient\nnet stop ServerMonitorClient\n```\n\nOr using PowerShell (Admin):\n\n```powershell\nStart-Service ServerMonitorClient\nStop-Service ServerMonitorClient\nRestart-Service ServerMonitorClient\nGet-Service ServerMonitorClient\n```\n\nView logs at:\n```\nC:\\server-monitor-client\\logs\\service.log\nC:\\server-monitor-client\\logs\\error.log\n```\n\n## Support\n\nFor issues or feature requests, please open an issue on GitHub.\n\n## License\n\nMIT License - see LICENSE file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanghui5801%2Fmonitor-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwanghui5801%2Fmonitor-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanghui5801%2Fmonitor-nextjs/lists"}