Changeset c1fe385 in nscp
- Timestamp:
- 02/14/08 07:14:39 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 394f7a1
- Parents:
- 9df626c
- Files:
-
- 4 edited
-
NSC.dist (modified) (2 diffs)
-
changelog (modified) (1 diff)
-
modules/NSCAAgent/NSCAThread.cpp (modified) (1 diff)
-
modules/NSCAAgent/NSCAThread.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
NSC.dist
r65ec1fa rc1fe385 268 268 ;# CHECK COMMAND LIST 269 269 ; The checks to run everytime we submit results back to nagios 270 ; Any command(alias/key) starting with a host_ is sent as HOST_COMMAND others are sent as SERVICE_COMMANDS 271 ; where the alias/key is used as service name. 270 272 ; 271 273 [NSCA Commands] … … 273 275 ;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page 274 276 ;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService 277 ;host_check=check_ok -
changelog
r9df626c rc1fe385 5 5 * Add module for relaying events 6 6 * Add API for rehashing the daemon (or implement it the API is there but does nothing) 7 8 2008-02-14 MickeM 9 + Added so commands starting in host_ (NSCA Handlers) are sent as host-commands 10 * Fixed a copy constructor in NSCA Commands (now service checks are sent as service checks) 7 11 8 12 2008-02-13 MickeM -
modules/NSCAAgent/NSCAThread.cpp
r9df626c rc1fe385 79 79 void NSCAThread::addCommand(std::wstring key) { 80 80 std::wstring value = NSCModuleHelper::getSettingsString(NSCA_CMD_SECTION_TITLE, key, _T("")); 81 commands_.push_back(Command(key, value)); 81 if ((key.length() > 4) && (key.substr(0,4) == _T("host"))) 82 commands_.push_back(Command(_T(""), value)); 83 else 84 commands_.push_back(Command(key, value)); 82 85 } 83 86 -
modules/NSCAAgent/NSCAThread.h
r9df626c rc1fe385 197 197 cmd_ = other.cmd_; 198 198 args_ = other.args_; 199 alias_ = other.alias_; 199 200 200 201 }
Note: See TracChangeset
for help on using the changeset viewer.








