Commit graph

17 commits

Author SHA1 Message Date
836749ba6b complete overhaul of snmp engine 2026-01-30 10:41:07 -06:00
88c003d474 major snmp overhaul 2026-01-28 09:07:13 -06:00
7656ac7212
import yamls 2026-01-21 14:30:04 -06:00
82413df58b
Improve monitor script to eliminate screen flicker
Instead of clearing the entire screen every 5 seconds, the script now:
- Prints the header once and saves cursor position
- Fetches all API data before updating display (no blank period)
- Restores cursor position and updates only the content area
- Hides cursor during display for cleaner look
- Shows cursor on exit via cleanup trap

Uses tput commands:
- sc/rc: Save/restore cursor position
- ed: Clear from cursor to end of screen
- civis/cnorm: Hide/show cursor
2026-01-15 13:04:41 -06:00
4fe583b220
cleanup 2026-01-15 13:01:29 -06:00
480f4dba7f
Add script to apply Pangolin security rules
Helper script to upload security rules to Pangolin instance.
Requires PANGOLIN_KEY environment variable.
2026-01-15 12:28:35 -06:00
c9e4e8d105
Show pipeline creation time as relative 'X ago' format
- Added format_time_ago() function
- Handles both GNU date (Linux) and BSD date (macOS)
- Properly parses ISO 8601 timestamps with UTC timezone
- Shows: 30s ago, 5m ago, 2h ago, 3d ago
- Changed 'Created' field from raw timestamp to human-readable format
2026-01-15 09:36:00 -06:00
97b1e7bb9e
Fix agent project ID in monitoring script
Updated from 63766041 to 77595235 (correct ID for towerops/towerops-agent)
2026-01-15 09:33:53 -06:00
a98e1823f3
Fix project ID and duration formatting
- Updated main app project ID: 77257437 → 77618300 (towerops/towerops)
- Fixed duration formatting to handle decimal seconds from GitLab API
- Script now fetches correct current pipelines instead of old deleted project
2026-01-15 09:10:24 -06:00
de3c282825
Fix debug info display - show after clear command
- Moved debug fields (Local HEAD, Created, Commit) into monitoring loop
- Removed duplicate output that was immediately cleared
- Added warning when local commit doesn't match pipeline commit
- Now debug info stays visible throughout monitoring
2026-01-15 09:07:23 -06:00
37160fc33f
Improve pipeline detection and debugging
- Show local HEAD commit for comparison
- Add explicit sort order (id DESC) to get most recent pipeline
- Display pipeline created time and commit SHA
- Remove duplicate pipeline info output
2026-01-15 09:04:19 -06:00
d4e3846e69
Add debug output to pipeline monitoring
- Show pipeline creation time and commit SHA
- Show job count and job IDs
- Help diagnose incorrect job/status issues
2026-01-15 09:03:07 -06:00
8f434f18bc
Fix main app project path to towerops/towerops
Changed from graham/towerops to towerops/towerops
2026-01-15 09:01:28 -06:00
b33d6a5c25
Fix job URLs to use project path instead of numeric ID
Failed job URLs now correctly use graham/towerops instead of 77257437
2026-01-15 09:00:46 -06:00
6be6ff34f9
Fix GitLab API calls - use numeric project IDs
- Changed from URL-encoded paths to numeric project IDs
- Added -L flag to curl to follow redirects
- Improved error handling with HTTP status codes
- Shows API errors with response body
2026-01-15 08:59:48 -06:00
b036716eb7
Fix environment variable name in monitoring script
Changed GITLAB_TOKEN to GITLAB_ACCESS_TOKEN throughout
2026-01-15 08:58:27 -06:00
c1d944a612
Add CI/CD monitoring script
Features:
- Auto-detects project from git remote
- Shows real-time pipeline progress
- Color-coded job statuses
- Links to failed job logs
- For main app: monitors Kubernetes rollout
- Auto-refreshes every 5 seconds

Usage:
  export GITLAB_TOKEN=<token>
  ./scripts/monitor-deploy.sh [app|agent]

Or just run from repo directory for auto-detection
2026-01-15 08:52:40 -06:00