Resolve OpsMgr Agent Name from the healthserviceid

From Operations Console:

Go to Discovered Inventory Change Target Type to (Health Service Watcher) and then find by the (Health Service ID)

 

From Operations Manager PowerShell:

Get-Agent | Where-Object {$_.hostedHealthService.id -eq "healthserviceid"} | Select-Object name