{"id":24014996,"url":"https://github.com/parthasarathy27/systemmonitoringscripts","last_synced_at":"2026-02-15T13:36:47.970Z","repository":{"id":271216152,"uuid":"912742062","full_name":"parthasarathy27/SystemMonitoringScripts","owner":"parthasarathy27","description":"This project provides a set of Python and Bash scripts for monitoring system health, automating backups, and analyzing web server logs. It helps track system performance, ensure data safety through backups, and identify patterns in server logs, improving reliability and troubleshooting efficiency for system administrators and developers.","archived":false,"fork":false,"pushed_at":"2025-01-06T14:28:40.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T23:33:51.181Z","etag":null,"topics":["analyzer","health-check","linux","python3","system"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parthasarathy27.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-01-06T09:53:31.000Z","updated_at":"2025-01-06T14:28:43.000Z","dependencies_parsed_at":"2025-01-06T10:45:14.000Z","dependency_job_id":"cd6b7512-8aa9-4ba7-80f4-231709f0bafe","html_url":"https://github.com/parthasarathy27/SystemMonitoringScripts","commit_stats":null,"previous_names":["parthasarathy27/systemmonitoringscripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parthasarathy27/SystemMonitoringScripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthasarathy27%2FSystemMonitoringScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthasarathy27%2FSystemMonitoringScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthasarathy27%2FSystemMonitoringScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthasarathy27%2FSystemMonitoringScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parthasarathy27","download_url":"https://codeload.github.com/parthasarathy27/SystemMonitoringScripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthasarathy27%2FSystemMonitoringScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29480194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["analyzer","health-check","linux","python3","system"],"created_at":"2025-01-08T07:38:31.704Z","updated_at":"2026-02-15T13:36:47.953Z","avatar_url":"https://github.com/parthasarathy27.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **System Monitoring and Health Checker Scripts**\n\nThis repository contains a set of Python and Bash scripts designed to monitor the health of a Linux system, automate backup tasks, analyze server log files, and check the health of applications. These scripts help system administrators automate critical monitoring and maintenance tasks, and quickly identify performance issues or failures in the system and applications.\n\nThe scripts are written in **Python** and **Bash**, and they provide useful reports and alerts based on predefined thresholds, ensuring proactive system management.\n\n---\n\n## **Features**\n\n### **1. System Health Monitoring Script**\nMonitors key system metrics such as:\n- **CPU Usage**\n- **Memory Usage**\n- **Disk Space**\n- **Running Processes**\n\nIf any of these metrics exceed predefined thresholds (e.g., CPU usage \u003e 80%), the script sends alerts to the console or logs the results to a file.\n\n### **2. Automated Backup Solution**\nAutomates the backup of a specified directory to a remote server or cloud storage. It provides a report on the success or failure of the backup operation, ensuring data safety and reliability.\n\n### **3. Log File Analyzer**\nAnalyzes web server logs (Apache, Nginx, etc.) to detect:\n- **404 Errors** (Failed page accesses)\n- **Most Requested Pages**\n- IP addresses with **the Most Requests**\n\nThe script generates a summarized report to help identify trends, errors, and potential performance bottlenecks.\n\n### **4. Application Health Checker**\nChecks the uptime of an application by assessing its HTTP status codes. It reports if the application is \"up\" and functioning or \"down\" and unavailable, enabling quick action in case of failure.\n\n---\n\n## **System Requirements**\n\nTo run these scripts, the following are required:\n- **Python 3.x**: For executing the Python scripts.\n- **Bash**: For executing the backup and log file analysis scripts.\n- **Linux-based system** (or Windows Subsystem for Linux, WSL, on Windows).\n- **Required Python libraries**: Listed in `requirements.txt`.\n\n---\n\n## **Installation**\n\n1. Clone this repository to your local machine:\n   ```bash\n   git clone \u003crepository_url\u003e\n   ```\n\n2. Navigate into the project directory:\n   ```bash\n   cd SystemMonitoringScripts\n   ```\n\n3. Install the necessary Python dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n---\n\n## **Usage**\n\n### **1. System Health Monitoring Script**\nRun the following command to monitor system health:\n```bash\npython system_health.py\n```\nThis script will check system metrics and print alerts if thresholds are exceeded.\n\n### **2. Automated Backup Solution**\nRun the following command to initiate the backup:\n```bash\npython backup.py\n```\nEnsure you modify the script to specify the source directory and remote backup destination.\n\n### **3. Log File Analyzer**\nRun the following command to analyze web server logs:\n```bash\npython log_analyzer.py /path/to/logfile\n```\nThis will generate a report summarizing common patterns in the log file.\n\n### **4. Application Health Checker**\nRun the following command to check the health of an application:\n```bash\npython app_health.py http://your-app-url.com\n```\nThis will check the HTTP status of the application and report whether it's \"up\" or \"down.\"\n\n---\n\n## **Directory Structure**\n\n```\nSystemMonitoringScripts/\n├── README.md              # Project documentation\n├── system_health.py       # System health monitoring script\n├── backup.py              # Automated backup script\n├── log_analyzer.py        # Log file analysis script\n├── app_health.py          # Application health checking script\n├── logs/                  # Directory for log files (empty initially, generated by script)\n│   ├── system_health.log  # Log file for system health monitoring (created dynamically)\n├── .gitignore             # Git ignore file to exclude unnecessary files from version control\n└── requirements.txt       # Python dependencies file\n```\n\n---\n\n## **Logging and Monitoring**\n\n- Logs are stored in the `logs/` directory, with the `system_health.log` file capturing system health monitoring outputs.\n- You can extend the logging functionality in each script to include additional metrics or notifications as needed.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparthasarathy27%2Fsystemmonitoringscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparthasarathy27%2Fsystemmonitoringscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparthasarathy27%2Fsystemmonitoringscripts/lists"}