OMD Start Error

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/23 13:23:07

Yap, please see the below

My client IP = 10.234.20.36 (The IP of the server I wish to monitor.)

Monitoring server = 10.234.20.36 (where OMD is installed)

Monitored server = 10.234.20.36 (The server (client) that I want to observe)

and my Check_MK configuration is:

service check_mk
{
type = UNLISTED
port = 6556
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/check_mk_agent

# listen on IPv4 AND IPv6 when available on this host
#flags = IPv6

# If you use fully redundant monitoring and poll the client
# from more then one monitoring servers in parallel you might
# want to use the agent cache wrapper:
#server = /usr/bin/check_mk_caching_agent

# configure the IP address(es) of your Nagios server here:

#only_from = 10.234.20.36

# Don't be too verbose. Don't log every check. This might be
# commented out for debugging. If this option is commented out
# the default options will be used for this service.
log_on_success =

disable = no
}

but failed to telnet clientIP 6556

please help.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/24 08:55:35

So if I read correctly, you want to monitor your localhost only? In that case, only_from should be like this

Code: Select all

only_from = 10.234.20.36 127.0.0.1 
Also remove the # from the beginning, otherwise it is all for nothing.

Then restart xinetd

Code: Select all

systemctl restart xinetd
Test your connection ( I don't see why it wouldn't work in localhost )

Code: Select all

telnet 10.234.20.36 6556
or

Code: Select all

telnet 127.0.0.1 6556
Any good news now?

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/24 14:49:02

Dear bertalanimre,

Please check the attachment there I attached two snaps, where one is my old Check_MK which is running and another is created by me with your help. New one has an error in display, please check and advise.

Thanks.
rsz_old_check_mk.jpg
rsz_old_check_mk.jpg (91.67 KiB) Viewed 2602 times
rsz_new_check_mk.jpg
rsz_new_check_mk.jpg (55.42 KiB) Viewed 2602 times

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/24 15:12:06

Dear Friend,

You don't really understand the concept of Server and Client Server I think.
On the 1st picture I can see a lot of hosts. They are the ones I'm trying to refer to as clients. You have to add them one by one to the newly created monitoring server. As far as I can see (it it way too blurry) there are clients with IP addresses like 10.234.200.1 10.234.10.108 10.234.100.2 ... etc. When I said try your connection between the server and the client (host if you like it better), then the command shall look like this:

Code: Select all

telnet 10.234.200.1 6556
or

Code: Select all

telnet 10.234.10.108 6556
If you do this on your newly installed server, you should receive sh*t tons of data back. If you do, then you just have to add them one by one to your newly installed server. They won't add them self to the server. Why would they?

If the test shows an error make sure you check the followings:
- Firewall on your server is letting out the 6556 port
- on the client (or host if you like) check the /etc/xinet.d/check_mk_agent file and if the only_from allows your IP address (10.234.20.36)

You have to register all these hosts manually.

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/24 15:26:21

Dear Friend,

FYI, we have lost our OMD server root password that's why need to create a new OMD server. Also FYI, last week we rearranged/recreated our Hosts by clicking Hosts & Folder then New Host then IP, Host Name, etc..etc. no needed to login OMD server (we don't have OMD server password) then it shows when click All Hosts (tiled). Please see the below snap:

Thanks.
rsz_old_check_mk_host_add.jpg
rsz_old_check_mk_host_add.jpg (80.33 KiB) Viewed 2594 times

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/24 15:52:32

What root password you've lost? The system root (SSH) or the login for the website? The first one is not easy to recover, indeed but possible. The 2nd one is easy, just generate a new htaccess file on the server and done.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/26 06:34:30

So any update?

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

Re: OMD Start Error

Post by mmrsohel » 2017/05/27 05:58:59

Dear Friend,

Still same problem, when I try to view all host in my browser then it shows:
Unhandled exception: 400: Table 'services' has no column 'service_comments_with_extra_info'
please help to solve.

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

Re: OMD Start Error

Post by bertalanimre » 2017/05/31 07:23:10

Did you add at least one server and tried to connect to it with telnet before in terminal? Until you don't say: Yes, telneting form server to host works - I can't help you at all.

Post Reply