How to develop a Python script for monitoring and managing server health?