Nocardiosis is diagnosed when the Nocardia asteroides bacteria is found in samples of body fluid or tissue taken from an infected person.