I can start from scratch if only there is some step-by-step tutorial, but nowhere is mentioned what i actually need to install and
configure on remote site Nagios server.
All instructions are just simple change in OMD server configuration and everything works like a charm…
···
From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Stjepan Vučić
Sent: Thursday, May 28, 2015 2:14 PM
To: Marcel Schulte; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] OMD distributed monitoring
Maybe I need to patch Nagios for livestatus to work?
I got information that it might be the case, I don’t know…
Regards,
Stjepan
From:
checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Stjepan Vučić
Sent: Thursday, May 28, 2015 2:06 PM
To: Marcel Schulte; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] OMD distributed monitoring
I did that, but now I have another error:
Unhandled exception: Malformed output. Livestatus TCP socket might be unreachable.
This is from OMD:
service livestatus
{
type = UNLISTED
socket_type = stream
protocol = tcp
port = 6557
wait = no
limit to 100 connections per second. Disable 3 secs if above.
cps = 100 3
set the number of maximum allowed parallel instances of unixcat.
Please make sure that this values is at least as high as
the number of threads defined with num_client_threads in
etc/mk-livestatus/nagios.cfg
instances = 500
limit the maximum number of simultaneous connections from
one source IP address
per_source = 250
Disable TCP delay, makes connection more responsive
flags = NODELAY
user = nagiosadmin
server = /usr/bin/unixcat
server_args = /usr/local/nagios/var/rw/live
configure the IP address(es) of your Nagios server here:
only_from = 127.0.0.1 10.0.20.1 10.0.20.2 172.16.212.9
----------------------------------------------------------
These parameters are handled and affected by OMD
Do not change anything beyond this point.
Disabling is done via omd config set LIVESTATUS_TCP [on/off].
Do not change this:
disable = no
TCP port number. Can be configure via LIVESTATUS_TCP_PORT
port = 6557
Paths and users. Manual changes here will break some omd
commands such as ‘cp’, ‘mv’ and ‘update’. Do not toutch!
user = monitoring
server = /omd/sites/monitoring/bin/unixcat
server_args = /omd/sites/monitoring/tmp/run/live
----------------------------------------------------------
}
This is from Nagios before i coppied it from OMD:
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
limit to 100 connections per second. Disable 3 secs if above.
cps = 100 3
set the number of maximum allowed parallel instances of unixcat.
Please make sure that this values is at least as high as
the number of threads defined with num_client_threads in
etc/mk-livestatus/nagios.cfg
instances = 500
limit the maximum number of simultaneous connections from
one source IP address
per_source = 250
Disable TCP delay, makes connection more responsive
flags = NODELAY
user = omdadmin
server = /usr/bin/unixcat
server_args = /var/lib/nagios/rw/live
configure the IP address(es) of your Nagios server here:
only_from = 127.0.0.1 10.0.20.1 10.0.20.2 10.7.11.44
disable = no
}
~
~
And now it is the same as on OMD with error I mentioned in first sentence in this post…
I can’t find what’s wrong, probably those parameters you mentioned: server, server_args or user…
Kind regards,
Stjepan
From: Marcel Schulte [mailto:schulte.marcel@gmail.com]
Sent: Thursday, May 28, 2015 1:55 PM
To: Stjepan Vučić; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] OMD distributed monitoring
Hi Stjepan,
I guess you don’t have livestatus configured in xinetd on Nagios server, do you?
You can take the content of (on your OMD server) ~/etc/mk-livestatus/xinetd.conf, paste it to a xinetd conf file on your Nagios server (e.g. /etc/xinted.d/livestatus) and tweak it to your needs (at least port, user, server and server_args).
After a xinetd restart the connection to livestatus should work - as long as there are no other stones on your network way, e.g. lokal or network firewalls, routing, whatever…
HTH,
Marcel
Stjepan Vučić Stjepan.Vucic@sedamit.hr schrieb am Do., 28. Mai 2015 um 12:11 Uhr:
Hello,
I am having trouble setting up OMD Distributed monitoring multisite.
On one server I have clean instalation of OMD, on other server I have Nagios instalation with couple of devices being monitored.
What do I need to set up or install on Nagios Server for Distributed monitoring to work?!
What do I need to set up or install on OMD Server for Distributed monitoring to work?!
I did everything from OMD side (enable distributed monitoring, set up TCP port towards Nagios server IP address and port 6557, but every time get error:
Nagios server - Livestatus error
Cannot connect to ‘tcp:ipaddress_of_host:6557’: [Errno 103] Software caused connection abort
I am trying to make this work for couple of weeks, been installing check_mk, livestatus, etc. But nothing helps, every time sam error and no second nagios hosts in OMD.
Checking for TCP connection between OMD and Nagios host works just fine, I have tested it.
This is configuration part on OMD server
multisite.mk
sites = {
connect to local Nagios
“monitoring” : {
“alias” : “monitoring”
},
connect to remote site
“scnag”: {
“alias”: “Nagios Server”,
“socket”: “tcp: ipaddress_of_host:6557”,
“url_prefix”: “http:// ipaddress_of_host /”,
},
}
Regards,
Stjepan
Napomena: Ova poruka sadrzi podatke povjerljive prirode, iskljucivo namijenjene osobama oznacenima kao primateljima te se pristup od strane bilo koje druge osobe smatra neovlastenim. Ukoliko niste oznaceni primatelj, svaka distribucija,
kopiranje, umnozavanje ili otkrivanje sadrzaja trecim osobama je strogo zabranjeno i smatra se protuzakonitim. Ukoliko ste dobili ovu poruku, a niste oznaceni primatelj, molimo Vas da sto prije obavijestite posiljatelja poruke i unistite sve postojece kopije.
Ova napomena takodjer potvrdjuje da je ova elektronicka poruka testirana na postojanje racunalnih virusa.
Disclaimer: The information in this email is confidential and it is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any distribution, copying, duplication or disclosure is prohibited
and may be unlawful. If you have received this email in error, please notify the sender immediately and destroy it, and all copies of it. This footnote also confirms that this email message has been swept for the presence of computer viruses.
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
We’ll meet in Munich for the 2nd Check_MK Conference!
Book your place now and be part of it.
October 18th-20th, 2015
http://mathias-kettner.de/conference
Napomena: Ova poruka sadrzi podatke povjerljive prirode, iskljucivo namijenjene osobama oznacenima kao primateljima te se pristup od strane bilo koje druge osobe smatra neovlastenim. Ukoliko niste oznaceni primatelj, svaka distribucija,
kopiranje, umnozavanje ili otkrivanje sadrzaja trecim osobama je strogo zabranjeno i smatra se protuzakonitim. Ukoliko ste dobili ovu poruku, a niste oznaceni primatelj, molimo Vas da sto prije obavijestite posiljatelja poruke i unistite sve postojece kopije.
Ova napomena takodjer potvrdjuje da je ova elektronicka poruka testirana na postojanje racunalnih virusa.
Disclaimer: The information in this email is confidential and it is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any distribution, copying, duplication or disclosure is prohibited
and may be unlawful. If you have received this email in error, please notify the sender immediately and destroy it, and all copies of it. This footnote also confirms that this email message has been swept for the presence of computer viruses.
Napomena: Ova poruka sadrzi podatke povjerljive prirode, iskljucivo namijenjene osobama oznacenima kao primateljima te se pristup od strane bilo koje druge osobe smatra neovlastenim. Ukoliko niste oznaceni primatelj, svaka distribucija,
kopiranje, umnozavanje ili otkrivanje sadrzaja trecim osobama je strogo zabranjeno i smatra se protuzakonitim. Ukoliko ste dobili ovu poruku, a niste oznaceni primatelj, molimo Vas da sto prije obavijestite posiljatelja poruke i unistite sve postojece kopije.
Ova napomena takodjer potvrdjuje da je ova elektronicka poruka testirana na postojanje racunalnih virusa.
Disclaimer: The information in this email is confidential and it is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any distribution, copying, duplication or disclosure is prohibited
and may be unlawful. If you have received this email in error, please notify the sender immediately and destroy it, and all copies of it. This footnote also confirms that this email message has been swept for the presence of computer viruses.