Troubleshooting in Cyber-Physical Environments