Ignore:
Timestamp:
06/24/08 22:41:09 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
3abff5c
Parents:
157dea5
Message:

2008-06-24 MickeM

+ Added new check (to CheckHelpers): CheckOK: Just return OK (anything passed along will be used as a message).
+ Added new check (to CheckHelpers): CheckWARNING: Just return WARN (anything passed along will be used as a message).
+ Added new check (to CheckHelpers): CheckCRITICAL: Just return CRIT (anything passed along will be used as a message).
+ Added new check (to CheckHelpers): CheckVersion?: Just return the nagios version (along with OK status).

  • Better error messages in the check service thingy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/NRPEListener/NRPEListener.cpp

    r140dd49 r5fda37e  
    228228      //p++; 
    229229    } 
    230     return NSCModuleHelper::InjectSplitAndCommand(t.first, sTarget, '!', message, perf); 
     230    try { 
     231      return NSCModuleHelper::InjectSplitAndCommand(t.first, sTarget, '!', message, perf); 
     232    } catch (NSCModuleHelper::NSCMHExcpetion e) { 
     233      NSC_LOG_ERROR_STD(_T("Failed to inject command (") + command.c_str() + _T("): ") + e.msg_); 
     234    } catch (...) { 
     235      NSC_LOG_ERROR_STD(_T("Failed to inject command (") + command.c_str() + _T("): Unknown error REPORT THIS")); 
     236    } 
    231237  } else if (cd.type == script) { 
    232238    int result = process::executeProcess(root_, args, message, perf, timeout); 
Note: See TracChangeset for help on using the changeset viewer.