Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
OMD[core]:~$ cmk --debug -vvn example.com (hostname hidded)
[cpu_tracking] Start with phase 'busy'
Check_MK version 1.6.0p14
Try aquire lock on /omd/sites/core/tmp/check_mk/counters/example.com (hostname hidded)
Got lock on /omd/sites/core/tmp/check_mk/counters/example.com (hostname hidded)
Releasing lock on /omd/sites/core/tmp/check_mk/counters/example.com (hostname hidded)
Released lock on /omd/sites/core/tmp/check_mk/counters/example.com (hostname hidded)
+ FETCHING DATA
[cpu_tracking] Push phase 'agent' (Stack: ['busy'])
[agent] No persisted sections loaded
[agent] Not using cache (Does not exist)
[agent] Execute data source
[agent] Connecting via TCP to 1.1.1.1:6556 (60.0s timeout) (IP Hidden)
[agent] Reading data from agent
[agent] ERROR: Empty output from agent at TCP port 6556
[cpu_tracking] Pop phase 'agent' (Stack: ['busy', 'agent'])
CRIT - Empty output from agent at TCP port 6556
You can also do a “telnet targetip 6556” from your monitoring server for tests. The agent command is also correct inside the xinetd service i think or? Your error message says that it is blocked because of the wrong IP.
[root@monitor ~]# telnet <target ip> 6556
Trying 1.2.3.4...
Connected to 1.2.3.4.
Escape character is '^]'.
Connection closed by foreign host.
Can you please clarify? > The agent command is also correct inside the xinetd service
I’m not sure what to check for this.
I have compaired /etc/systemd/system/multi-user.target.wants/xinetd.service and /etc/systemd/system/check_mk@.service to other working agents and it is the same,
Did you add this “IP hidden” yourself or is this really part of the log entry?
Looks like the “::ffff:1.2.3.4” is the full IPv6 address you need to allow in xinetd (and perhaps also in hosts.allow).
Note the “::ffff:” prefix, not just the “1.2.3.4” part.
The whole thing is an IPv6 address which maps the IPv4 address “1.2.3.4”.
First i would check again what @martin.schwarz wrote. Then please don’t mix the xinetd and systemd services. If you use xinetd the check_mk@.service should be disabled. You can only have one of booth.
Yes, I did add the (IP hidden). It was the correct OMD IPv4 address but starting with ::ffff:. On reading, I found that xinetd binds to IPv6 socket, but also check IPv4 at the same time, so should be fine?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.