Commit Graph

7 Commits

Author SHA1 Message Date
Debian
a65997a391 Add debug logging for interval values in monitor creation
All checks were successful
Build and Push Container / build (push) Successful in 34s
This helps trace the interval values at each step:
- Claude agent logs what interval it suggested
- Monitor service logs the interval when creating and deploying

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 20:26:10 +00:00
Debian
7ecb6e396e Pass username/port to initial push monitor deployment
All checks were successful
Build and Push Container / build (push) Successful in 30s
- Update create_from_suggestion to accept username and port
- Pass scan's username/port when creating suggested monitors
- Fixes first deploy using wrong username

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 10:13:18 +00:00
Debian
6865f3c9a4 Add systemd timer fallback when crontab unavailable
All checks were successful
Build and Push Container / build (push) Successful in 33s
- Try crontab first, fall back to systemd timer
- If neither available, still deploy script but warn user
- Update frontend to show scheduling method (cron/systemd/none)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 10:08:04 +00:00
Debian
ae8f833b65 Improve error messages for script deployment failures
All checks were successful
Build and Push Container / build (push) Successful in 30s
Show stdout, stderr, or exit code when deployment fails to help debug issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 09:51:09 +00:00
Debian
ba1c65d15c Use sudo for script deployment to /usr/local/bin
All checks were successful
Build and Push Container / build (push) Successful in 31s
- Use 'sudo tee' instead of redirect for writing scripts (redirects don't work with sudo)
- Use 'sudo chmod' to make scripts executable
- Cronjob still runs as user (no sudo needed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 09:40:38 +00:00
Debian
ae814c1aea Add push monitor script deployment via SSH
All checks were successful
Build and Push Container / build (push) Successful in 33s
- Add push_scripts.py with bash templates for heartbeat, disk, memory, cpu, and updates monitoring
- Modify kuma_client.py to return push token from created monitors
- Add deploy_push_script() to monitors.py for SSH-based script deployment
- Add heartbeat push_metric type to Claude agent suggestions
- Add /api/monitors/<id>/deploy-script and /api/monitors/deploy-all-scripts endpoints
- Update frontend to show push monitors with deployment status and retry buttons

Scripts are deployed to /usr/local/bin/kuma-push-{metric}-{id}.sh with cron entries.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 08:36:48 +00:00
Debian
ea49143a13 Initial commit with CI workflow
All checks were successful
Build Container / build (push) Successful in 1m18s
- Flask backend with SSH discovery and Claude AI integration
- React/Vite frontend with Tailwind CSS
- Docker multi-stage build
- Gitea Actions workflow for container builds

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 21:38:50 +00:00