refactor server_status_advisor.php