Graphs Not Showing in CheckMK - Need Help Troubleshooting

CMK version:Checkmk Enterprise Edition 2.2.0b6
**OS version:CentOS

Error message: As soon as you add your Checkmk server to the monitoring, a graph showing the history of your host problems will appear here. Please refer to the Checkmk user guide for more details.

I’m encountering an issue where my graphs are not showing up in CheckMK. The dashboard shows that the services and hosts are being monitored, but the graphs for the metrics are missing. I’m hoping someone can help me troubleshoot this.

Issue Description:

The main dashboard and detailed views are not displaying graphs for the monitored services and hosts. The graphs used to work, but they have recently disappeared.

What I’ve Tried So Far:

  1. Verified Time Range:
  • Ensured that the selected time range in the dashboard includes the period where data should be available.
  1. Checked Data Collection:
  • Verified that data collection is active and services are being monitored. The service statistics and host statistics are showing up.
  1. Checked Service and Agent Status:
    The agent on running on checkmk server exits with err code 111 (refused to connect)
  2. Reviewed Configuration Changes:
  • Checked recent configuration changes to ensure nothing was altered that could affect the graph display.
  1. Checked Logs:
  • Reviewed the CheckMK logs for any errors or warnings but didn’t find anything conclusive.
  1. Cleared Browser Cache:
  • Cleared the browser cache and tried accessing the dashboard from different browsers and devices.

I ve also tried disabling firewall with no success.

when i run rescan on the cmk host i get :

Hi @flybug
based on your screenshots. Is your Checkmk Server running as a Docker Container?
Your Checkmk agent seems to not be installed on your Checkmk server, or it is not running.

Regards
Norm

I have another site running in container. The main one is running on local server.

Thats the output that i get running agent manually :

I have also tried adding checkmk host to another site running ubuntu and getting the same error :


So probably the problem is in some config.

Since you have multiple sites. Did you maybe already registered (TLS) the host to a different site?
Please execute sudo cmk-agent-ctl status and check if you already have a connection there. If that’s the case, you have to register it to the other site.

Looking forward to your response!

[root@cmk-docker apache]# sudo cmk-agent-ctl status
Version: 2.2.0b6
Agent socket: operational
IP allowlist: any
No connections

Is the “host” you want to monitor inside a docker container, or is it a normal host?

Can you verify that the Checkmk agent is listening on port 6556 on the host you want to monitor? (ss -tulpn | grep 6556 or netstat -tulpn | grep 6556)

Otherwise, please refer to the documentation to troubleshoot further:

Regards
Norm

[root@cmk-docker /]# netstat -tulpn | grep 6556
tcp6 0 0 :::6556 :::* LISTEN 3754043/xinetd
[root@cmk-docker /]# (ss -tulpn | grep 6556) || (netstat -tulpn | grep 6556)
tcp LISTEN 0 64 *:6556 : users:((“xinetd”,pid=3754043,fd=5))
[root@cmk-docker /]# ^C
[root@cmk-docker /]# systemctl status xinetd
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2024-08-05 09:21:28 CEST; 23h ago
Docs: man:xinetd
man:xinetd.conf
man:xinetd.log
Main PID: 3754043 (xinetd)
Tasks: 1 (limit: 524764)
Memory: 808.0K
CGroup: /system.slice/xinetd.service
└─3754043 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid

Aug 06 08:24:52 cmk-docker xinetd[873619]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:25:21 cmk-docker xinetd[873887]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:25:52 cmk-docker xinetd[874455]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:27:52 cmk-docker xinetd[876302]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:28:52 cmk-docker xinetd[877228]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:34:53 cmk-docker xinetd[883538]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:35:53 cmk-docker xinetd[884432]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:37:22 cmk-docker xinetd[886073]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:38:22 cmk-docker xinetd[887131]: FAIL: check_mk_agent address from=::ffff:
Aug 06 08:39:53 cmk-docker xinetd[888614]: FAIL: check_mk_agent address from=::ffff:
[root@cmk-docker /]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens192
sources:
services: cockpit dhcpv6-client http https ssh
ports: 6556/tcp 8000/tcp 443/tcp 8443/tcp 8002/tcp
protocols:
forward: no
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

[root@cmk-docker /]# telnet 127.0.0.1 6556
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
Connection closed by foreign host.

now ive been playing aroud with xinetd configuration and getting the following error :

I have unregistered the host and registered it again and now its working fine still dont know what exactly the issue was but thanks anyway .