Subversion Repositories DevTools

Rev

Rev 1361 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1361 Rev 1365
Line 211... Line 211...
211
      }
211
      }
212
 
212
 
213
      //
213
      //
214
      //  Start the Nagios Interface Thread
214
      //  Start the Nagios Interface Thread
215
      //
215
      //
-
 
216
      if ( connectionString.compareTo("unit test spawn thread") != 0 )
-
 
217
      {
216
      try {
218
        try {
217
        nagiosSrv = new ServerSocket(1111);
219
          nagiosSrv = new ServerSocket(1111);
218
        nagiosChecker = new NagiosThread(nagiosSrv, this);
220
          nagiosChecker = new NagiosThread(nagiosSrv, this);
219
        nagiosChecker.start();
221
          nagiosChecker.start();
220
      } catch ( IOException e ) {
222
        } catch ( IOException e ) {
221
            mLogger.fatal("Failed to start Nagios Service. Port already in use");
223
              mLogger.fatal("Failed to start Nagios Service. Port already in use");
222
            throw new Exception("Nagios port in use");
224
              throw new Exception("Nagios port in use");
-
 
225
        }
223
      }
226
      }
224
 
227
 
225
      boolean firstTime = true;
228
      boolean firstTime = true;
226
      
229
      
227
      while (run)
230
      while (run)