How psagar-dev/testing_linux_servers_hv works
• System Monitoring (system_monitor.sh)
• User Management (create_list_user.sh, referenced as the user management script)
• Web Server Backup Automation (apache_backup.sh and nginx_backup.sh)
Project Components
a. System Monitoring Module:
– Inside this module list its responsibilities: monitoring CPU, memory, disk, and process metrics.
– Highlight that it uses system utilities (nmon, htop, df, du, ps) and writes logs to a dedicated log directory (/var/log/system_monitor).
– Note that the script also sets up a cron job to schedule periodic execution.
b. User Management Module:
– List its main functions such as listing users and creating new users (with password and workspace configuration), along with enforcing password policies.
– Include the fact that it interacts directly with Linux system commands (useradd, chpasswd, chage) and modifies configuration files like /etc/login.defs and /etc/security/pwquality.conf.
c. Backup Configuration Module:
– Illustrate two backup sub-components within one module: one for Apache (apache_backup.sh) and one for Nginx (nginx_backup.sh).
– For each, note that they verify source directories, create compressed backups (tar.gz), log operations, and check backup integrity.
– Indicate that these scripts are scheduled via cron (running every Tuesday at 12:00 AM) and store backup files in /backups.
Underlying Infrastructure and External Dependencies
– Inside, indicate the relevant system directories:
• /var/log/system_monitor for logs (used by the system monitoring script)
• /backups to store backup archives (used by the backup scripts)
– Show external utilities and packages such as nmon, htop, and libpam-pwquality (highlight that some scripts will install/check these dependencies).
Data Flow and Interactions
– Inside each module, indicate data inputs and outputs: