{"id":21171159,"url":"https://github.com/fuchs-fabian/checkmk-initial-agent-setup","last_synced_at":"2025-03-14T17:25:26.696Z","repository":{"id":225901565,"uuid":"767124132","full_name":"fuchs-fabian/Checkmk-Initial-Agent-Setup","owner":"fuchs-fabian","description":"A simple shell script to simplify the setup process of the Checkmk agent on a host.","archived":false,"fork":false,"pushed_at":"2024-03-04T21:11:28.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T10:51:08.281Z","etag":null,"topics":["agent","checkmk","helper","setup-script"],"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/fuchs-fabian.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}},"created_at":"2024-03-04T18:42:04.000Z","updated_at":"2024-09-29T19:15:50.000Z","dependencies_parsed_at":"2024-03-04T22:11:05.122Z","dependency_job_id":null,"html_url":"https://github.com/fuchs-fabian/Checkmk-Initial-Agent-Setup","commit_stats":null,"previous_names":["fuchs-fabian/checkmk-initial-agent-setup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuchs-fabian%2FCheckmk-Initial-Agent-Setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuchs-fabian%2FCheckmk-Initial-Agent-Setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuchs-fabian%2FCheckmk-Initial-Agent-Setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuchs-fabian%2FCheckmk-Initial-Agent-Setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuchs-fabian","download_url":"https://codeload.github.com/fuchs-fabian/Checkmk-Initial-Agent-Setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243617053,"owners_count":20320000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["agent","checkmk","helper","setup-script"],"created_at":"2024-11-20T16:03:08.121Z","updated_at":"2025-03-14T17:25:26.666Z","avatar_url":"https://github.com/fuchs-fabian.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Checkmk-Initial-Agent-Setup\n\nA simple shell script to simplify the setup process of the Checkmk agent on a host.\n\n## Usage\n\nCreate the script:\n\n```bash\nnano /tmp/checkmk-initial-agent-setup.sh\n```\n\nPaste the content of the script ([`checkmk-initial-agent-setup.sh`](checkmk-initial-agent-setup.sh)) here.\n\nYou must now adjust the following variables in the script:\n\n```bash\nuse_sudo=false\ncheckmk_packaged_agent=\"check-mk-agent_2.2.0p11-1_all.deb\" # Setup -\u003e Agents -\u003e Linux -\u003e Packaged Agents\ncheckmk_ip_address=\"X.X.X.X\"\ncheckmk_site=\"SITENAME\"\ncheckmk_username=\"cmkadmin\"\ncheckmk_password=\"\"\ncheckmk_host_to_be_registered=\"\"\n```\n\n\u003e Experience has shown that registration works best if you use the IP address from Checkmk.\n\nThe script must then be made executable:\n\n```bash\nchmod +x /tmp/checkmk-initial-agent-setup.sh\n```\n\nRun the script:\n\n```bash\n/tmp/checkmk-initial-agent-setup.sh\n```\n\n\u003e After the script has been executed, it is deleted!\n\nFor the Checkmk agent to work, the following firewall setting must be made on the host to be registered:\n\n- Direction: `in`\n- Action: `ACCEPT`\n- Protocol: `tcp`\n- Dest. port: `6556`\n\n## Additional information\n\nThe following plugins are installed by default: `lvm`, `mk_apt`, `mk_logins`, `smart`\n\nIn addition, a custom script ([`checkmk-reboot-status.sh`](checkmk-reboot-status.sh)) is automatically added that monitors whether the host needs to be restarted due to the updates.\n\n## Another repository that might interest you\n\n[Checkmk-Matrix-Notifications](https://github.com/fuchs-fabian/Checkmk-Matrix-Notifications)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuchs-fabian%2Fcheckmk-initial-agent-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuchs-fabian%2Fcheckmk-initial-agent-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuchs-fabian%2Fcheckmk-initial-agent-setup/lists"}