Northstar Labs Operations Toolkit
A script-driven operations toolkit that monitors host state, validates network/service health, and produces scheduled logs with actionable status output.
lf_final_project/
├── scripts/
│ ├── system_snapshot.zsh # System state snapshot
│ ├── net_health.zsh # Network health check
│ ├── service_guard.zsh # SSH service monitor
│ └── ops_tool.zsh # Main dispatcher
├── logs/
│ └── ops.log # Structured log output
├── reports/
│ └── permissions_audit.txt
└── README.md
Prints a full system summary including timestamp, current user, shell, kernel version, uptime, disk usage, and memory.
zsh scripts/system_snapshot.zshShows active network interface, default route, gateway ping result, and DNS resolver info. Exits non-zero if gateway is unreachable.
zsh scripts/net_health.zshChecks SSH service health using systemctl with fallback to service. Returns exit code 0 if healthy, 1 if not running.
zsh scripts/service_guard.zshCentral tool that runs all checks and logs output to logs/ops.log.
zsh scripts/ops_tool.zsh --help
zsh scripts/ops_tool.zsh --status
zsh scripts/ops_tool.zsh --snapshot
zsh scripts/ops_tool.zsh --netcheck
zsh scripts/ops_tool.zsh --svccheck
zsh scripts/ops_tool.zsh --allRuns --all checks every 30 minutes automatically:
*/30 * * * * zsh ~/lf_final_project/scripts/ops_tool.zsh --all >> ~/lf_final_project/logs/ops.log 2>&1- Kali/Ubuntu Linux VM
zshcron/crontab- Standard networking tools:
ip,ping aptpackage manager
mkdir -p ~/lf_final_project/{scripts,logs,reports}
chmod +x scripts/*.zsh- Linux system administration scripting
- Network and service health validation
- Cron-based automation and scheduled logging
- Argument parsing and exit code handling in Zsh
- Structured log-driven operations workflow