OMD Start Error

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/22 10:01:35

OK. I'll stay tuned. In the meanwhile I've added some tweaks to the codes so it will will work smoothly. For me, executing only these commands, the OMD website works excelent.

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/22 11:15:29

Hi!,

Now it's running but I'm not used to this omd version, my ex-colleague created an omd that version is 1.2.2p3 and I'm used to that version and that version is more easy to use, and I know how to add, delete & modify a host but omd-2.4-labs edition I can't add, delete & modify a host. plz advice.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/22 12:07:05

Don't let the version numbers trick you. Which WebUI do you use in the older version?

The latest version has the following built-in by default:
- check_mk (my choice, da best)
- nagios
- icinga
- thrunk
- nagvis

Check which WebUI does he use and select the same for your site.

Code: Select all

sudo -i
su prod
omd stop
omd config
omd start
There you go. I'm pretty sure you'll find the one you look for. If not, then I recommend using the check_mk with it's agent. It is extremely easy to set up hosts both server and client side. If you wish, I can lend my install guide to you. ;)

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/22 12:15:10

Hi!,

He was used Check_MK, please give me the guide for Check_MK.

Thanks.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/22 12:29:01

Read the above.

sudo -i
su prod
omd stop
omd config

There it should be clear what you need to do. From then on, you only have to save your settings and restart the service.

https://mathias-kettner.de/checkmk_inst ... h_omd.html (Step 5)

Here is the hint-guide for myself that I've wrote in case I need to re-install the whole monitoring server. I think this should be good for you too. Please provide me a feedback if it works or not for you.

On the server:

Code: Select all

yum update -y
reboot
yum install epel-release -y
yum install wget htop mc vim telnet -y
rpm -Uvh "https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm"
yum install omd
firewall-cmd --list-all
firewall-cmd --zone=public --add-service=http
firewall-cmd --zone=public –add-service=https
firewall-cmd --zone=public --add-port=6556/tcp
firewall-cmd --runtime-to-permanent
omd setup
omd create monitoring
omd enable monitoring
omd start monitoring
/usr/sbin/setsebool httpd_can_network_connect 1
/usr/sbin/setsebool -P httpd_can_network_connect 1
On the client:

Code: Select all

rpm -Uvh "https://labs.consol.de/repo/stable/rhel7/x86_64/labs-consol-stable.rhel7.noarch.rpm"
yum install xinetd check-mk-agent -y
vim /etc/xinetd.d/check-mk-agent (set "only from" to your OMD servers IP address # only_from = 192.168.0.1)
systemctl restart xinetd
Test from the server:

Code: Select all

telnet clientIP 6556
Adding host on Check_MK:
- Hosts
- New Host
- Hostname (whatever we want)
- IP address (obviously, it is recommended to add the IP to the alias as well)
- Agent type (Check_MK Agent (Server))
- Save and go to services

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/22 13:31:21

Hi!,

On the server:
I mean I install that code in my OMD server, r8???

On the client:
What do you mean that????

telnet clientIP 6556
What do you mean that ClientIP?????

Thanks.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/22 14:52:20

Well, I assume you don't want to monitor only your localhost server, right?
To add new servers (hosts) they are called clients in term of the OMD server in this architecture.

On the server, yes OFC you have to execute these commands since (as you can see) it is for installing OMD server.

With telnet, you can test if the OMD server can connect to the client server. If you get tons of data back after executing this command, then the connection between the two servers are up and working. Now you can add the client server to the OMD server without any issue.

OMD server: Where OMD runs at
Monitored server (Client server): The server I wish to monitor and receive notifications in case of errors.

OFC: You can add more than one server. I have 12 servers ATM in my own OMD server and receive emails if anyone goes into a warning or error status. Luckily this is a once every week or in two weeks :)

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/23 03:29:51

My server IP address is 10.234.20.36 where I installed CentOS 7 and where I configured OMD and (set "only from" to your OMD servers IP address # only_from = 192.168.0.1) I set at only_from = 10.234.20.36 and after telnet command I got below result.

[root@localhost ~]# telnet clientIP 6556
telnet: clientIP: Name or service not known
clientIP: Host name lookup failure


now what????

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/23 12:16:59

I'm waiting your response, please help.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/23 13:03:18

'-.- your client IP = The IP of the server you wish to monitor.

Monitoring server = where OMD is installed
Monitored server = The server (client) that you want to observe

Post Reply