Refactored nagios code, added nagios mode for all sessions