Check Many Services in Parallel
/home/student/net/check_services.py HOSTFILE reads lines of host:port. For each it connects, sends PING followed by a newline, and expects a reply starting with PONG within 1.5 seconds. It works, but it checks one service at a time, and with a dozen slow services the whole run takes far too long.
This is a Pro problem
Pro unlocks every lab and quiz, all roadmaps and a full daily plan.
Unlock with ProPart of Python for DevOps. Next step: Run Commands Safely From Python
Teaching or writing about this? Embed this lab on your page