Changeset 7ec3dd1 in nscp for modules


Ignore:
Timestamp:
06/16/11 23:00:44 (2 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
e11d494
Parents:
3bdaf18
Message:

various fixes and changes here and there
Mainly build related (been trying to fix symbol dumper problems) as well as tweaks for the up-coming "nightly release")

Location:
modules
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckEventLog/CheckEventLog.cpp

    rd66ccee r7ec3dd1  
    814814        if (err == ERROR_INSUFFICIENT_BUFFER) { 
    815815          if (!buffer_error_reported) { 
    816             NSC_LOG_ERROR_STD(_T("EvenlogBuffer is too small change the value of ") + setting_keys::event_log::BUFFER_SIZE_PATH + _T("=") + strEx::itos(dwNeeded+1) + _T(": ") + error::lookup::last_error(err)); 
     816            NSC_LOG_ERROR_STD(_T("EvenlogBuffer is too small change the value of buffer_length=") + strEx::itos(dwNeeded+1) + _T(": ") + error::lookup::last_error(err)); 
    817817            buffer_error_reported = true; 
    818818          } 
  • modules/CheckSystem/PDHCollector.cpp

    rc391984 r7ec3dd1  
    2121#include "PDHCollector.h" 
    2222#include <sysinfo.h> 
    23  
     23#include "settings.hpp" 
    2424 
    2525PDHCollector::PDHCollector() : hStopEvent_(NULL)/*, data_(NULL)*/ { 
  • modules/CheckTaskSched/CheckTaskSched.cpp

    r3bdaf18 r7ec3dd1  
    3030 
    3131#include <settings/client/settings_client.hpp> 
     32#include "settings.hpp" 
    3233 
    3334 
  • modules/CheckTaskSched2/CheckTaskSched2.cpp

    r3bdaf18 r7ec3dd1  
    3030 
    3131#include <settings/client/settings_client.hpp> 
    32  
     32#include "../CheckTaskSched/settings.hpp" 
    3333 
    3434CheckTaskSched2 gCheckTaskSched2; 
  • modules/FileLogger/FileLogger.cpp

    r3bdaf18 r7ec3dd1  
    4242} 
    4343FileLogger::~FileLogger() { 
     44} 
     45namespace setting_keys { 
     46 
     47  namespace log { 
     48    DEFINE_PATH(SECTION, LOG_SECTION); 
     49    //DESCRIBE_SETTING_ADVANCED(SECTION, "LOG SECTION", "Configure loggning properties."); 
     50 
     51    DEFINE_SETTING_S(FILENAME, LOG_SECTION, "file", "nsclient.log"); 
     52    //DESCRIBE_SETTING_ADVANCED(FILENAME, "SYNTAX", "The file to write log data to. If no directory is used this is relative to the NSClient++ binary."); 
     53 
     54    DEFINE_SETTING_S(ROOT, LOG_SECTION, "root", "auto"); 
     55    //DESCRIBE_SETTING_ADVANCED(ROOT, "TODO", "TODO"); 
     56 
     57    DEFINE_SETTING_S(DATEMASK, LOG_SECTION, "date format", "%Y-%m-%d %H:%M:%S"); 
     58    //DESCRIBE_SETTING_ADVANCED(DATEMASK, "DATEMASK", "The date format used when logging to a file."); 
     59 
     60    DEFINE_SETTING_S(LOG_MASK, LOG_SECTION, "log mask", "normal"); 
     61    //DESCRIBE_SETTING_ADVANCED(LOG_MASK, "LOG MASK", "The log mask information, error, warning, critical, debug"); 
     62 
     63    DEFINE_SETTING_B(DEBUG_LOG, LOG_SECTION, "debug", false); 
     64    //DESCRIBE_SETTING_ADVANCED(DEBUG_LOG, "DEBUG LOGGING", "Enable debug logging can help track down errors and find problems but will impact overall perfoamnce negativly."); 
     65  } 
    4466} 
    4567 
  • modules/NRPEClient/NRPEClient.cpp

    r3bdaf18 r7ec3dd1  
    3232 
    3333 
     34namespace setting_keys { 
     35 
     36  // NSClient Setting headlines 
     37  namespace nrpe { 
     38    DEFINE_PATH(SECTION, NRPE_SECTION_PROTOCOL); 
     39    //DESCRIBE_SETTING(SECTION, "NRPE SECTION", "Section for NRPE (NRPEListener.dll) (check_nrpe) protocol options."); 
     40 
     41 
     42    DEFINE_PATH(CH_SECTION, NRPE_CLIENT_HANDLER_SECTION); 
     43    //DESCRIBE_SETTING(CH_SECTION, "CLIENT HANDLER SECTION", "..."); 
     44 
     45    DEFINE_SETTING_S(ALLOWED_HOSTS, NRPE_SECTION_PROTOCOL, GENERIC_KEY_ALLOWED_HOSTS, ""); 
     46    DESCRIBE_SETTING(ALLOWED_HOSTS, "ALLOWED HOST ADDRESSES", "This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon. If you leave this blank the global version will be used instead."); 
     47 
     48    DEFINE_SETTING_I(PORT, NRPE_SECTION_PROTOCOL, "port", 5666); 
     49    //DESCRIBE_SETTING(PORT, "NSCLIENT PORT NUMBER", "This is the port the NSClientListener.dll will listen to."); 
     50 
     51    DEFINE_SETTING_S(BINDADDR, NRPE_SECTION_PROTOCOL, GENERIC_KEY_BIND_TO, ""); 
     52    //DESCRIBE_SETTING(BINDADDR, "BIND TO ADDRESS", "Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. Leaving this blank will bind to all avalible IP adresses."); 
     53 
     54    DEFINE_SETTING_I(READ_TIMEOUT, NRPE_SECTION_PROTOCOL, GENERIC_KEY_SOCK_READ_TIMEOUT, 30); 
     55    //DESCRIBE_SETTING(READ_TIMEOUT, "SOCKET TIMEOUT", "Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out."); 
     56 
     57    DEFINE_SETTING_I(LISTENQUE, NRPE_SECTION_PROTOCOL, GENERIC_KEY_SOCK_LISTENQUE, 0); 
     58    //DESCRIBE_SETTING_ADVANCED(LISTENQUE, "LISTEN QUEUE", "Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts."); 
     59 
     60    DEFINE_SETTING_I(THREAD_POOL, NRPE_SECTION_PROTOCOL, "thread pool", 10); 
     61    //DESCRIBE_SETTING_ADVANCED(THREAD_POOL, "THREAD POOL", ""); 
     62 
     63 
     64 
     65    DEFINE_SETTING_B(CACHE_ALLOWED, NRPE_SECTION_PROTOCOL, GENERIC_KEY_SOCK_CACHE_ALLOWED, false); 
     66    DESCRIBE_SETTING_ADVANCED(CACHE_ALLOWED, "ALLOWED HOSTS CACHING", "Used to cache looked up hosts if you check dynamic/changing hosts set this to false."); 
     67 
     68    //DEFINE_SETTING_B(KEYUSE_SSL, NRPE_SECTION_PROTOCOL, GENERIC_KEY_USE_SSL, true); 
     69    //DESCRIBE_SETTING(KEYUSE_SSL, "USE SSL SOCKET", "This option controls if SSL should be used on the socket."); 
     70 
     71    DEFINE_SETTING_I(PAYLOAD_LENGTH, NRPE_SECTION_PROTOCOL, "payload length", 1024); 
     72    //DESCRIBE_SETTING_ADVANCED(PAYLOAD_LENGTH, "PAYLOAD LENGTH", "Length of payload to/from the NRPE agent. This is a hard specific value so you have to \"configure\" (read recompile) your NRPE agent to use the same value for it to work."); 
     73 
     74    //DEFINE_SETTING_B(ALLOW_PERFDATA, NRPE_SECTION, "performance data", true); 
     75    //DESCRIBE_SETTING_ADVANCED(ALLOW_PERFDATA, "PERFORMANCE DATA", "Send performance data back to nagios (set this to 0 to remove all performance data)."); 
     76 
     77    //DEFINE_SETTING_I(CMD_TIMEOUT, NRPE_SECTION, "command timeout", 60); 
     78    //DESCRIBE_SETTING(CMD_TIMEOUT, "COMMAND TIMEOUT", "This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off."); 
     79 
     80    DEFINE_SETTING_B(ALLOW_ARGS, NRPE_SECTION, "allow arguments", false); 
     81    //DESCRIBE_SETTING(ALLOW_ARGS, "COMMAND ARGUMENT PROCESSING", "This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed."); 
     82 
     83    DEFINE_SETTING_B(ALLOW_NASTY, NRPE_SECTION, "allow nasy characters", false); 
     84    //DESCRIBE_SETTING(ALLOW_NASTY, "COMMAND ALLOW NASTY META CHARS", "This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'\"\\[]{}) characters in arguments."); 
     85 
     86  } 
     87} 
    3488namespace sh = nscapi::settings_helper; 
    3589 
  • modules/NRPEServer/NRPEServer.cpp

    rd66ccee r7ec3dd1  
    2727 
    2828#include <settings/client/settings_client.hpp> 
     29#include "settings.hpp" 
    2930 
    3031 
Note: See TracChangeset for help on using the changeset viewer.