autoSMART este un sistem inteligent de monitorizare SMART pentru HDD-urile din cluster-ul Proxmox, cu predicții de defectare bazate pe AI și stocare optimizată în PostgreSQL.
# 1. Download autoSMART and run automated deployment
git clone <repository-url>
cd autoSMART
sudo ./scripts/deploy.sh install
# The deployment script automatically:
# - Installs all dependencies (Perl modules, smartmontools, etc.)
# - Creates system directories and sets permissions
# - Deploys application files to /opt/autoSMART/
# - Creates configuration files in /etc/autosmart/
# - Registers and starts systemd services
# - Performs initial system validation
# 2. Configure database connection (interactive prompts during install)
# 3. Configure OpenAI API key (interactive prompts during install)
# 4. System is ready - services are automatically started
# Check system status (all services should be active)
sudo systemctl status autosmart
# View recent SMART data collection
sudo journalctl -u autosmart-collector -f
# Generate initial health report
sudo /opt/autoSMART/scripts/autosmart-report.pl --summary
autoSMART provides comprehensive monitoring capabilities:
autoSMART operates as a distributed system across your Proxmox cluster:
When autoSMART is installed on your system, it creates the following directory structure:
/opt/autoSMART/ # Main installation directory
├── scripts/ # Executable scripts and utilities
│ ├── autosmart-collector.pl # Main data collection daemon
│ ├── autosmart-predictor.pl # AI prediction processing
│ ├── autosmart-report.pl # Report generation engine
│ ├── autosmart-migration-report.pl # Hardware migration analysis
│ ├── smart-collector-daemon.pl # Background collection service
│ ├── uninstall.sh # System removal script
│ ├── monitor-cluster.sh # Cluster health monitoring
│ └── test-*.pl # Testing and validation utilities
├── lib/ # Perl modules and core libraries
│ ├── SmartCollector.pm # SMART data collection and hardware tracking
│ └── PredictionEngine.pm # AI-powered failure prediction engine
├── config/ # Configuration templates and examples
│ └── (template files) # Default configuration templates
├── docs/ # End-user documentation
│ ├── README.md # System overview and quick start
│ ├── CHANGELOG.md # Release notes and version history
│ └── API.md # OpenAI API configuration guide
/etc/autosmart/ # System configuration directory
├── autosmart.conf # Main system configuration
├── cluster.conf # Cluster topology and node definitions
├── database.conf # PostgreSQL connection settings
├── openai.conf # OpenAI API configuration and prompts
└── smart.conf # SMART parameter thresholds and monitoring rules
/etc/systemd/system/ # Systemd service files
├── autosmart.service # Main autoSMART service
├── autosmart-collector.service # Data collection service
└── autosmart-predictor.service # AI prediction service
/etc/autosmart/autosmart.confMain system configuration file containing: - Database connection parameters - Collection intervals and scheduling - Local node identification and settings - Log levels and debugging options
/etc/autosmart/cluster.confCluster-wide configuration shared across all nodes: - Node topology and IP addresses - Shared monitoring parameters - Cluster-wide alert settings - Inter-node communication settings
/etc/autosmart/database.confPostgreSQL database connection settings: - Database host, port, and credentials - Connection pooling configuration - SSL settings and security parameters - Performance tuning options
/etc/autosmart/openai.confOpenAI API integration configuration: - API key and model selection - Prompt templates for failure prediction - Response parsing and confidence thresholds - Rate limiting and cost management
/etc/autosmart/smart.confSMART parameter monitoring configuration: - Parameter thresholds for different drive types - Critical parameter definitions - Alert escalation rules and notifications - Drive-specific monitoring settings
autosmart.service: Main system service that manages other componentsautosmart-collector.service: Background data collection serviceautosmart-predictor.service: AI prediction processing service# Start/stop services
sudo systemctl start autosmart
sudo systemctl stop autosmart
# Enable/disable automatic startup
sudo systemctl enable autosmart
sudo systemctl disable autosmart
# Check service status
sudo systemctl status autosmart
# View service logs using systemd journal
sudo journalctl -u autosmart -f # Follow main service logs
sudo journalctl -u autosmart-collector -f # Follow data collection logs
sudo journalctl -u autosmart-predictor -f # Follow AI prediction logs
# View logs by time period
sudo journalctl -u autosmart --since "1 hour ago" # Last hour
sudo journalctl -u autosmart --since today # Today's logs
sudo journalctl -u autosmart --since yesterday # Yesterday's logs
# View logs by priority level
sudo journalctl -u autosmart -p err # Error level and above
sudo journalctl -u autosmart -p warning # Warning level and above
/opt/autoSMART/scripts/ are executable (755)/opt/autoSMART/lib/ are readable (644)/etc/autosmart/ are readable by autosmart user (640)journalctl commandsThis file structure provides a complete, organized installation that integrates seamlessly with Linux system conventions while maintaining clear separation between application code, configuration, and operational data.
Use systemd journal for comprehensive log analysis:
- All service logs: sudo journalctl -u autosmart*
- Data collection: sudo journalctl -u autosmart-collector
- AI predictions: sudo journalctl -u autosmart-predictor
- System errors: sudo journalctl -u autosmart* -p err
For detailed installation, configuration, and troubleshooting information, refer to the complete documentation in the docs/ directory.
autoSMART v1.0 - Intelligent drive monitoring for mission-critical infrastructure