mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-19 00:38:08 +00:00

* Initial Call, Switch from curl -s to curl -fsSL and wget to curl -fssL * more switches * switch vms * more curls * More curls * more * more * more changes * more * prepare ipv6 calls * change frontend to ipv6 * Formatting * Fromatting * Update gomft.sh * Update gomft-install.sh * Update ersatztv.sh * Update build.func --------- Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
#Copyright (c) 2021-2025 community-scripts ORG
|
|
# Author: Michel Roegl-Brunner (michelroegl-brunner)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://checkmk.com/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Install Checkmk"
|
|
RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | tr ' ' '\n' | grep -v '\-rc' | sort -V | tail -n 1)
|
|
curl -fsSL "https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb" -o "/opt/checkmk.deb"
|
|
$STD apt-get install -y /opt/checkmk.deb
|
|
echo "${RELEASE}" >"/opt/checkmk_version.txt"
|
|
msg_ok "Installed Checkmk"
|
|
|
|
motd_ssh
|
|
customize
|
|
|
|
msg_info "Creating Service"
|
|
PASSWORD=$(omd create monitoring | grep "password:" | awk '{print $NF}')
|
|
$STD omd start
|
|
{
|
|
echo "Application-Credentials"
|
|
echo "Username: cmkadmin"
|
|
echo "Password: $PASSWORD"
|
|
} >>~/checkmk.creds
|
|
msg_ok "Created Service"
|
|
|
|
msg_info "Cleaning up"
|
|
rm -rf /opt/checkmk.deb
|
|
$STD apt-get -y autoremove
|
|
$STD apt-get -y autoclean
|
|
msg_ok "Cleaned"
|