Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-12-01 Thread fireskyer
 

Update ( sorry I'm not so good in debug  things like that ): 

 

I only use the selfcreated localhost.cfg not any other files to exclude some migration error.

 

/omd/sites/SBA/etc/nagios/conf.d\localhost.cfg

 

 

I tried to run some other forks in my menue.

 

It comes the following errors:

 

checkmk: 

 

Cannot connect to 'unix:/omd/sites/SBA/tmp/run/live': [Errno 2] No such file or directory

 

thrurk:

SBA: ERROR: failed to open socket /omd/sites/SBA/tmp/run/live: No such file or directory.. (/omd/sites/SBA/tmp/run/live)

 

Classic Icinga:

SAME Error es nagios.

 

Here is my Virtual Host config ( apache2ctl -S):

 

VirtualHost configuration:
*:80                   xx.xx.xxx (/etc/apache2/sites-enabled/000-default.conf:1)
*:443                  xx.xx.xxx (/etc/apache2/sites-enabled/default-ssl.conf:2)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex fcgid-pipe: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex fcgid-proctbl: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

 

Seems ok or ? 

 

so which other configs should i post .. that may we're able to solve that problem ? 

 

best regards john 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-12-01 Thread fireskyer
Hello again,

 

The Problem still exist  i had made some steps:

 

-Check the nagios config 

-Created an new instance and set only an test localhost 

- Checked  the apache logs

- checked the nagios log 

 

 

Could someone bring me on Track or in the right direction ? 

 

Do i have to check my apache configs ? 

 

thanks fro help 

 

best regards john 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-11-09 Thread fireskyer
Hello Again,

 

Now i have a little bit time to set an test-run

 

So what i have done so far:

 

Give the  files in /omd/sites/SBATEST/etc/nagios/conf.d

the owner from the OMD User.

 

Modified the commands.cfg and the ressource.cfg to the new variables.

 

But i get the error again Error: Could not read host and service status information!

 

So is this an apache problem ?:

 

Here is an outline from the apache.conf: 

 

ServerName 127.0.0.1


# OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD  
# Better do not change anything in this block or you will have to
# resolve conflicts in omd cp/mv/upate:

ServerRoot "/omd/sites/SBA"
PidFile /omd/sites/SBA/tmp/apache/run/apache.pid
DocumentRoot "/omd/sites/SBA/var/www"

# Include file where TCP port number is configured. That file
# is automatically created and changed by 'omd config' if you
# change APACHE_TCP_PORT.
Include /omd/sites/SBA/etc/apache/listen-port.conf

# User/Group to run the webserver with
User SBA
Group SBA
 

Honestly . I'm a little bit helpless with thes problem 


 

regards john 



Gesendet: Freitag, 07. Oktober 2016 um 08:56 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD




Hello Andreas 

 

I set only a few config files in omd nagios folder   

/omd/sites/SBATEST/etc/nagios/conf.d

 

And i comes an whoops  Error: Could not read host and service status information!

... so which files are really needed to test an minimal config with the old nagios files.

 

Or is it an Ubuntu Permission  Problem ? my www-data user is in both omd instance groups for the instances but not in the whole omd group 

 

In former times i had the error really often and i thought i can  avoid such things if i use OMD.

 

regards john 

 

 

 

Hello Andreas, 

 


> Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

> You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

My approach is to set nagios at the first monitoring system when i migrate from the old one 

Cause atm i cannot dive deeper into the checkmk checks and their mechanism and then from time to time i would convert the nagios checks in checkmk with wato.

Or is some feature availiable in check_mk to do this really fast ? ( a tool or sth like that ) 

 


>Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

>You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

With the merge one i have to  look which one will fit best.

 


>Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

>Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 

For some time i create some Config that i can see the check hosts in nagios .. but not more .. atm check_mk is just an experience.

 

I think it's a good idea to create another instance for testing.

 

I will do some testing and  if there problems  occours i'll write back.

 

Btw. could i use icinga2 core for the standard nagios  checks or do i have to modify sth. in order to run omd with  icinga2 core.

 

thanks so far andreas 

 

regards john 

 

Gesendet: Mittwoch, 05. Oktober 2016 um 16:25 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD







Hi John

 




 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 




 

Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.

  





> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 





Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 




 





>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again






Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 





 




Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-07 Thread fireskyer

Hello Andreas 

 

I set only a few config files in omd nagios folder   

/omd/sites/SBATEST/etc/nagios/conf.d

 

And i comes an whoops  Error: Could not read host and service status information!

... so which files are really needed to test an minimal config with the old nagios files.

 

Or is it an Ubuntu Permission  Problem ? my www-data user is in both omd instance groups for the instances but not in the whole omd group 

 

In former times i had the error really often and i thought i can  avoid such things if i use OMD.

 

regards john 

 

 

 

Hello Andreas, 

 


> Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

> You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

My approach is to set nagios at the first monitoring system when i migrate from the old one 

Cause atm i cannot dive deeper into the checkmk checks and their mechanism and then from time to time i would convert the nagios checks in checkmk with wato.

Or is some feature availiable in check_mk to do this really fast ? ( a tool or sth like that ) 

 


>Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

>You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

With the merge one i have to  look which one will fit best.

 


>Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

>Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 

For some time i create some Config that i can see the check hosts in nagios .. but not more .. atm check_mk is just an experience.

 

I think it's a good idea to create another instance for testing.

 

I will do some testing and  if there problems  occours i'll write back.

 

Btw. could i use icinga2 core for the standard nagios  checks or do i have to modify sth. in order to run omd with  icinga2 core.

 

thanks so far andreas 

 

regards john 

 

Gesendet: Mittwoch, 05. Oktober 2016 um 16:25 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD







Hi John

 




 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 




 

Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.

  





> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 





Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 




 





>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again






Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 





 






>copy your Nagios state files to the site that the system is starting with
>the last state from the old system. 











The state file is also not critical... what it counts is the actual  state  but i think i still  copy these one .. it's the status.dat .. am I right ? 






Yes - you have to check the naming of the files - it is sometimes different in manual Nagios installations then OMD.

 






 

> ~/local/lib/nagios/plugins

 

where i can see the standard plugins from omd to compare thes ones with my old nagios instance ?

 






OMD delivered plugins are inside ~/lib/nagios/plugins 






 










> replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder











what do you mean with this statment .. may you could describe a little bit more exactly .. where i have to set these variable ...in the command.cfg or could i change this in the resource.cfg  ?.







Inside your current resource.cfg there is the user macro defined for the standard plugin path ($USER1$) inside OMD you have two paths for plugins the standard one and the local on ($USER2$).

As you have plugins in two paths you need to change the configuration to reflect this situation.

 

Best regards

Andreas

 

 

 

 






___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-06 Thread fireskyer
Hello Andreas, 

 


> Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

> You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

My approach is to set nagios at the first monitoring system when i migrate from the old one 

Cause atm i cannot dive deeper into the checkmk checks and their mechanism and then from time to time i would convert the nagios checks in checkmk with wato.

Or is some feature availiable in check_mk to do this really fast ? ( a tool or sth like that ) 

 


>Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

>You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

With the merge one i have to  look which one will fit best.

 


>Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

>Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 

For some time i create some Config that i can see the check hosts in nagios .. but not more .. atm check_mk is just an experience.

 

I think it's a good idea to create another instance for testing.

 

I will do some testing and  if there problems  occours i'll write back.

 

Btw. could i use icinga2 core for the standard nagios  checks or do i have to modify sth. in order to run omd with  icinga2 core.

 

thanks so far andreas 

 

regards john 

 

Gesendet: Mittwoch, 05. Oktober 2016 um 16:25 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD







Hi John

 




 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 




 

Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.

  





> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 





Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 




 





>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again






Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 





 






>copy your Nagios state files to the site that the system is starting with
>the last state from the old system. 











The state file is also not critical... what it counts is the actual  state  but i think i still  copy these one .. it's the status.dat .. am I right ? 






Yes - you have to check the naming of the files - it is sometimes different in manual Nagios installations then OMD.

 






 

> ~/local/lib/nagios/plugins

 

where i can see the standard plugins from omd to compare thes ones with my old nagios instance ?

 






OMD delivered plugins are inside ~/lib/nagios/plugins 






 










> replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder











what do you mean with this statment .. may you could describe a little bit more exactly .. where i have to set these variable ...in the command.cfg or could i change this in the resource.cfg  ?.







Inside your current resource.cfg there is the user macro defined for the standard plugin path ($USER1$) inside OMD you have two paths for plugins the standard one and the local on ($USER2$).

As you have plugins in two paths you need to change the configuration to reflect this situation.

 

Best regards

Andreas

 

 

 

 





___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-05 Thread Andreas Döhler
Hi John


>
>  how do you merge ? with rsync ?
> i would like  a tool which i can choose to keep the original ones
>  unmodified.
>

Manual merge or use a diff tool, the problem is that you want some of the
newer / actual settings inside your migrated site.
You can also add the newer rules first to your ".mk" files and then
overwrite the existing ones.


> > do you have so many classical configured Nagios checks?
>
> jep we have many classic checks.
>
>
Then it would be good to migrate the classical configuration first inside
WATO before you start with your migration.
Or other question from my side - at the moment do you define the hosts all
inside WATO in your manual Nagios/Check_MK setup?


> >integrate all files from /etc/check_mk/conf.d and
> >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't
> >overwrite the files, i merge these files >- copy the autocheck files from
> /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories
> all hosts again
> Beside the fact the we don't have many checkmk checks ( it's still for
> supporting nagios.. may to replace some checks in  future ) i think i can
> skip these step.
>
>


> >copy your Nagios state files to the site that the system is starting with
> >the last state from the old system.
>
> The state file is also not critical... what it counts is the actual  state
>  but i think i still  copy these one .. it's the status.dat .. am I right ?
>
Yes - you have to check the naming of the files - it is sometimes different
in manual Nagios installations then OMD.


>
> > ~/local/lib/nagios/plugins
>
> where i can see the standard plugins from omd to compare thes ones with my
> old nagios instance ?
>
>
OMD delivered plugins are inside ~/lib/nagios/plugins

> > replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder
>
> what do you mean with this statment .. may you could describe a little bit
> more exactly .. where i have to set these variable ...in the command.cfg or
> could i change this in the resource.cfg  ?.
>
Inside your current resource.cfg there is the user macro defined for the
standard plugin path ($USER1$) inside OMD you have two paths for plugins
the standard one and the local on ($USER2$).
As you have plugins in two paths you need to change the configuration to
reflect this situation.

Best regards
Andreas




>
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-05 Thread fireskyer
Hello Andreas

 

First of all ... thanks for the infos 

 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 


> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 


>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again


Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 


>copy your Nagios state files to the site that the system is starting with
>the last state from the old system.

The state file is also not critical... what it counts is the actual  state  but i think i still  copy these one .. it's the status.dat .. am I right ? 

 

> ~/local/lib/nagios/plugins

 

where i can see the standard plugins from omd to compare thes ones with my old nagios instance ?

 


> replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder

what do you mean with this statment .. may you could describe a little bit more exactly .. where i have to set these variable ...in the command.cfg or could i change this in the resource.cfg  ?.

 

regards john 

 

 

 


 

 

 

 

 

 


 

 

 


 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-05 Thread Andreas Döhler
Hi Jon,

Your first step -> copy Nagios files - is not the best idea. Do you have so
many classical configured Nagios checks?

Migration looks at my systems this way.
- integrate all files from /etc/check_mk/conf.d and
/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't
overwrite the files, i merge these files
- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if
you don't want to inventories all hosts again
- copy your Nagios state files to the site that the system is starting with
the last state from the old system
- copy only the plugins what are not included in OMD to
~/local/lib/nagios/plugins
- replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/
folder
- generate a new check_mk configuration with cmk -R inside your OMD site
and test if all is working

What is not described here is the migration of PNP data. These depends on
the system architecture and storage format of your PNP data.

Best regards
Andreas


 schrieb am Mi., 5. Okt. 2016 um 14:04 Uhr:

> OMD omd-2.11.20161004-labs-edition
> Nagios 3.5
> Checkmk  1.2.6p12
>
>
>
> Hello Community,
>
> Where trying to migrate from our Nagios/Check_mk system to OMD.
>
> I think the most business is done with copy&paste some config files.
>
> Here is my approach:
>
>
> Change to instance  OMD[mysite] with sudo su - mysite
>
> Nagios Files:
>
> Cfg Files: Copy all cfg Files  and the ( nagios.cfg)  from old nagios
> folder   /etc/mysite  to  /etc/nagios/ and ~conf.d
>
>
> Plugins:
>
> Copy all PLugins from usr\local\nagios\libexec to
> ~/local/lib/nagios/plugins
>
> Change the owner to omd standard mysite:mysite
>
>
> check_mk Files:
>
> OMD[mysite]:~/etc/check_mk
>
> i don't know exaclty which i should replace and which should be kept.
>
>
> I will be great if someone can give me some advices which files are
> crtitical or shouldnt replaced with the old ones.
>
> regards john
>
>
> ___
> omd-users mailing list
> omd-users@lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
>
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users