Hi guys. just did a fresh install of checkmk Version: 1.6.0p13 on my ubuntu 18.04 and I also installed the agent of the same version to monitor the same host that I have the check server.
I can access the web interface, but when I go to add the host in WATO, I getting error messages during the scan:
Full scan finished after 1.51 s at 2020-07-28 21:24:53. Found no services yet. To retry please execute a full scan. Job details
Starting job…
FETCHING DATA
[agent] Execute data source
[agent] ERROR: Communication failed: [Errno 111] Connection refused
[piggyback] Execute data source
No piggyback files for ‘localhost’. Skip processing.
No piggyback files for ‘127.0.0.1’. Skip processing. Completed.
the agent is working here is the output of the command:
Do you have any Checkmk related file in /etc/xinetd.d like /etc/xinetd.d/check_mk? If so, what’s its content? It should somehow similar to
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 = 127.0.0.1 10.0.20.1 10.0.20.2
# 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
}
and here is the content for check_mk_agent
$ more check_mk_agent
service check_mk
{
type = UNLISTED
port = 6556
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/local/bin/check_mk_agent
only_from = 127.0.0.1
disable = no
}
and the content for check_mk
check_mk is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation in version 2. check_mk is distributed
in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more de-
tails. You should have received a copy of the GNU General Public
License along with GNU Make; see the file COPYING. If not, write
to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301 USA.
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 = 127.0.0.1
# 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 = yes