network monitor script