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

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