[Check_mk (english)] Multisite not showing host's IP address

Greg Cabaj Greg.Cabaj at tradition.com
Wed Jul 13 08:07:05 CEST 2016


Hi Marcel,

Many thanks for coming back to me on this! I had similar impression. Also spoke to Jam Mulch and we kind of got to the same conclusions.
We could not find anything wrong in the configuration.

Will build from source both check_mk and livestatus and create rpms for our system later.

Many thanks,
Greg

FYI: The email was refused by the mailing lists when I added screenshots, so below is the conversation on this topic without screenshots:

Yes, correct. There is no Check_MK active host check. These are all passive checks, however MK-Livestatus is collecting also IP address from nagios.
The thing, whether multisite displays is or not is a different matter.
No worries – thanks for all the thoughts.
I will try to use the same version of check_mk and mk_livestatus, maybe this will help.

Thanks,
Greg

From: Jam Mulch [mailto:spammagnet10 at gmail.com]
Sent: 12 July 2016 14:37
To: Greg Cabaj
Subject: Re: [Check_mk (english)] Multisite not showing host's IP address

So, as far as check_mk is concerned, it's a passive check...multisite is just displaying the data nagios collected
on it's own. Since there is no check_mk active host check (I'm assuming), check_mk doesn't need an ip address
for that host, so what you are seeing might be normal. I don't have my nagios xi server configured in
check_mk distributed monitoring right now, so I can't verify...
On 7/12/2016 8:55 AM, Greg Cabaj wrote:
The hosts are monitored with Nagios Core and the checks you see are the native Nagios Core checks from nagios-plugins-2.1.1.tar.gz.
On the top of Nagios Core we run Check MK (Multisite). This will be aggregating more nagios hosts in the future (distributed monitoring)
The checks you can see are passed from Nagios Core via MK-Livestatus (I downloaded and compiled it separately. Also manually configured xinetd as per documentation)

MK-Livestatus looks fine, as it pulls IP address from nagios, but check_mk (Multisite) does not seem to take it:

(PRD)[root@***prdsrv-nagios1 /etc/nagios/hosts]# echo 'GET hosts' | unixcat /usr/local/nagios/var/rw/live | grep nagios1
1;0;0;;;1;10.45.130.11;***prdsrv-nagios1;check-host-alive;check-host-alive;0;0;5.0000000000e+00;0;24x7;0;1;;;;;admins;nagiosadmin;1;0;;;;***prdsrv-nagios1.**********;;;;1;4.0013540000e+00;;0.0000000000e+00;1;;0;1;0.0000000000e+00;;;;1;1;1;0;0;0;1468327394;0;1468237434;0;0;1468237434;0;0;1468327398;0.0000000000e+00;;0.0000000000e+00;10;;;0;0;;***prdsrv-nagios1.**********;1468327698;0;0;;;;;1.2000000000e+02;workhours;1;13;0;0;13;0;0;13;0;0;0;1;;0;0.0000000000e+00;rta=0.023000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0;PING OK - Packet loss = 0%, RTA = 0.02 ms;-1;1;1.0000000000e+00;0;;Total Processes,Swap Usage,SSH,Partition Var,Partition Tmp,Partition Root,Partition Opt,Partition Home,Partition Boot,PING,HTTP,Current Users,Current Load;Total Processes|0|1|PROCS OK: 146 processes with STATE = RSZDT|0|1|4|0|0,Swap Usage|0|1|SWAP OK - 100% free (4095 MB out of 4095 MB)|0|1|4|0|0,SSH|0|1|SSH OK - OpenSSH_5.3 (protocol 2.0)|0|1|4|0|0,Partition Var|0|1|DISK OK - free space: /var 2497 MB (88% inode=98%):|0|1|4|0|0,Partition Tmp|0|1|DISK OK - free space: /tmp 922 MB (99% inode=99%):|0|1|4|0|0,Partition Root|0|1|DISK OK - free space: / 2164 MB (57% inode=83%):|0|1|4|0|0,Partition Opt|0|1|DISK OK - free space: /opt 47253 MB (99% inode=99%):|0|1|4|0|0,Partition Home|0|1|DISK OK - free space: /home 1665 MB (88% inode=95%):|0|1|4|0|0,Partition Boot|0|1|DISK OK - free space: /boot 66 MB (37% inode=99%):|0|1|4|0|0,PING|0|1|PING OK - Packet loss = 0%, RTA = 0.03 ms|0|1|4|0|0,HTTP|0|1|HTTP OK: Status line output matched "401" - 738 bytes in 0.000 second response time|0|1|4|0|0,Current Users|0|1|USERS OK - 1 users currently logged in|0|1|4|0|0,Current Load|0|1|OK - load average: 0.00, 0.00, 0.00|0|1|4|0|0;Total Processes|0|1|PROCS OK: 146 processes with STATE = RSZDT,Swap Usage|0|1|SWAP OK - 100% free (4095 MB out of 4095 MB),SSH|0|1|SSH OK - OpenSSH_5.3 (protocol 2.0),Partition Var|0|1|DISK OK - free space: /var 2497 MB (88% inode=98%):,Partition Tmp|0|1|DISK OK - free space: /tmp 922 MB (99% inode=99%):,Partition Root|0|1|DISK OK - free space: / 2164 MB (57% inode=83%):,Partition Opt|0|1|DISK OK - free space: /opt 47253 MB (99% inode=99%):,Partition Home|0|1|DISK OK - free space: /home 1665 MB (88% inode=95%):,Partition Boot|0|1|DISK OK - free space: /boot 66 MB (37% inode=99%):,PING|0|1|PING OK - Packet loss = 0%, RTA = 0.03 ms,HTTP|0|1|HTTP OK: Status line output matched "401" - 738 bytes in 0.000 second response time,Current Users|0|1|USERS OK - 1 users currently logged in,Current Load|0|1|OK - load average: 0.00, 0.00, 0.00;Total Processes|0|1,Swap Usage|0|1,SSH|0|1,Partition Var|0|1,Partition Tmp|0|1,Partition Root|0|1,Partition Opt|0|1,Partition Home|0|1,Partition Boot|0|1,PING|0|1,HTTP|0|1,Current Users|0|1,Current Load|0|1;9.8333333333e-01;0;1;;13;0;0;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00

The site configuration is :
/opt/omd/sites/multisite/etc/check_mk/multisite.mk

………
……
…
sites = {
  "Production": {
     "alias":          "Production",
     "socket":         "tcp:10.45.130.11:6557",
     "url_prefix":     "http://10.45.130.11/"<http://10.45.130.11/>,
   },
}

Livestatus is active and listening on 6557.


/etc/nagios/nagios.cfg:
………
……
…
broker_module=/usr/local/lib/mk-livestatus/livestatus.o inventory_path=/etc/nagios/inventory /usr/local/nagios/var/rw/live
event_broker_options=-1


So in the end I am slightly lost, what could be wrong.
Thanks again for looking into it.

Thanks,
Greg



From: Jam Mulch [mailto:spammagnet10 at gmail.com]
Sent: 12 July 2016 12:59
To: Greg Cabaj
Subject: Re: [Check_mk (english)] Multisite not showing host's IP address

How is that host being monitored? I don't see a check_mk service for it and far fewer
services than I'm used to seeing from the check_mk agent. Is it using snmp,
or is the data being provided via piggyback from some other host?






From: Marcel Schulte [mailto:schulte.marcel at gmail.com]
Sent: 12 July 2016 23:32
To: Greg Cabaj; checkmk-en at lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Multisite not showing host's IP address

Hi Greg,

if you need Nagios4 you've to build check_mk completely from source, do not mix version 1.2.8 with 1.2.6 - you will get issues (like the one you're already facing) sooner or later.

Regards,
Marcel

Greg Cabaj <Greg.Cabaj at tradition.com<mailto:Greg.Cabaj at tradition.com>> schrieb am Di., 12. Juli 2016 um 13:13 Uhr:
Dear All,

First of all big thanks to Mathias Kettner and the team for great monitoring package : Check_MK

I just convinced business that it is worth implementing it in our company and building proof-of-concept configuration.

During installation and configuration I found the issue, I could not resolve in the last few days, unfortunately.

-          When I go to multisite page and choose in left-side menu: Hosts -> All hosts -> server1.fqdn.com<http://webdefence.global.blackspider.com/urlwrap/?q=AXicY3RmyOBgYLilycBQlFNpYJioV1xUppebmJmTnJ9XUpSfo5ecn8tQaubsGx5RXGpgYGRkYsTgXpSaruecmJSY5VBSlJiSWZKZnwdWl1FSUmClr1-cWlSWWmSol1aYAhFnYFiSz8AAABfuIgs&Z> and click the server1.fqdn.com<http://webdefence.global.blackspider.com/urlwrap/?q=AXicY3RmyOBgYLilycBQlFNpYJioV1xUppebmJmTnJ9XUpSfo5ecn8tQaubsGx5RXGpgYGRkYsTgXpSaruecmJSY5VBSlJiSWZKZnwdWl1FSUmClr1-cWlSWWmSol1aYAhFnYFiSz8AAABfuIgs&Z> at the top of table, I can see that “Host addresses” field is empty.

-          Same issue is for all other hosts I aim to monitor.

-          All services are in OK status.

Installation details:

The installation is currently done on one VMware server:

OS: Oracle Linux Server release 6.6
Kernel: 2.6.32-573.8.1.el6.x86_64
Standalone Nagios installation: Nagios Core 4.1.1
Check_MK installed with: check-mk-raw-1.2.8p4-el6-36.x86_64.rpm (Although I intended to use it only for multisite to obtain hosts from Nagios Core)
Livestatus installation with: mk-livestatus-1.2.6p16.tar.gz   (Did run ./configure --with-nagios4 )

The site has been successfully configured in /opt/omd/sites/multisite/etc/check_mk/multisite.mk<http://webdefence.global.blackspider.com/urlwrap/?q=AXicY3RmyOBgYLilycBQlFNpYJioV1xUppebmJmTnJ9XUpSfo5ecn8tQaubsGx5RXGpgYGRkYsTgXpSaruecmJSY5VBSlJiSWZKZnwdWl1FSUmClr59bmlOSWZxZkqqXm83AwLAkn4EBAJCuIOU&Z>
The livestatus service/listener has been configured and is running from xinetd.
The nagios.cfg has added appropriate modules (livestatus.o) as per the documentation.

The Livestatus Query Language is returning all server’s details, including their IP addresses, but when I go to the GUI I see empty “Host addresses” field for each host.

I see no errors in the logs.

Has anyone experienced anything similar?

I would appreciate very much any hint.
Thanks in advance.

Regards,
Greg


________________________________
The information herein may have been obtained from various sources. Any opinion expressed may be that of the sender only, is subject to change without notice and should be independently evaluated. Nothing herein constitutes investment advice or an offer, or solicitation of an offer, to buy or sell any financial product. Any data consists of purely indicative prices and should not be relied upon to revalue any commercial positions held by any recipient. Tradition makes no warranty that the data represent or indicates prices at which transactions may be or have been made by any Tradition Group company. To the maximum extent of the law, Tradition accepts no responsibility for, and cannot and does not warrant the integrity, accuracy, quality, completeness, merchantability or suitability for a particular purpose or requirement of the information or data, even if arising out of the negligence of Tradition or otherwise. Tradition accepts no liability for any direct, indirect or other consequential loss arising out of any use of the information contained in this document or any omission from it. This communication is directed at Eligible Counterparties and Professional Clients as defined by the FCA. It is not for distribution to nor should it be relied upon by Private Clients. It is not intended for distribution to, or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to any applicable law or regulation. Please note that, for business or compliance reasons, we may monitor and read emails sent or received using our servers or equipment. Tradition (UK) Ltd (937647), Tradition Financial Services Ltd (1046064), TFS Derivatives Ltd (4051930), Tradition London Clearing Ltd (3633863), Trad-X (UK) Ltd (7712475) and TFS-ICAP Ltd (4025995) registered in England at Beaufort House, 15 St Botolph Street, London EC3A 7QX; authorised and regulated by the Financial Conduct Authority. VAT No: GB 365 4639 27 except TFS-ICAP GB 766 0854 05.



_______________________________________________
checkmk-en mailing list
checkmk-en at lists.mathias-kettner.de<mailto:checkmk-en at lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


Click here<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==> to report this email as spam.

________________________________
The information herein may have been obtained from various sources. Any opinion expressed may be that of the sender only, is subject to change without notice and should be independently evaluated. Nothing herein constitutes investment advice or an offer, or solicitation of an offer, to buy or sell any financial product. Any data consists of purely indicative prices and should not be relied upon to revalue any commercial positions held by any recipient. Tradition makes no warranty that the data represent or indicates prices at which transactions may be or have been made by any Tradition Group company. To the maximum extent of the law, Tradition accepts no responsibility for, and cannot and does not warrant the integrity, accuracy, quality, completeness, merchantability or suitability for a particular purpose or requirement of the information or data, even if arising out of the negligence of Tradition or otherwise. Tradition accepts no liability for any direct, indirect or other consequential loss arising out of any use of the information contained in this document or any omission from it. This communication is directed at Eligible Counterparties and Professional Clients as defined by the FCA. It is not for distribution to nor should it be relied upon by Private Clients. It is not intended for distribution to, or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to any applicable law or regulation. Please note that, for business or compliance reasons, we may monitor and read emails sent or received using our servers or equipment. Tradition (UK) Ltd (937647), Tradition Financial Services Ltd (1046064), TFS Derivatives Ltd (4051930), Tradition London Clearing Ltd (3633863), Trad-X (UK) Ltd (7712475) and TFS-ICAP Ltd (4025995) registered in England at Beaufort House, 15 St Botolph Street, London EC3A 7QX; authorised and regulated by the Financial Conduct Authority. VAT No: GB 365 4639 27 except TFS-ICAP GB 766 0854 05.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20160713/4492fd88/attachment-0001.html>


More information about the checkmk-en mailing list