Lizenzfrage zu viele Hosts

Hey,

i’ve never tried it because i only have RAW-Editions.
But i would guess it could be as simple as an normal Upgrade…

MIRROR="https://download.checkmk.com/checkmk"
V="$(curl -s https://download.checkmk.com/stable_downloads.json |jq -r '.checkmk[].version'|sort -h|tail -n 1)"
CMKVER="${CMKVER:-${V}}"
DEBFILE="check-mk-raw-${CMKVER}_0.$(lsb_release -cs)_amd64.deb"
DEBLINK="${MIRROR}/${CMKVER}/${DEBFILE}"

sudo bash<<_
TMP=`mktemp -d`
wget "${DEBLINK}" -P $TMP -nc
dpkg -i "/tmp/${DEBFILE}"
omd stop
omd backup "$(omd sites -b)" /mnt/nfs/your/backup/path/$(date +%Y%m%d)/
omd -f -V ${CMKVER}.cre update --conflict=install "$(omd sites -b)"
omd start "$(omd sites -b)"
su - $(omd sites -b) bash -c 'omd status; omd version'
_

If it doesn’t work you still have the Backup.

And change the package(apt) commands and URL-References and it should also work with RPM or whatever else there is.