What are the causative agents for vaginitis and how can they be detected?

What are the causative agents for vaginitis and how can they be detected?