Skip to content

Nerdy-RMMScripts-Logo

πŸ“‹ 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.sh
  • Security - Firewall Status.sh
  • Agent - Wazuh Update.ps1
  • Maintain - 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
βœ… CheckOne-off status/health verification testsLatency, reachability, service active, connectivity
πŸ“Š MonitorOngoing trends & resource metricsCPU/RAM/load/bandwidth/IO/uptime trends
πŸ” AuditSecurity & configuration enumerationUsers, ports, cron diff, integrity checks
πŸ“¦ CollectInventory & general data gatheringBIOS info, system info, domain, installed programs
πŸ’Ύ Software ManagementInstall/update/package state & repo healthPackage updates, repo status, broken packages
πŸ” SecuritySecurity enforcement or provisioningFirewall setup, access controls, hardening
🌐 NetworkNetwork diagnostics & configurationInterfaces, routes, DNS, connectivity
πŸ€– AgentManagement/monitoring agent statusMesh, Wazuh, TRMM, Patchmon, Remotely
🧹 MaintainCleanup & maintenance tasksDisk cleanup, kernel prune, temp files, spooler
✨ CustomizeSystem personalizationBashrc modifications, environment setup
⏰ CronCrontab entry & scheduling checksCron presence, scheduling verification
🐳 ImageContainer image hygieneStaleness, dangling images
πŸ–₯️ OSOperating system configurationDNS config, system settings

πŸ“€ Exit Codes ​

CodeMeaning
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"

Built with ❀️ using VitePress | Because Real Nerds Selfhost