Azizi, Gaudeamus Igitur is the name of the song the German students used to sing - in Latin, not in German.
The words you give are a pretty good translation (but the 2nd verse praises young women, not teachers!), and would seem to fit the traditional tune.