{"id":28002945,"url":"https://github.com/paul1404/moonshot-agent","last_synced_at":"2026-04-24T16:02:50.588Z","repository":{"id":291326142,"uuid":"977289370","full_name":"Paul1404/moonshot-agent","owner":"Paul1404","description":"Moonshot Agent Installer is a fun, user-friendly, and secure Bash script for downloading and installing the Checkmk agent from a protected internal repository.","archived":false,"fork":false,"pushed_at":"2025-05-03T21:26:47.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T01:45:32.837Z","etag":null,"topics":["bash-script","checkmk"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Paul1404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-03T21:15:48.000Z","updated_at":"2025-05-03T21:28:50.000Z","dependencies_parsed_at":"2025-05-03T22:34:05.709Z","dependency_job_id":null,"html_url":"https://github.com/Paul1404/moonshot-agent","commit_stats":null,"previous_names":["paul1404/moonshot-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Paul1404/moonshot-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2Fmoonshot-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2Fmoonshot-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2Fmoonshot-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2Fmoonshot-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paul1404","download_url":"https://codeload.github.com/Paul1404/moonshot-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2Fmoonshot-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","checkmk"],"created_at":"2025-05-09T01:45:26.654Z","updated_at":"2026-04-24T16:02:50.566Z","avatar_url":"https://github.com/Paul1404.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌙 Moonshot Agent Installer\n\n**Moonshot Agent Installer** is a fun, user-friendly, and secure Bash script for downloading and installing the Checkmk agent from a protected internal repository.  \nIt features clear step-by-step feedback, logging, a dry-run mode, and a cosmic theme!\n\n---\n\n## 🚀 Features\n\n- **ASCII art and cosmic theme** for a delightful UX\n- **Step-by-step guidance** with color-coded messages\n- **Secure password prompt** (never echoed or stored)\n- **Spinner animations** for long-running steps\n- **Comprehensive logging** to `/var/log/moonshot-agent.log`\n- **Dry run mode**: tests authentication and download without installing\n- **Command-line flags**: `--dry-run`, `--help`, `--version`\n- **Root/sudo check** for safe installation\n- **Automatic cleanup** of downloaded files\n\n---\n\n## 🛠️ Requirements\n\n- Bash (v4+ recommended)\n- `wget`\n- `rpm`\n- Root or sudo privileges to install the agent\n\n---\n\n## 📦 Usage\n\n### **Standard Installation**\n\n```bash\nsudo ./moonshot-agent.sh\n```\n\n### **Dry Run (test authentication and download only)**\n\n```bash\nsudo ./moonshot-agent.sh --dry-run\n```\n\n### **Show Help**\n\n```bash\n./moonshot-agent.sh --help\n```\n\n### **Show Version**\n\n```bash\n./moonshot-agent.sh --version\n```\n\n---\n\n## 🔐 Security Notes\n\n- The script **never stores your password**; it is only used for the current session.\n- All actions and errors are logged to `/var/log/moonshot-agent.log`.\n- Only users with the correct HTTP credentials can download the agent.\n\n---\n\n## 📝 Example Output\n\n```\n    dMMMMMMMMb .aMMMb  .aMMMb  dMMMMb  .dMMMb  dMP dMP .aMMMb dMMMMMMP\n   dMP\"dMP\"dMPdMP\"dMP dMP\"dMP dMP dMP dMP\" VP dMP dMP dMP\"dMP   dMP\n  dMP dMP dMPdMP dMP dMP dMP dMP dMP  VMMMb  dMMMMMP dMP dMP   dMP\n dMP dMP dMPdMP.aMP dMP.aMP dMP dMP dP .dMP dMP dMP dMP.aMP   dMP\ndMP dMP dMP VMMMP\"  VMMMP\" dMP dMP  VMMMP\" dMP dMP  VMMMP\"   dMP\n\n    .aMMMb  .aMMMMP dMMMMMP dMMMMb dMMMMMMP\n   dMP\"dMP dMP\"    dMP     dMP dMP   dMP\n  dMMMMMP dMP MMP\"dMMMP   dMP dMP   dMP\n dMP dMP dMP.dMP dMP     dMP dMP   dMP\ndMP dMP  VMMMP\" dMMMMMP dMP dMP   dMP\n\n------------------------------------------------------------\nWelcome to the Moonshot Agent Installer!\n------------------------------------------------------------\nStep 1: Authentication\nTo download the agent, we need your HTTP password for user 'agentuser'.\nPlease enter the password: \n------------------------------------------------------------\nStep 2: Downloading the Agent\nConnecting to the server and downloading the agent package...\n [\\]  \nDownload successful!\nThe agent package has been saved as check-mk-agent-2.3.0p28-57d94250985d034c.noarch.rpm.\n------------------------------------------------------------\nStep 3: Installing the Agent\nInstalling the agent package on your system. This may take a moment...\n [|]  \n------------------------------------------------------------\nStep 4: Cleaning Up\nRemoving the downloaded package to keep your system tidy.\n------------------------------------------------------------\nInstallation complete!\nThe Checkmk agent is now installed and ready for launch.\nMission accomplished. Welcome to the monitoring universe!\n------------------------------------------------------------\n```\n\n---\n\n## ⚙️ Configuration\n\nEdit the following variables at the top of the script as needed:\n\n```bash\nUSER=\"agentuser\"\nURL=\"http://your-internal-server/agents/check-mk-agent-2.3.0p28-57d94250985d034c.noarch.rpm\"\nRPM_FILE=\"check-mk-agent-2.3.0p28-57d94250985d034c.noarch.rpm\"\nLOG_FILE=\"/var/log/moonshot-agent.log\"\n```\n\n---\n\n## 🧑‍🚀 Contributing\n\nPull requests and suggestions are welcome!  \nFeel free to open an issue for bugs or feature requests.\n\n---\n\n## 📄 License\n\nMIT License\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul1404%2Fmoonshot-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaul1404%2Fmoonshot-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul1404%2Fmoonshot-agent/lists"}