[omd-users] Migrating OMD

Dennis Sweben d_sweben at hotmail.com
Fri Jan 19 15:24:53 CET 2018


Ok I ended up staying with OMD-Labs edition, and not to check-mk-raw edition.

If anyone has any success with migrating it, I would really appreciate it can be shared here!

Thanks all!

From: "0.o Dennis o.0" <d_sweben at hotmail.com>
Date: 1-19-2018 at 12:07
To: Sven Nierlein <sven at nierlein.de>
Cc: "omd-users at lists.mathias-kettner.de" <omd-users at lists.mathias-kettner.de>
Subject: Re: [omd-users] Migrating OMD

Hi Sven,

Thank you for the link, however those steps aren’t new to me.
I will setup a clone machine and try to upgrade omdlabs on centos but not sure yet what the best approach will be.

@Andreas, I did have success with upgrading the old omdlabs to 1.2.8r23 (out of my head) backup and restore on ubuntu check-mk-raw and restore without issues
Done the changes and it starts the site without problems now.
No errors in apache
no errors on the service anymore (ssl)

But I cant connect to it by browser
Either it says SSL certificate too long
And if I do curl it says I can’t connect to port 443
some more fiddling around it now tells me in the browser
/MySite/omd not found -,-

Kind regards,
Dennis Sweben

Sent from my iPhone

On 18 Jan 2018, at 21:05, Sven Nierlein <sven at nierlein.de<mailto:sven at nierlein.de>> wrote:
Hi,

you could have a look at: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flabs.consol.de%2Fomd%2Fbackup_and_restore.html%23platform-migration-and-os-upgrades%2522&data=02%7C01%7C%7C0c83f9a4cde54006160508d55eaecd6a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636519027214374157&sdata=xL5ZgKxIw9sVQayGEhGls6WSVSJ%2F3vduRuuW4YgBiIk%3D&reserved=0
Not sure if this is true for the raw edition as well, but starting with OMD 2.40 you can just do cross-plattform
backups/restores without manually fiddeling config files. OMD will run an "omd update" internally when restoring
from a different release.

Cheers,
Sven


On 18.01.18 18:01, Dennis Sweben wrote:

Hi Andreas

Thank you soo many times!!
I got a test site up and running after loads of changes.
The profiles init script apache config modules etc

Going to redo it and write it all down and share it here as well, might be usefull for someone else :) and/or maybe someone would like to make a little bash for it

Kind regards,
Dennis Sweben

Sent from my iPhone

On 17 Jan 2018, at 22:27, Andreas Döhler <andreas.doehler at gmail.com<mailto:andreas.doehler at gmail.com> <mailto:andreas.doehler at gmail.com>> wrote:

Hi Dennis,

with such a migration you must do some manual steps. I had done this week one migration from SLES11 to actual Ubuntu and then the same "problems".
First edit the init file for the site apache - linke file for 85-apache. It is only one line with the executable for apache.
The next step are some changes to the apache config itself.
Easiest way for this is to create a test site on your new system and take this created apache config and compare it with your restored site.
The test site should have the same version as your migrated site.
There you will find many entries for the loading of apache modules. These entries must be changed to the new ones (copy and paste from the test site).

If you now try to start the apache and get another error look at the mentioned config file and compare again with the test site ones.

Best regards
Andreas

Dennis Sweben <d_sweben at hotmail.com<mailto:d_sweben at hotmail.com> <mailto:d_sweben at hotmail.com>> schrieb am Mi., 17. Jan. 2018 um 13:29 Uhr:

   Hi Robert,

   Thanks for your reply!
   I ran it and these are the results:
   sudo omd diff MySite
    * Changed content var/icinga
    * Changed content var/nagios/nagios.log
    * Changed content var/check_mk/wato/auth/auth.php
    ! Changed permissions var/check_mk/wato/auth/auth.php
    * Changed content local/lib/icinga
    * Changed content etc/auth.secret
    * Changed content etc/htpasswd
    ! Changed permissions etc/htpasswd
    * Changed content etc/apache/php-wrapper
    * Changed content etc/apache/apache.conf
    * Changed content etc/apache/conf.d/02_fcgid.conf
    * Changed content etc/mk-livestatus/xinetd.conf
    * Changed content etc/init.d/apache

   I’m not sure what the permissions should be, but I don’t really think it will solve the error “Starting dedicated Apache for site MySite…/omd/sites/MySite/etc/rc.d/85-apache: line 88: /usr/sbin/httpd: No such file or directory”

   Thanks again!

   Kind regards,
   Dennis

   On Wednesday1/17/18, 12:14, "omd-users on behalf of Robert Sander" <omd-users-bounces at lists.mathias-kettner.de<mailto:omd-users-bounces at lists.mathias-kettner.de> <mailto:omd-users-bounces at lists.mathias-kettner.de> on behalf of r.sander at heinlein-support.de<mailto:r.sander at heinlein-support.de> <mailto:r.sander at heinlein-support.de>> wrote:

       On 17.01.2018 09:21, Dennis Sweben wrote:

       > Any advice? I can’t really afford a clean site since the old one is
       > holding data from more than a year which I need to preserve.

       You should run "omd diff" in your site and compare the listed files.

       Regards
       --
       Robert Sander
       Heinlein Support GmbH
       Schwedter Str. 8/9b, 10119 Berlin

       https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.heinlein-support.de&data=02%7C01%7C%7C3fd6452c018647a7c2b108d55d9b6c43%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636517844475938146&sdata=qdjSklFGwA9n3QJCibBXFevcsWdnC4vl8QPzDYGrsL4%3D&reserved=0

       Tel: 030 / 405051-43 <tel:030%2040505143>
       Fax: 030 / 405051-19 <tel:030%2040505119>

       Zwangsangaben lt. §35a GmbHG:
       HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
       Geschäftsführer: Peer Heinlein -- Sitz: Berlin



   _______________________________________________
   omd-users mailing list
   omd-users at lists.mathias-kettner.de<mailto:omd-users at lists.mathias-kettner.de> <mailto:omd-users at lists.mathias-kettner.de>
   https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.mathias-kettner.de%2Fmailman%2Flistinfo%2Fomd-users&data=02%7C01%7C%7C0c83f9a4cde54006160508d55eaecd6a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636519027214374157&sdata=1O7kUrp%2F82o1AVxiV9VfJYbFUZc4DW7IALkwappxhNA%3D&reserved=0 <https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.mathias-kettner.de%2Fmailman%2Flistinfo%2Fomd-users&data=02%7C01%7C%7Ca222afa60a1c4215d6a308d55df12dbe%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636518212788364821&sdata=bIzMqRLvVA6HAzHqopThQlzjD%2BDXFRDSumSKxPK%2BN3s%3D&reserved=0>



_______________________________________________
omd-users mailing list
omd-users at lists.mathias-kettner.de<mailto:omd-users at lists.mathias-kettner.de>
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.mathias-kettner.de%2Fmailman%2Flistinfo%2Fomd-users&data=02%7C01%7C%7C0c83f9a4cde54006160508d55eaecd6a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636519027214374157&sdata=1O7kUrp%2F82o1AVxiV9VfJYbFUZc4DW7IALkwappxhNA%3D&reserved=0


_______________________________________________
omd-users mailing list
omd-users at lists.mathias-kettner.de<mailto:omd-users at lists.mathias-kettner.de>
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.mathias-kettner.de%2Fmailman%2Flistinfo%2Fomd-users&data=02%7C01%7C%7C0c83f9a4cde54006160508d55eaecd6a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636519027214374157&sdata=1O7kUrp%2F82o1AVxiV9VfJYbFUZc4DW7IALkwappxhNA%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20180119/b8524326/attachment-0001.html>


More information about the omd-users mailing list