After some debugging I found the reason.
cmk -vv --discover-marked-hosts
internally silently skips host which are not up (I patched the code to add a verbose output to find that out)
- As the host are not pingable I have a rule to use the checkmk-agent output instead as hostcheck
- at the beginning there is only a ping service and the discovery service (hostcheck is not switched at this point)
- the checkmk service is not added as the disovery skips the “down” host
so there is an chicken-egg-problem here.
==> where can I file a bug?
Regards Michael