Can you please share your check plugin (located in your site under ~/local/lib/check_mk/base/plugins/agent_based/.
Or give us a link, where we can find it.
The Check plugin must contain the same identifier as used in the agent output for your section “<<<foobar>>>” and the discover function must yield at least one Service() object.
Best Regards
Markus