Do not use any inetd if you want to execute the agent script via restricted SSH as stated in the beginning:
- Install the agent script to
/usr/bin/check_mk_agent
, mode 0755 or 0500 - Configure an SSH key for restricted root login (one command only)
That’s all.