A Python script for measuring system response times, checking for OS updates, and monitoring system metrics.
Cloning the Repo git clone https://github.com/hacks-and-codes/System-Response-Analyzer
You can install System Response Analyzer using pip
:
pip install -r requirements.txt
pip install system-response-analyzer
- Measure response time for a given URL or IP address.
- Check for available OS updates and upgrade options.
- Monitor CPU and memory usage.
- Monitor disk usage.
- Monitor network traffic (KB sent and received).
- Python 3.x
- Requests library (install via
pip install requests
) - Psutil library (install via
pip install psutil
) - Tabulate library (install via
pip install tabulate
)
- Clone the repository to your local machine.
- Install the required dependencies (see Prerequisites section).
- Run the script by executing
python system_analyzer.py [URL]
. - Follow the on-screen instructions.
- When you run the script, it will prompt you to enter a URL or IP address to measure system response time if you didn't specify one as an argument.
- It will then check for available OS updates and ask if you want to update only if there are updates available.
- After that, it will display CPU and memory usage, disk usage, and network traffic metrics.
Measure response time for a website: Enter the URL to measure response time: example.com
Measure response time for an IP address: Enter the URL to measure response time: 192.168.0.1
Measure response time for the local host: Enter the URL to measure response time: localhost
Measure response time for the local host: Enter the URL to measure response time: 127.0.0.1
System Response Analyzer depends on the following Python packages:
- requests
- psutil
- tabulate
Contributions are welcome! If you have suggestions, bug reports, or want to add new features, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.