Single active check that generates multiple services

There is no this or that - you can have booth agent data and your special agent data for these checks.

It would be good to know from where this script is. As Ruby is not such a command language in the monitoring environment of CMK.
Most times it is really simple to translate such a local check script so something else. But i need to see the source code.