Ignore:
Timestamp:
11/29/11 14:03:54 (18 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
f33c12f
Parents:
96c1461
Message:
  • Fixed some NSCA issues (reading from new conf)
  • Fixed some linux build issues (related to refactoring)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/NRPEClient/NRPEClient.cpp

    r96c1461 r9853bc3  
    8282      ; 
    8383 
    84     settings.alias(_T("/targets/default")).add_key_to_settings() 
     84    settings.alias().add_key_to_settings(_T("targets/default")) 
    8585 
    8686      (_T("timeout"), sh::uint_key(&timeout, 30), 
     
    386386#else 
    387387      NSC_LOG_ERROR_STD(_T("SSL not avalible (compiled without USE_SSL)")); 
    388       return boost::tie(NSCAPI::returnUNKNOWN, _T("SSL support not available (compiled without USE_SSL)")); 
     388      return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("SSL support not available (compiled without USE_SSL)")); 
    389389#endif 
    390390    } else 
     
    392392    return boost::make_tuple(static_cast<int>(packet.getResult()), packet.getPayload()); 
    393393  } catch (nrpe::nrpe_packet_exception &e) { 
    394     return boost::tie(NSCAPI::returnUNKNOWN, _T("NRPE Packet errro: ") + e.wwhat()); 
     394    return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("NRPE Packet errro: ") + e.wwhat()); 
    395395  } catch (std::runtime_error &e) { 
    396396    NSC_LOG_ERROR_STD(_T("Socket error: ") + utf8::to_unicode(e.what())); 
    397     return boost::tie(NSCAPI::returnUNKNOWN, _T("Socket error: ") + utf8::to_unicode(e.what())); 
     397    return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("Socket error: ") + utf8::to_unicode(e.what())); 
    398398  } catch (std::exception &e) { 
    399399    NSC_LOG_ERROR_STD(_T("Error: ") + utf8::to_unicode(e.what())); 
    400     return boost::tie(NSCAPI::returnUNKNOWN, _T("Error: ") + utf8::to_unicode(e.what())); 
     400    return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("Error: ") + utf8::to_unicode(e.what())); 
    401401  } catch (...) { 
    402     return boost::tie(NSCAPI::returnUNKNOWN, _T("Unknown error -- REPORT THIS!")); 
     402    return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("Unknown error -- REPORT THIS!")); 
    403403  } 
    404404} 
Note: See TracChangeset for help on using the changeset viewer.