Changeset c1fe385 in nscp


Ignore:
Timestamp:
02/14/08 07:14:39 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
394f7a1
Parents:
9df626c
Message:

+ Added so commands starting in host_ (NSCA Handlers) are sent as host-commands

  • Fixed a copy constructor in NSCA Commands (now service checks are sent as service checks)
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • NSC.dist

    r65ec1fa rc1fe385  
    268268;# CHECK COMMAND LIST 
    269269;  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. 
    270272; 
    271273[NSCA Commands] 
     
    273275;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page 
    274276;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService 
     277;host_check=check_ok 
  • changelog

    r9df626c rc1fe385  
    55 * Add module for relaying events 
    66 * Add API for rehashing the daemon (or implement it the API is there but does nothing) 
     7 
     82008-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) 
    711 
    8122008-02-13 MickeM 
  • modules/NSCAAgent/NSCAThread.cpp

    r9df626c rc1fe385  
    7979void NSCAThread::addCommand(std::wstring key) { 
    8080  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)); 
    8285} 
    8386 
  • modules/NSCAAgent/NSCAThread.h

    r9df626c rc1fe385  
    197197    cmd_ = other.cmd_; 
    198198    args_ = other.args_; 
     199    alias_ = other.alias_; 
    199200 
    200201  } 
Note: See TracChangeset for help on using the changeset viewer.