Connection timeout on apache monitor script