I restructured the nagios class to use internal methods and expose only safe methods

They used to throw stacktraces, because the critical logs check crashed if m2ee did not respond.