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
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