if you use the business process module you can design this as a business process and use the check command for checking this businessprocess as up check
there is an approach using icinga dsl:
there is an approach using a check command to check check commands:
https://github.com/flackem/check_multi/blob/next/doc/readme.md
but you can also write yourself a wrapper in bash:
something that accepts multiple hosts to ping and runs check_ping fetches the return values and if one is 0 returns 0