Changeset 9df626c in nscp for modules/NSCAAgent/NSCAThread.cpp
- Timestamp:
- 02/13/08 23:23:45 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- c1fe385
- Parents:
- 65ec1fa
- File:
-
- 1 edited
-
modules/NSCAAgent/NSCAThread.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/NSCAAgent/NSCAThread.cpp
r65ec1fa r9df626c 67 67 } else { 68 68 result.result = msg + _T("|") + perf; 69 if (result.result.length() >= NSCA_MAX_PLUGINOUTPUT_LENGTH) { 70 NSC_LOG_ERROR(_T("NSCA return data truncated")); 71 result.result = result.result.substr(0, NSCA_MAX_PLUGINOUTPUT_LENGTH-1); 72 } 69 73 } 70 74 NSC_LOG_MESSAGE_STD(_T("Result: ") + result.toString()); … … 166 170 try { 167 171 for (std::list<Command::Result>::const_iterator cit = results.begin(); cit != results.end(); ++cit) { 168 socket.send((*cit).getBuffer(crypt_inst)); 172 try { 173 socket.send((*cit).getBuffer(crypt_inst)); 174 } catch (NSCAPacket::NSCAException &e) { 175 NSC_LOG_ERROR_STD(_T("Failed to make command: ") + e.getMessage() ); 176 } 169 177 } 170 178 } catch (nsca_encrypt::encryption_exception &e) {
Note: See TracChangeset
for help on using the changeset viewer.








