- Timestamp:
- 06/16/11 23:00:44 (2 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- e11d494
- Parents:
- 3bdaf18
- Location:
- modules
- Files:
-
- 3 added
- 7 edited
-
CheckEventLog/CheckEventLog.cpp (modified) (1 diff)
-
CheckSystem/PDHCollector.cpp (modified) (1 diff)
-
CheckSystem/settings.hpp (added)
-
CheckTaskSched/CheckTaskSched.cpp (modified) (1 diff)
-
CheckTaskSched/settings.hpp (added)
-
CheckTaskSched2/CheckTaskSched2.cpp (modified) (1 diff)
-
FileLogger/FileLogger.cpp (modified) (1 diff)
-
NRPEClient/NRPEClient.cpp (modified) (1 diff)
-
NRPEServer/NRPEServer.cpp (modified) (1 diff)
-
NRPEServer/settings.hpp (added)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckEventLog/CheckEventLog.cpp
rd66ccee r7ec3dd1 814 814 if (err == ERROR_INSUFFICIENT_BUFFER) { 815 815 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)); 817 817 buffer_error_reported = true; 818 818 } -
modules/CheckSystem/PDHCollector.cpp
rc391984 r7ec3dd1 21 21 #include "PDHCollector.h" 22 22 #include <sysinfo.h> 23 23 #include "settings.hpp" 24 24 25 25 PDHCollector::PDHCollector() : hStopEvent_(NULL)/*, data_(NULL)*/ { -
modules/CheckTaskSched/CheckTaskSched.cpp
r3bdaf18 r7ec3dd1 30 30 31 31 #include <settings/client/settings_client.hpp> 32 #include "settings.hpp" 32 33 33 34 -
modules/CheckTaskSched2/CheckTaskSched2.cpp
r3bdaf18 r7ec3dd1 30 30 31 31 #include <settings/client/settings_client.hpp> 32 32 #include "../CheckTaskSched/settings.hpp" 33 33 34 34 CheckTaskSched2 gCheckTaskSched2; -
modules/FileLogger/FileLogger.cpp
r3bdaf18 r7ec3dd1 42 42 } 43 43 FileLogger::~FileLogger() { 44 } 45 namespace 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 } 44 66 } 45 67 -
modules/NRPEClient/NRPEClient.cpp
r3bdaf18 r7ec3dd1 32 32 33 33 34 namespace 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 } 34 88 namespace sh = nscapi::settings_helper; 35 89 -
modules/NRPEServer/NRPEServer.cpp
rd66ccee r7ec3dd1 27 27 28 28 #include <settings/client/settings_client.hpp> 29 #include "settings.hpp" 29 30 30 31
Note: See TracChangeset
for help on using the changeset viewer.








