An ancient Tibetan breed once kept in monasteries as a sentinel, alerting monks to visitors with a sharp bark.