
π Script Naming Convention Guide β
This repository standardizes script filenames with a leading category prefix followed by a concise descriptive title for consistency, clarity, and easy identification.
π― Naming Format β
<Category> - <Descriptive Title>.<ext>Examples:
Monitor - CPU Usage.shSecurity - Firewall Status.shAgent - Wazuh Update.ps1Maintain - Disk Clean.bat
βΉοΈ Key Points β
- β
Extensions preserved:
.sh,.ps1,.bat, etc. - β Spaces used: For readability (no underscores or dashes in title)
- β Consistent categorization: Single prefix per script
- β
Standardized formatting:
-separator between category and title
π Category Reference β
| π·οΈ Category | π Purpose | π‘ Examples |
|---|---|---|
| β Check | One-off status/health verification tests | Latency, reachability, service active, connectivity |
| π Monitor | Ongoing trends & resource metrics | CPU/RAM/load/bandwidth/IO/uptime trends |
| π Audit | Security & configuration enumeration | Users, ports, cron diff, integrity checks |
| π¦ Collect | Inventory & general data gathering | BIOS info, system info, domain, installed programs |
| πΎ Software Management | Install/update/package state & repo health | Package updates, repo status, broken packages |
| π Security | Security enforcement or provisioning | Firewall setup, access controls, hardening |
| π Network | Network diagnostics & configuration | Interfaces, routes, DNS, connectivity |
| π€ Agent | Management/monitoring agent status | Mesh, Wazuh, TRMM, Patchmon, Remotely |
| π§Ή Maintain | Cleanup & maintenance tasks | Disk cleanup, kernel prune, temp files, spooler |
| β¨ Customize | System personalization | Bashrc modifications, environment setup |
| β° Cron | Crontab entry & scheduling checks | Cron presence, scheduling verification |
| π³ Image | Container image hygiene | Staleness, dangling images |
| π₯οΈ OS | Operating system configuration | DNS config, system settings |
π€ Exit Codes β
| Code | Meaning |
|---|---|
0 | β OK / Success |
1 | β οΈ Alert / Failure |
2 | βΉοΈ Secondary state (e.g., auto-recovered) |
π Category Selection Guide β
Choose the most specific category for your script. When ambiguous:
π¦ Use
Collect -for pure inventory and data gatheringπ Use
Audit -for security-relevant listings and configurations
π‘ Best Practices β
β DO:
- Use the standardized category prefix for all new scripts
- Choose the most specific category available
- Keep titles concise but descriptive (2-4 words typically)
- Use title case for readability:
Monitor - CPU Usage.sh - Test script exit codes before deployment
β DON'T:
- Mix naming conventions (old/new formats in same directory)
- Use underscores or excessive dashes in titles
- Create ambiguous category names
- Ignore exit code standardization
- Use vague or generic titles like "Script.sh" or "Check.sh"