Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Automated Remote Server Health Checker

A production-ready DevOps Bash script designed to monitor the health and security of multiple remote servers simultaneously over SSH. It automates system audits and generates unique log files for easy troubleshooting.

Features

  • Strict Bash Mode (-euo pipefail): Ensures high reliability and safe execution.
  • Automated Cleanup: Uses Bash trap to safely delete temporary files upon exit or interruption.
  • Comprehensive Metrics: Checks uptime, root disk capacity, RAM usage, and records SSH brute-force failures.
  • Safe Input Parsing: Implements secure argument parsing with getopts and handles configuration validation efficiently.

Prerequisites

Before running the script, ensure you have:

  • Public-private SSH key pairs configured for passwordless access to your remote servers.
  • Active SSH access with appropriate user privileges.

Installation & Usage

  1. Clone the repository:

    git clone https://github.com
    cd automated-server-health-checker
  2. Make the script executable:

    chmod +x server_health_check.sh
  3. Create a server list file (test_servers.txt): Add your server IPs or domains (one per line). Comments starting with # are supported.

    # Production Servers
    192.168.1.50
    10.0.0.12
    
  4. Run the health check:

    ./server_health_check.sh -f test_servers.txt -u ubuntu

Options

  • -f: Path to the file containing the list of servers.
  • -u: The remote SSH username.
  • -h: Display the help message.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages