Add a helper function to detect and select default monitoring interface.