I'm betting that the purulent green secretion is pseudamonas. If it is it won't likely go away without being cleaned out properly by a vet and the chameleon put on an appropriate antibiotic.
Did you notice if the secretion had a smell something like rotten grapes?

