Changeset e0936e3 in nscp


Ignore:
Timestamp:
02/14/08 07:14:39 (5 years ago)
Author:
Michael Medin <michael@…>
Children:
34f5502
Parents:
da7207d
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)
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/NSC.dist

    rfc7cdcf re0936e3  
    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 
  • trunk/changelog

    rda7207d re0936e3  
    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 
  • trunk/modules/NSCAAgent/NSCAThread.cpp

    rda7207d re0936e3  
    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 
  • trunk/modules/NSCAAgent/NSCAThread.h

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