Single active check that generates multiple services

An active check (aka Nagios Plugin) can only return the state of one service check.

For your use case you could turn the script into an agent plugin that is started by the agent on the monitoring server and outputs piggyback data so that in the end the local checks are asigned to the correct hosts.

Or you create a special agent (data source program) that generates the data and is configured per host where needed.

2 Likes