https://github.com/fuchs-fabian/checkmk-initial-agent-setup
A simple shell script to simplify the setup process of the Checkmk agent on a host.
https://github.com/fuchs-fabian/checkmk-initial-agent-setup
agent checkmk helper setup-script
Last synced: 4 months ago
JSON representation
A simple shell script to simplify the setup process of the Checkmk agent on a host.
- Host: GitHub
- URL: https://github.com/fuchs-fabian/checkmk-initial-agent-setup
- Owner: fuchs-fabian
- License: mit
- Created: 2024-03-04T18:42:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-04T21:11:28.000Z (over 1 year ago)
- Last Synced: 2025-01-21T10:51:08.281Z (5 months ago)
- Topics: agent, checkmk, helper, setup-script
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Checkmk-Initial-Agent-Setup
A simple shell script to simplify the setup process of the Checkmk agent on a host.
## Usage
Create the script:
```bash
nano /tmp/checkmk-initial-agent-setup.sh
```Paste the content of the script ([`checkmk-initial-agent-setup.sh`](checkmk-initial-agent-setup.sh)) here.
You must now adjust the following variables in the script:
```bash
use_sudo=false
checkmk_packaged_agent="check-mk-agent_2.2.0p11-1_all.deb" # Setup -> Agents -> Linux -> Packaged Agents
checkmk_ip_address="X.X.X.X"
checkmk_site="SITENAME"
checkmk_username="cmkadmin"
checkmk_password=""
checkmk_host_to_be_registered=""
```> Experience has shown that registration works best if you use the IP address from Checkmk.
The script must then be made executable:
```bash
chmod +x /tmp/checkmk-initial-agent-setup.sh
```Run the script:
```bash
/tmp/checkmk-initial-agent-setup.sh
```> After the script has been executed, it is deleted!
For the Checkmk agent to work, the following firewall setting must be made on the host to be registered:
- Direction: `in`
- Action: `ACCEPT`
- Protocol: `tcp`
- Dest. port: `6556`## Additional information
The following plugins are installed by default: `lvm`, `mk_apt`, `mk_logins`, `smart`
In 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.
## Another repository that might interest you
[Checkmk-Matrix-Notifications](https://github.com/fuchs-fabian/Checkmk-Matrix-Notifications)