| 1 | [modules] |
|---|
| 2 | NRPEListener.dll |
|---|
| 3 | NSClientListener.dll |
|---|
| 4 | CheckWMI.dll |
|---|
| 5 | FileLogger.dll |
|---|
| 6 | CheckSystem.dll |
|---|
| 7 | CheckDisk.dll |
|---|
| 8 | CheckEventLog.dll |
|---|
| 9 | CheckHelpers.dll |
|---|
| 10 | CheckServiceState CheckAll ignore-perf-data |
|---|
| 11 | |
|---|
| 12 | ;# NSCLIENT++ MODULES |
|---|
| 13 | ;# A list with DLLs to load at startup. |
|---|
| 14 | ; You will need to enable some of these for NSClient++ to work. |
|---|
| 15 | ; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! |
|---|
| 16 | ; * * |
|---|
| 17 | ; * N O T I C E ! ! ! - Y O U H A V E T O E D I T T H I S * |
|---|
| 18 | ; * * |
|---|
| 19 | ; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! |
|---|
| 20 | FileLogger.dll |
|---|
| 21 | CheckSystem.dll |
|---|
| 22 | CheckDisk.dll |
|---|
| 23 | NSClientListener.dll |
|---|
| 24 | NRPEListener.dll |
|---|
| 25 | SysTray.dll |
|---|
| 26 | CheckEventLog.dll |
|---|
| 27 | CheckHelpers.dll |
|---|
| 28 | CheckWMI.dll |
|---|
| 29 | ; |
|---|
| 30 | ; Script to check external scripts and/or internal aliases. |
|---|
| 31 | ;CheckExternalScripts.dll |
|---|
| 32 | ; |
|---|
| 33 | ; NSCA Agent if you enable this NSClient++ will talk to NSCA hosts repeatedly (so dont enable unless you want to use NSCA) |
|---|
| 34 | ;NSCAAgent.dll |
|---|
| 35 | ; |
|---|
| 36 | ; LUA script module used to write your own "check deamon". |
|---|
| 37 | ;LUAScript.dll |
|---|
| 38 | ; |
|---|
| 39 | ; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS! |
|---|
| 40 | ;RemoteConfiguration.dll |
|---|
| 41 | ; Check other hosts through NRPE extreme beta and probably a bit dangerous! :) |
|---|
| 42 | ;NRPEClient.dll |
|---|
| 43 | ; Extreamly early beta of a task-schedule checker |
|---|
| 44 | ;CheckTaskSched.dll |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | [Settings] |
|---|
| 49 | ;# OBFUSCATED PASSWORD |
|---|
| 50 | ; This is the same as the password option but here you can store the password in an obfuscated manner. |
|---|
| 51 | ; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the |
|---|
| 52 | ; password. Its just a bit harder to do it at first glance. |
|---|
| 53 | ;obfuscated_password=Jw0KAUUdXlAAUwASDAAB |
|---|
| 54 | ; |
|---|
| 55 | ;# PASSWORD |
|---|
| 56 | ; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly. |
|---|
| 57 | ;password=secret-password |
|---|
| 58 | ; |
|---|
| 59 | ;# ALLOWED HOST ADDRESSES |
|---|
| 60 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons. |
|---|
| 61 | ; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password). |
|---|
| 62 | ; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access |
|---|
| 63 | ;allowed_hosts=10.10.101.135/32 |
|---|
| 64 | ; |
|---|
| 65 | ;# USE THIS FILE |
|---|
| 66 | ; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 |
|---|
| 67 | ; the registry will be used instead. |
|---|
| 68 | use_file=1 |
|---|
| 69 | allowed_hosts=10.10.101.135 |
|---|
| 70 | ; |
|---|
| 71 | ; # USE SHARED MEMORY CHANNELS |
|---|
| 72 | ; This is the "new" way for using the system tray based on an IPC framework on top shared memmory channels and events. |
|---|
| 73 | ; It is brand new and (probably has bugs) so dont enable this unless for testing! |
|---|
| 74 | ; If set to 1 shared channels will be created and system tray icons created and such and such... |
|---|
| 75 | ;shared_session=0 |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | [log] |
|---|
| 79 | ;# LOG DEBUG |
|---|
| 80 | ; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test) |
|---|
| 81 | ;debug=1 |
|---|
| 82 | ; |
|---|
| 83 | ;# LOG FILE |
|---|
| 84 | ; The file to print log statements to |
|---|
| 85 | ;file=nsclient.log |
|---|
| 86 | ; |
|---|
| 87 | ;# LOG DATE MASK |
|---|
| 88 | ; The format to for the date/time part of the log entry written to file. |
|---|
| 89 | ;date_mask=%Y-%m-%d %H:%M:%S |
|---|
| 90 | ; |
|---|
| 91 | ;# LOG ROOT FOLDER |
|---|
| 92 | ; The root folder to use for logging. |
|---|
| 93 | ; exe = the folder where the executable is located |
|---|
| 94 | ; local-app-data = local application data (probably a better choice then the old default) |
|---|
| 95 | ;root_folder=exe |
|---|
| 96 | |
|---|
| 97 | |
|---|
| 98 | [NSClient] |
|---|
| 99 | ;# ALLOWED HOST ADDRESSES |
|---|
| 100 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon. |
|---|
| 101 | ; If you leave this blank the global version will be used instead. |
|---|
| 102 | ;allowed_hosts= |
|---|
| 103 | ; |
|---|
| 104 | ;# NSCLIENT PORT NUMBER |
|---|
| 105 | ; This is the port the NSClientListener.dll will listen to. |
|---|
| 106 | ;port=12489 |
|---|
| 107 | ; |
|---|
| 108 | ;# BIND TO ADDRESS |
|---|
| 109 | ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. |
|---|
| 110 | ; Leaving this blank will bind to all avalible IP adresses. |
|---|
| 111 | ;bind_to_address= |
|---|
| 112 | ; |
|---|
| 113 | ;# SOCKET TIMEOUT |
|---|
| 114 | ; Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out. |
|---|
| 115 | ;socket_timeout=30 |
|---|
| 116 | |
|---|
| 117 | [NRPE] |
|---|
| 118 | ;# NRPE PORT NUMBER |
|---|
| 119 | ; This is the port the NRPEListener.dll will listen to. |
|---|
| 120 | port=5666 |
|---|
| 121 | ; |
|---|
| 122 | ;# COMMAND TIMEOUT |
|---|
| 123 | ; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off. |
|---|
| 124 | ;command_timeout=60 |
|---|
| 125 | ; |
|---|
| 126 | ;# COMMAND ARGUMENT PROCESSING |
|---|
| 127 | ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. |
|---|
| 128 | allow_arguments=1 |
|---|
| 129 | ; |
|---|
| 130 | ;# COMMAND ALLOW NASTY META CHARS |
|---|
| 131 | ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments. |
|---|
| 132 | allow_nasty_meta_chars=1 |
|---|
| 133 | ; |
|---|
| 134 | ;# USE SSL SOCKET |
|---|
| 135 | ; This option controls if SSL should be used on the socket. |
|---|
| 136 | ;use_ssl=1 |
|---|
| 137 | ; |
|---|
| 138 | ;# BIND TO ADDRESS |
|---|
| 139 | ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. |
|---|
| 140 | ; Leaving this blank will bind to all avalible IP adresses. |
|---|
| 141 | ; bind_to_address= |
|---|
| 142 | ; |
|---|
| 143 | ;# ALLOWED HOST ADDRESSES |
|---|
| 144 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to NRPE deamon. |
|---|
| 145 | ; If you leave this blank the global version will be used instead. |
|---|
| 146 | ;allowed_hosts= |
|---|
| 147 | ; |
|---|
| 148 | ;# SCRIPT DIRECTORY |
|---|
| 149 | ; All files in this directory will become check commands. |
|---|
| 150 | ; *WARNING* This is undoubtedly dangerous so use with care! |
|---|
| 151 | ;script_dir=scripts\ |
|---|
| 152 | ; |
|---|
| 153 | ;# SOCKET TIMEOUT |
|---|
| 154 | ; Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out. |
|---|
| 155 | ;socket_timeout=30 |
|---|
| 156 | |
|---|
| 157 | [Check System] |
|---|
| 158 | ;# CPU BUFFER SIZE |
|---|
| 159 | ; Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory |
|---|
| 160 | ; so don't use a larger buffer then you need (ie. the longest check you do +1). |
|---|
| 161 | ;CPUBufferSize=1h |
|---|
| 162 | ; |
|---|
| 163 | ;# CHECK RESOLUTION |
|---|
| 164 | ; The resolution to check values (currently only CPU). |
|---|
| 165 | ; The value is entered in 1/10:th of a second and the default is 10 (which means ones every second) |
|---|
| 166 | ;CheckResolution=10 |
|---|
| 167 | ; |
|---|
| 168 | ;# CHECK ALL SERVICES |
|---|
| 169 | ; Configure how to check services when a CheckAll is performed. |
|---|
| 170 | ; ...=started means services in that class *has* to be running. |
|---|
| 171 | ; ...=stopped means services in that class has to be stopped. |
|---|
| 172 | ; ...=ignored means services in this class will be ignored. |
|---|
| 173 | ;check_all_services[SERVICE_BOOT_START]=ignored |
|---|
| 174 | ;check_all_services[SERVICE_SYSTEM_START]=ignored |
|---|
| 175 | ;check_all_services[SERVICE_AUTO_START]=started |
|---|
| 176 | ;check_all_services[SERVICE_DEMAND_START]=ignored |
|---|
| 177 | ;check_all_services[SERVICE_DISABLED]=stopped |
|---|
| 178 | |
|---|
| 179 | [External Script] |
|---|
| 180 | ;# COMMAND TIMEOUT |
|---|
| 181 | ; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off. |
|---|
| 182 | ;command_timeout=60 |
|---|
| 183 | ; |
|---|
| 184 | ;# COMMAND ARGUMENT PROCESSING |
|---|
| 185 | ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. |
|---|
| 186 | ;allow_arguments=0 |
|---|
| 187 | ; |
|---|
| 188 | ;# COMMAND ALLOW NASTY META CHARS |
|---|
| 189 | ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments. |
|---|
| 190 | ;allow_nasty_meta_chars=0 |
|---|
| 191 | ; |
|---|
| 192 | ;# COMMAND ALLOW NASTY META CHARS |
|---|
| 193 | ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments. |
|---|
| 194 | ;script_dir=c:\my\script\dir |
|---|
| 195 | |
|---|
| 196 | [External Scripts] |
|---|
| 197 | ;check_es_long=scripts\long.bat |
|---|
| 198 | ;check_es_ok=scripts\ok.bat |
|---|
| 199 | ;check_es_nok=scripts\nok.bat |
|---|
| 200 | ;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs |
|---|
| 201 | ;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command - |
|---|
| 202 | |
|---|
| 203 | [External Alias] |
|---|
| 204 | alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s |
|---|
| 205 | alias_cpu_ex=checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s |
|---|
| 206 | alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED |
|---|
| 207 | alias_service=checkServiceState CheckAll |
|---|
| 208 | alias_process=checkProcState $ARG1$=started |
|---|
| 209 | alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical |
|---|
| 210 | alias_up=checkUpTime MinWarn=1d MinWarn=1h |
|---|
| 211 | alias_file_age=checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%" |
|---|
| 212 | alias_file_size=checkFile2 filter=out "file=$ARG1$" filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%" |
|---|
| 213 | alias_file_size_in_dir=checkFile2 filter=out pattern=*.txt "file=$ARG1$" filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%" |
|---|
| 214 | alias_event_log=CheckEventLog file=application file=system filter=new filter=out MaxWarn=1 MaxCrit=1 filter-generated=>2d filter-severity==success filter-severity==informational truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)" |
|---|
| 215 | alias_event_log2=CheckEventLog file=application file=system filter=new filter=in MaxWarn=1 MaxCrit=1 filter+generated=<2d "filter+eventSource==Service Control Manager" filter+severity==error truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)" |
|---|
| 216 | check_ok=CheckOK Everything is fine! |
|---|
| 217 | |
|---|
| 218 | |
|---|
| 219 | |
|---|
| 220 | ; [includes] |
|---|
| 221 | ;# The order when used is "reversed" thus the last included file will be "first" |
|---|
| 222 | ;# Included files can include other files (be carefull only do basic recursive checking) |
|---|
| 223 | ; |
|---|
| 224 | ; myotherfile.ini |
|---|
| 225 | ; real.ini |
|---|
| 226 | |
|---|
| 227 | |
|---|
| 228 | [NSCA Agent] |
|---|
| 229 | ;# CHECK INTERVALL (in seconds) |
|---|
| 230 | ; How often we should run the checks and submit the results. |
|---|
| 231 | ;interval=5 |
|---|
| 232 | ; |
|---|
| 233 | ;# ENCRYPTION METHOD |
|---|
| 234 | ; This option determines the method by which the send_nsca client will encrypt the packets it sends |
|---|
| 235 | ; to the nsca daemon. The encryption method you choose will be a balance between security and |
|---|
| 236 | ; performance, as strong encryption methods consume more processor resources. |
|---|
| 237 | ; You should evaluate your security needs when choosing an encryption method. |
|---|
| 238 | ; |
|---|
| 239 | ; Note: The encryption method you specify here must match the decryption method the nsca daemon uses |
|---|
| 240 | ; (as specified in the nsca.cfg file)!! |
|---|
| 241 | ; Values: |
|---|
| 242 | ; 0 = None (Do NOT use this option) |
|---|
| 243 | ; 1 = Simple XOR (No security, just obfuscation, but very fast) |
|---|
| 244 | ; 2 = DES |
|---|
| 245 | ; 3 = 3DES (Triple DES) |
|---|
| 246 | ; 4 = CAST-128 |
|---|
| 247 | ; 6 = xTEA |
|---|
| 248 | ; 8 = BLOWFISH |
|---|
| 249 | ; 9 = TWOFISH |
|---|
| 250 | ; 11 = RC2 |
|---|
| 251 | ; 14 = RIJNDAEL-128 (AES) |
|---|
| 252 | ; 20 = SERPENT |
|---|
| 253 | ;encryption_method=14 |
|---|
| 254 | ; |
|---|
| 255 | ;# ENCRYPTION PASSWORD |
|---|
| 256 | ; This is the password/passphrase that should be used to encrypt the sent packets. |
|---|
| 257 | ;password= |
|---|
| 258 | ; |
|---|
| 259 | ;# BIND TO ADDRESS |
|---|
| 260 | ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. |
|---|
| 261 | ; Leaving this blank will bind to "one" local interface. |
|---|
| 262 | ; -- not supported as of now -- |
|---|
| 263 | ;bind_to_address= |
|---|
| 264 | ; |
|---|
| 265 | ;# LOCAL HOST NAME |
|---|
| 266 | ; The name of this host (if empty "computername" will be used. |
|---|
| 267 | ;hostname= |
|---|
| 268 | ; |
|---|
| 269 | ;# NAGIOS SERVER ADDRESS |
|---|
| 270 | ; The address to the nagios server to submit results to. |
|---|
| 271 | ;nsca_host=192.168.0.1 |
|---|
| 272 | ; |
|---|
| 273 | ;# NAGIOS SERVER PORT |
|---|
| 274 | ; The port to the nagios server to submit results to. |
|---|
| 275 | ;nsca_port=5667 |
|---|
| 276 | ; |
|---|
| 277 | |
|---|
| 278 | ;# CHECK COMMAND LIST |
|---|
| 279 | ; The checks to run everytime we submit results back to nagios |
|---|
| 280 | ; Any command(alias/key) starting with a host_ is sent as HOST_COMMAND others are sent as SERVICE_COMMANDS |
|---|
| 281 | ; where the alias/key is used as service name. |
|---|
| 282 | ; |
|---|
| 283 | [NSCA Commands] |
|---|
| 284 | ;my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4 |
|---|
| 285 | ;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page |
|---|
| 286 | ;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService |
|---|
| 287 | ;host_check=check_ok |
|---|
| 288 | |
|---|
| 289 | ;# REMOTE NRPE PROXY COMMANDS |
|---|
| 290 | ; A list of commands that check other hosts. |
|---|
| 291 | ; Used by the NRPECLient module |
|---|
| 292 | [NRPE Client Handlers] |
|---|
| 293 | check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments |
|---|
| 294 | |
|---|
| 295 | ;# LUA SCRIPT SECTION |
|---|
| 296 | ; A list of all Lua scripts to load. |
|---|
| 297 | ;[LUA Scripts] |
|---|
| 298 | ;scripts\test.lua |
|---|