Changing OS patch level requires reinstall of OMD package


(Florin Tiucra Popa) #1

Hi all,

I have a constraint to change OS patch level from SLES 11 SP3 to SLES 11 SP4 for 2 x servers running OMD cores 2.70-labs-edition.
As far as I have checked on consol.de there were 2 different packages of OMD for SP3 and SP4.

uname -a

Linux <masked_master> 3.0.101-0.47.67-xen #1 SMP Wed Aug 19 14:12:37 UTC 2015 (265cc32) x86_64 x86_64 x86_64 GNU/Linux

omd version

OMD - Open Monitoring Distribution Version 2.70-labs-edition

ldd /omd/versions/2.70-labs-edition/lib/sbin/icinga2

    linux-vdso.so.1 =>  (0x00007ffde06e6000)
    librt.so.1 => /lib64/librt.so.1 (0x00007fc9856d7000)
    libcli.so.2.8.1 => /omd/sites/jailuser/lib/libcli.so.2.8.1 (0x00007fc98535f000)
    libremote.so.2.8.1 => /omd/sites/jailuser/lib/libremote.so.2.8.1 (0x00007fc984f5f000)
    libconfig.so.2.8.1 => /omd/sites/jailuser/lib/libconfig.so.2.8.1 (0x00007fc984c1f000)
    libbase.so.2.8.1 => /omd/sites/jailuser/lib/libbase.so.2.8.1 (0x00007fc9847d4000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fc9845d0000)
    libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007fc984378000)
    libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00007fc983fd6000)
    libyajl.so.2 => /omd/sites/jailuser/lib/libyajl.so.2 (0x00007fc983dca000)
    libmmatch.so.2.8.1 => /omd/sites/jailuser/lib/libmmatch.so.2.8.1 (0x00007fc983bc8000)
    libsocketpair.so.2.8.1 => /omd/sites/jailuser/lib/libsocketpair.so.2.8.1 (0x00007fc9839c5000)
    libexecvpe.so.2.8.1 => /omd/sites/jailuser/lib/libexecvpe.so.2.8.1 (0x00007fc9837c2000)
    libncurses.so.5 => /lib64/libncurses.so.5 (0x00007fc98357a000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fc983273000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fc982ffa000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc982de4000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc982bc6000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fc98284a000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc9858f4000)
    libz.so.1 => /lib64/libz.so.1 (0x00007fc982633000)

rpm -qi omd-2.70-labs-edition-sles11sp3-44

Name : omd-2.70-labs-edition Relocations: (not relocatable)
Version : sles11sp3 Vendor: (none)
Release : 44 Build Date: Thu 15 Mar 2018 09:59:18 AM UTC
Install Date: Thu 05 Apr 2018 11:09:10 AM UTC Build Host: sles11sp3-64
Group : Application/System Source RPM: omd-2.70-labs-edition-sles11sp3-44.src.rpm
Size : 974616024 License: GPL
Signature : (none)
URL : http://labs.consol.de/omd/
Summary : OMD Labs Edition - OpenSource Monitoring Distribution (Labs Edition)
Description :
Open Source Monitoring Distribution (Labs Edition),
containing Nagios3 and Naemon, Icinga1 and Icinga 2, Shinken,
Thruk, Mod-Gearman, Nagvis, PNP4Nagios and many more…
Maintained by http://labs.consol.de/omd/.
Distribution: (none)

uname -a

Linux <masked_slave> 3.0.101-0.47.79-xen #1 SMP Fri Apr 22 06:30:00 UTC 2016 (9d3a4e8) x86_64 x86_64 x86_64 GNU/Linux

omd version

OMD - Open Monitoring Distribution Version 2.70-labs-edition

ldd /omd/versions/2.70-labs-edition/lib/sbin/icinga2

    linux-vdso.so.1 =>  (0x00007ffd019d5000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f31091ae000)
    libcli.so.2.8.1 => /omd/sites/jailuser/lib/libcli.so.2.8.1 (0x00007f3108e36000)
    libremote.so.2.8.1 => /omd/sites/jailuser/lib/libremote.so.2.8.1 (0x00007f3108a36000)
    libconfig.so.2.8.1 => /omd/sites/jailuser/lib/libconfig.so.2.8.1 (0x00007f31086f6000)
    libbase.so.2.8.1 => /omd/sites/jailuser/lib/libbase.so.2.8.1 (0x00007f31082ab000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f31080a7000)
    libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007f3107e4f000)
    libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00007f3107aad000)
    libyajl.so.2 => /omd/sites/jailuser/lib/libyajl.so.2 (0x00007f31078a1000)
    libmmatch.so.2.8.1 => /omd/sites/jailuser/lib/libmmatch.so.2.8.1 (0x00007f310769f000)
    libsocketpair.so.2.8.1 => /omd/sites/jailuser/lib/libsocketpair.so.2.8.1 (0x00007f310749c000)
    libexecvpe.so.2.8.1 => /omd/sites/jailuser/lib/libexecvpe.so.2.8.1 (0x00007f3107299000)
    libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f3107051000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f3106d4a000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f3106ad1000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f31068bb000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f310669d000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f3106321000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f31093cb000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f310610a000)

rpm -qi omd-2.70-labs-edition-sles11sp3-44

Name : omd-2.70-labs-edition Relocations: (not relocatable)
Version : sles11sp3 Vendor: (none)
Release : 44 Build Date: Thu 15 Mar 2018 09:59:18 AM UTC
Install Date: Thu 05 Apr 2018 11:09:13 AM UTC Build Host: sles11sp3-64
Group : Application/System Source RPM: omd-2.70-labs-edition-sles11sp3-44.src.rpm
Size : 974616024 License: GPL
Signature : (none)
URL : http://labs.consol.de/omd/
Summary : OMD Labs Edition - OpenSource Monitoring Distribution (Labs Edition)
Description :
Open Source Monitoring Distribution (Labs Edition),
containing Nagios3 and Naemon, Icinga1 and Icinga 2, Shinken,
Thruk, Mod-Gearman, Nagvis, PNP4Nagios and many more…
Maintained by http://labs.consol.de/omd/.
Distribution: (none)

Do I need to remove current OMD version 2.70-labs-edition (compiled for SLES 11 SP3) and install it again via rpm 2.70-labs-edition (compiled for SLES11 SP4)?

Could you please advise?

Many thanks,
Florin


(Sven Nierlein) #2

Yes, but, prior to 2.80, you cannot uninstall a omd version if a site still uses it. So best thing would be to use omd backup to create a backup of that site. Remove the site, uninstall OMD, update the OS, reinstall OMD and restore your site from that backup.
Make sure you create a backup.
Or maybe even better, setup new machines with SP4, install OMD and simply restore from that backup.

In the future it will be easier and you can uninstall OMD but keep the site. Then upgrade the OS, install a new OMD and you only need to run omd update afterwards.