The meaning is actually pretty literal. Everyone was present, and everyone was correct - i.e. everyone was, since this is a term of military origin I believe, in the correct uniform, with the correct weaponry etc.
We use it more generally nowadays and it usually means everyone is present and has everything they need to begin work, nothing has been lost for example, and that the task or journey or whatever is planned can begin.
- For Teachers