Getting error on agent monitoring on checkmk raw-ubuntu 20.04

try on the “Agent” Server,

telnet localhost 6556

If that work check the firewall.

see also the output of ss -ntlp check the 6556 port.