[Check_mk (english)] help troubleshooting, check_mk multisite with solaris inetd

Hello
I am new to check_mk and I have been trying to get check_mk/multisite
on our environment,

but I don't manage to set it up properly

I have installed a check_mk livestatus on a central server, and i want
to add the rest of the nagios running on the environment; on each
nagios I have compiled the check_livestatus plugins and have added the
necessary lines to nagios.conf

the servers where the nagios are running are solaris 10 so xinetd is
not readily available; i have however tried to configure inetd the
following way:

I added this line to /etc/services:
livestatus 6557/tcp

I have added the following to /etc/inetd.conf
livestatus stream tcp nowait nagios /usr/local/bin/unixcat
/usr/local/nagios/var/rw/live

I have used inetconv to convert the service to smf: and netstat show
it is listening to the port.

netstat -an | grep 6557
      *.6557 *.* 0 0 49152 0 LISTEN

On the solaris box where the production nagios is running i can issue
commands eg:

echo 'GET contacts' | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live

on the server where check_mk multisite is instlaled i issue the command:

netcat -vv 172.16.1.xx 6557 < query

172.16.1.xx: inverse host lookup failed: Unknown host
(UNKNOWN) [172.16.1.xx] 6557 (?) open
Usage: /usr/local/nagios/var/rw/live UNIX-socket
sent 10, rcvd 49

also
what would be the sintax to add to the multisite.mk to get the data
from the remote host on the check_mk livestatus; I have so far the
following but with no success:

   "nagios-ext": {
        "alias": "nagios-ext",
        "socket": "tcp:172.16.1.xx:6557",
        "nagios_url": "/nagios",
        "nagios_cgi_url": "/nagios/cgi-bin",
        "timeout": 10,
    },

On the check_mk multisite web interface i have this error:

Livestatus error
Malformed output. Livestatus TCP socket might be unreachable.

I really hope you can help me detect and solve the issues I am having here.

kind regards.

···

--
Mario Garcia Ortiz
ABSI SA
224 Bd de l'Humanité
1190 Brussels Belgium
www.absi.be
Tel 00 322 333 40 00

Hello,

thank you for your instructions. I have solved the problem by making a little
script called multuside.sh in /usr/bin

#!/usr/bin/bash
/usr/bin/unixcat /var/opt/csw/nagios/rw/live

I have changed the line in inetd.conf

livestatus stream tcp nowait nagios /usr/bin/multisite.sh

and now it works.

Best regards
Thomas Hammacher