Skip to content

Commit 69986fa

Browse files
committed
scripts: Scripts created for compability checks.
1 parent 0f0a212 commit 69986fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+5771
-238
lines changed

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,37 @@ venv/
2727
# Ignore directories and files related to system logs and backups
2828
logs/
2929
backups/
30+
31+
# Ignore temporary files created by editors
32+
*.log~
33+
*.swp
34+
*.swo
35+
36+
# Ignore Python virtual environments
37+
.env/
38+
.venv/
39+
40+
# Ignore compiled Python files
41+
*.py[cod]
42+
__pycache__/
43+
44+
# Ignore system-specific files
45+
Thumbs.db
46+
47+
# Ignore temporary directories
48+
tmp/
49+
temp/
50+
51+
# Ignore backup and cache directories
52+
cache/
53+
54+
# Ignore logs and reports
55+
reports/
56+
57+
# Ignore generated configuration files
58+
*.conf.example
59+
*.conf.bak
60+
61+
# Ignore test output
62+
test-results/
63+
coverage/

README.md

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ This blog post covers:
4242

4343
Whether you're new to the toolkit or looking to master advanced features, this comprehensive guide will help you leverage the full power of the IT Arsenal.
4444

45-
4645
To launch the arsenal:
4746

4847
```bash
@@ -57,6 +56,60 @@ The arsenal provides:
5756
- Error handling and notifications
5857
- Easy script execution
5958

59+
## What's New: Enhanced Reliability Features
60+
61+
### System Compatibility Checker
62+
63+
IT Arsenal now includes a robust compatibility checker that verifies if your system meets the requirements to run each script. This helps prevent issues before they occur by checking:
64+
65+
- Required dependencies and tools
66+
- Operating system compatibility
67+
- User privilege requirements
68+
- Version requirements for critical tools
69+
70+
**How to use:**
71+
1. **Automated checks** - Every script is checked before execution
72+
2. **System-wide scan** - From the main menu, select option `9` to check compatibility of all scripts
73+
3. **Direct usage** - Run `./lib/compatibility_checker.sh script_name.sh` to check a specific script
74+
75+
**Key Benefits:**
76+
- Prevents script failures due to missing dependencies
77+
- Provides customized installation commands for your specific OS
78+
- Alerts you to permission requirements before execution
79+
- Saves time by identifying issues proactively
80+
81+
### Advanced Script Debugging
82+
83+
The new script debugging tool (`system/script_debug.sh`) offers comprehensive script analysis:
84+
85+
```bash
86+
# Debug a specific script
87+
./system/script_debug.sh -s system/vm.sh
88+
89+
# Check all scripts in a category
90+
./system/script_debug.sh -c system
91+
92+
# Full system analysis
93+
./system/script_debug.sh -a
94+
```
95+
96+
**Debugging Capabilities:**
97+
- Syntax validation without execution
98+
- Dependency verification
99+
- Static code analysis
100+
- Best practices checks
101+
- Execution recommendations
102+
- Code quality suggestions
103+
104+
### Seamless Integration with IT Arsenal
105+
106+
When a script fails, the arsenal now offers to run a detailed compatibility check to help diagnose and resolve issues. This provides:
107+
108+
- Immediate feedback on what went wrong
109+
- Clear steps to resolve dependencies
110+
- Installation guidance specific to your OS
111+
- User-friendly explanations of complex requirements
112+
60113
## Comprehensive Tutorial
61114

62115
We've created a detailed tutorial to help you get the most out of the IT Arsenal:
@@ -70,9 +123,14 @@ We've created a detailed tutorial to help you get the most out of the IT Arsenal
70123
- **devops/** - Scripts for deployment and CI/CD automation
71124
- **database/** - Scripts for database management and maintenance
72125
- **lib/** - Shared libraries and utilities
126+
- **common.sh** - Core functions used across all scripts
127+
- **compatibility_checker.sh** - NEW! Script compatibility verification
73128
- **config/** - Configuration files
74129
- **logs/** - Log files generated by the arsenal and scripts
75130
- **docs/** - Documentation and tutorials
131+
- **templates/** - Starter templates for creating new scripts
132+
- **plugins/** - Extensibility system for custom functionality
133+
- **tests/** - Unit and integration tests for critical functions
76134

77135
## Available Scripts
78136

@@ -92,6 +150,7 @@ We've created a detailed tutorial to help you get the most out of the IT Arsenal
92150
| `network_diagnostics.sh` | Advanced network troubleshooting tool that performs comprehensive diagnostics including interface information, DNS resolution, connectivity tests, gateway testing, route analysis, speed testing, and hardware checks. |
93151
| `log_analyzer.sh` | Powerful log analysis tool that identifies error patterns, authentication failures, service restarts, and resource issues in system logs with detailed reporting. |
94152
| `system_benchmark.sh` | Complete system performance benchmark tool measuring CPU, memory, disk, and network performance with detailed metrics and reports. |
153+
| `script_debug.sh` | **NEW!** Advanced script diagnostics tool for analyzing dependencies, compatibility, and potential problems in any script. |
95154

96155
### Development Tools
97156

@@ -127,10 +186,17 @@ The `lib/common.sh` provides shared functionality for all scripts, including:
127186
- User interaction tools
128187
- Network utilities
129188

189+
The new `lib/compatibility_checker.sh` provides:
190+
- Dependency verification
191+
- OS compatibility checks
192+
- User privilege validation
193+
- Installation recommendations
194+
130195
To use these functions in your own scripts:
131196

132197
```bash
133198
source "$(dirname "$0")/../lib/common.sh"
199+
source "$(dirname "$0")/../lib/compatibility_checker.sh"
134200
```
135201

136202
## Usage
@@ -142,7 +208,7 @@ chmod +x script_name.sh
142208
./script_name.sh
143209
```
144210

145-
However, it's recommended to use the IT Arsenal command center to execute scripts for consistent logging and error handling.
211+
However, it's recommended to use the IT Arsenal command center to execute scripts for consistent logging, error handling, and compatibility verification.
146212

147213
## Contributing
148214

@@ -151,6 +217,7 @@ Feel free to contribute to this collection by adding new scripts or improving ex
151217
- Include error handling where appropriate
152218
- Use consistent formatting
153219
- Document any dependencies or prerequisites
220+
- Add compatibility information for the compatibility checker
154221

155222
## License
156223

0 commit comments

Comments
 (0)