OMD Start Error

General support questions
mmrsohel
Posts: 15
Joined: 2017/05/18 07:04:45

OMD Start Error

Post by mmrsohel » 2017/05/18 07:43:59

Hi!
For the first time I'm trying to install OMD, all completed but at the end when trying to start OMD then it shows:

OMD[Check_MK]:~$ omd start
Starting dedicated apache for site Check_MK...httpd: Syntex error on line 102 of /omd/sites/Check_MK/etc/apache/apache.conf: Cannot load /usr/lib64/httpd/modules/mod_authn_default.so into server: /usr/lib64/httpd/modules/mod_authn_default.so: cannot open shared object file: No such file or directory....ERROR
Starting rrdcached.../omd/sites/Check_MK/bin/rrdcached: error while loading shared libraries: libpng 12.so.0: cannot open shared object file: No such file or directory
Error
npcd already started...
Starting nagios...Already running.
Initializing Crontab...OK

bertalanimre
Posts: 140
Joined: 2015/06/02 13:04:03

Re: OMD Start Error

Post by bertalanimre » 2017/05/18 09:49:04

Do you use apache on the server for anything else? Also if you don't show us what is in the line 102 in your /omd/sites/Check_MK/etc/apache/apache.conf file, then we hardly can help you Mate.

Please, describe us how you installed it and don't just give us a link, because we can see that on the link, it works fine. Yours is not. So clearly you've done something different. No offense, just trying to help you. ;)

mmrsohel
Posts: 15
Joined: 2017/05/18 07:04:45

Re: OMD Start Error

Post by mmrsohel » 2017/05/18 12:07:30

Hi!
Thanks for your reply. Yes on that server already running another monitoring tool like Nagios® Core™
Version 4.1.0

and I'm using centos 7 in VMWare and in that file "/omd/sites/Check_MK/etc/apache/apache.conf" I saw lots of line written and actually I don't know how copy that line.

How I installed OMD:

1) wget "http://files.omdistro.org/releases/cent ... x86_64.rpm"

2) rpm -ivh omd-1.10-rh61-31.x86_64.rpm
yum install glibc

3) rpm -ivh omd-1.30-rh66-35.x86_64.rpm 2>> /tmp/list
xargs yum -y install < /tmp/list

4) wget http://repo.mysql.com/mysql-community-r ... noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
yum install mysql-server
systemctl start mysqld

5) wget http://fping.org/dist/fping-3.10.tar.gz
tar -xvf fping-3.10.tar.gz
cd fping-3.10
./configure
make
make install

6) ./configure --prefix=/usr/local --enable-ipv4
make
make install
fping 10.234.20.20 10.234.20.21

7) omd version

8) Create OMD directory
omd create Check_MK
su - Check_MK

9) omd start

bertalanimre
Posts: 140
Joined: 2015/06/02 13:04:03

Re: OMD Start Error

Post by bertalanimre » 2017/05/18 13:11:36

Having OMD besides other working Nagios and apache will make conflicts in my opinion a lot. OMD can be installed via yum and I strongly recommend that way.

Also I would create a new VM where you only do the following to install:

Code: Select all

yum update
yum install epel-release
rpm -Uvh "https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm"
yum install omd
This will install everything you'll need (like httpd, mariadb, php (5.4)...etc), and it won't interfere with anything.

From that point, all you have to do is to act according to the OMD-s user manual.

Code: Select all

omd create prod
omd enable prod
omd start prod
And voiala. This worked for me every time I've done it. Also, do not forget to allow port 6556 in the firewalld.

mmrsohel
Posts: 15
Joined: 2017/05/18 07:04:45

Re: OMD Start Error

Post by mmrsohel » 2017/05/20 09:11:53

Hi!,
I had try with your all instruction step by step, but couldn't access from browser, please see the below:

After completed then it shows:

The site can be started with omd start prod.
The default web UI is available at http://server_name/prod/ and tried also http://SERVER_IP_Address/prod
The admin user for the web applications is omdadmin with password omd.
Please do a su - prod for administrator of this site.

after that open the prot 6556 by typing

firewall-cmd --permanent --add-port=6556/tcp

and also reload this port by typing

firewall-cmd --reload

I also tried after disable the firewall then shows in my browser:

OMD: Site Not Started

You need to start this site in order to access the web interface.

but OMD is started

plz advice

mmrsohel
Posts: 15
Joined: 2017/05/18 07:04:45

Re: OMD Start Error

Post by mmrsohel » 2017/05/22 06:45:53

Hi!,

I tried second time but same problem yet, plz help I'm waiting your response.

bertalanimre
Posts: 140
Joined: 2015/06/02 13:04:03

Re: OMD Start Error

Post by bertalanimre » 2017/05/22 09:09:40

Are you still trying on the same server? Can you install it on a virtual server on a fresh install of CentOS 7? I'm still thinking what could be the issue tho, but a result from your experiences about installing OMD on a virtual machine would be very useful.

mmrsohel
Posts: 15
Joined: 2017/05/18 07:04:45

Re: OMD Start Error

Post by mmrsohel » 2017/05/22 09:20:26

Hi!,

I'm trying in different VM by fresh installing CentOS7

bertalanimre
Posts: 140
Joined: 2015/06/02 13:04:03

Re: OMD Start Error

Post by bertalanimre » 2017/05/22 09:24:39

So what you are saying you've executed the steps I've provided a few reply before and the OMD site doesn't even start up?

Code: Select all

yum update
reboot
yum install epel-release
rpm -Uvh "https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm"
yum install omd
omd create prod
omd enable prod
omd start prod
firewall-cmd --zone=public --add-service=http
firewall-cmd --zone=public --add-service=https
firewall-cmd --runtime-to-permanent
setenforce 0
Then visit from a 3rd device the URL

Code: Select all

https://yourIP/prod
- Can you show us the command and output that fails first from this list?
- Can you show us the output of "omd create prod" ?
- Can you show us the output of "omd start prod" ?

I'll try the same now to see if it works or I've messed up something in the code.
Last edited by bertalanimre on 2017/05/22 10:00:44, edited 3 times in total.

mmrsohel
Posts: 15
Joined: 2017/05/18 07:04:45

Re: OMD Start Error

Post by mmrsohel » 2017/05/22 09:28:52

OK, I'll create another VM then install CentOS 7 then Install OMD step by step what you suggested then inform you.

Till then plz wait.

Post Reply