| 1 | [modules] |
|---|
| 2 | ;# NSCLIENT++ MODULES |
|---|
| 3 | ;# A list with DLLs to load at startup. |
|---|
| 4 | ; You will need to enable some of these for NSClient++ to work. |
|---|
| 5 | ; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! |
|---|
| 6 | ; * * |
|---|
| 7 | ; * N O T I C E ! ! ! - Y O U H A V E T O E D I T T H I S * |
|---|
| 8 | ; * * |
|---|
| 9 | ; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! |
|---|
| 10 | ;FileLogger.dll |
|---|
| 11 | ;CheckSystem.dll |
|---|
| 12 | ;CheckDisk.dll |
|---|
| 13 | ;NSClientListener.dll |
|---|
| 14 | ;NRPEListener.dll |
|---|
| 15 | ;SysTray.dll |
|---|
| 16 | ;CheckEventLog.dll |
|---|
| 17 | ;CheckHelpers.dll |
|---|
| 18 | ;CheckWMI.dll |
|---|
| 19 | ; |
|---|
| 20 | ; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS! |
|---|
| 21 | ;RemoteConfiguration.dll |
|---|
| 22 | ; NSCA Agent is a new beta module use with care! |
|---|
| 23 | ;NSCAAgent.dll |
|---|
| 24 | ; LUA script module used to write your own "check deamon" (sort of) early beta. |
|---|
| 25 | ;LUAScript.dll |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | [Settings] |
|---|
| 29 | ;# OBFUSCATED PASSWORD |
|---|
| 30 | ; This is the same as the password option but here you can store the password in an obfuscated manner. |
|---|
| 31 | ; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the |
|---|
| 32 | ; password. Its just a bit harder to do it at first glance. |
|---|
| 33 | ;obfuscated_password=Jw0KAUUdXlAAUwASDAAB |
|---|
| 34 | ; |
|---|
| 35 | ;# PASSWORD |
|---|
| 36 | ; 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. |
|---|
| 37 | ;password=secret-password |
|---|
| 38 | ; |
|---|
| 39 | ;# ALLOWED HOST ADDRESSES |
|---|
| 40 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons. |
|---|
| 41 | ; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password). |
|---|
| 42 | ; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access |
|---|
| 43 | ;allowed_hosts=127.0.0.1/32 |
|---|
| 44 | ; |
|---|
| 45 | ;# USE THIS FILE |
|---|
| 46 | ; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 |
|---|
| 47 | ; the registry will be used instead. |
|---|
| 48 | use_file=1 |
|---|
| 49 | |
|---|
| 50 | [log] |
|---|
| 51 | ;# LOG DEBUG |
|---|
| 52 | ; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test) |
|---|
| 53 | ;debug=1 |
|---|
| 54 | ; |
|---|
| 55 | ;# LOG FILE |
|---|
| 56 | ; The file to print log statements to |
|---|
| 57 | ;file=NSC.log |
|---|
| 58 | ; |
|---|
| 59 | ;# LOG DATE MASK |
|---|
| 60 | ; The format to for the date/time part of the log entry written to file. |
|---|
| 61 | ;date_mask=%Y-%m-%d %H:%M:%S |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | [NSClient] |
|---|
| 65 | ;# ALLOWED HOST ADDRESSES |
|---|
| 66 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon. |
|---|
| 67 | ; If you leave this blank the global version will be used instead. |
|---|
| 68 | ;allowed_hosts= |
|---|
| 69 | ; |
|---|
| 70 | ;# NSCLIENT PORT NUMBER |
|---|
| 71 | ; This is the port the NSClientListener.dll will listen to. |
|---|
| 72 | ;port=12489 |
|---|
| 73 | ; |
|---|
| 74 | ;# BIND TO ADDRESS |
|---|
| 75 | ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. |
|---|
| 76 | ; Leaving this blank will bind to all avalible IP adresses. |
|---|
| 77 | ;bind_to_address= |
|---|
| 78 | ; |
|---|
| 79 | ;# SOCKET TIMEOUT |
|---|
| 80 | ; Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out. |
|---|
| 81 | ;socket_timeout=30 |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | [Check System] |
|---|
| 85 | ;# CPU BUFFER SIZE |
|---|
| 86 | ; Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory |
|---|
| 87 | ; so don't use a larger buffer then you need (ie. the longest check you do +1). |
|---|
| 88 | ;CPUBufferSize=1h |
|---|
| 89 | ; |
|---|
| 90 | ;# CHECK RESOLUTION |
|---|
| 91 | ; The resolution to check values (currently only CPU). |
|---|
| 92 | ; The value is entered in 1/10:th of a second and the default is 10 (which means ones every second) |
|---|
| 93 | ;CheckResolution=10 |
|---|
| 94 | ; |
|---|
| 95 | ;# CHECK ALL SERVICES |
|---|
| 96 | ; Configure how to check services when a CheckAll is performed. |
|---|
| 97 | ; ...=started means services in that class *has* to be running. |
|---|
| 98 | ; ...=stopped means services in that class has to be stopped. |
|---|
| 99 | ; ...=ignored means services in this class will be ignored. |
|---|
| 100 | ;check_all_services[SERVICE_BOOT_START]=ignored |
|---|
| 101 | ;check_all_services[SERVICE_SYSTEM_START]=ignored |
|---|
| 102 | ;check_all_services[SERVICE_AUTO_START]=started |
|---|
| 103 | ;check_all_services[SERVICE_DEMAND_START]=ignored |
|---|
| 104 | ;check_all_services[SERVICE_DISABLED]=stopped |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | [NRPE] |
|---|
| 108 | ;# NRPE PORT NUMBER |
|---|
| 109 | ; This is the port the NRPEListener.dll will listen to. |
|---|
| 110 | ;port=5666 |
|---|
| 111 | ; |
|---|
| 112 | ;# COMMAND TIMEOUT |
|---|
| 113 | ; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off. |
|---|
| 114 | ;command_timeout=60 |
|---|
| 115 | ; |
|---|
| 116 | ;# COMMAND ARGUMENT PROCESSING |
|---|
| 117 | ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. |
|---|
| 118 | ;allow_arguments=0 |
|---|
| 119 | ; |
|---|
| 120 | ;# COMMAND ALLOW NASTY META CHARS |
|---|
| 121 | ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments. |
|---|
| 122 | ;allow_nasty_meta_chars=0 |
|---|
| 123 | ; |
|---|
| 124 | ;# USE SSL SOCKET |
|---|
| 125 | ; This option controls if SSL should be used on the socket. |
|---|
| 126 | ;use_ssl=1 |
|---|
| 127 | ; |
|---|
| 128 | ;# BIND TO ADDRESS |
|---|
| 129 | ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. |
|---|
| 130 | ; Leaving this blank will bind to all avalible IP adresses. |
|---|
| 131 | ; bind_to_address= |
|---|
| 132 | ; |
|---|
| 133 | ;# ALLOWED HOST ADDRESSES |
|---|
| 134 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to NRPE deamon. |
|---|
| 135 | ; If you leave this blank the global version will be used instead. |
|---|
| 136 | ;allowed_hosts= |
|---|
| 137 | ; |
|---|
| 138 | ;# SCRIPT DIRECTORY |
|---|
| 139 | ; All files in this directory will become check commands. |
|---|
| 140 | ; *WARNING* This is undoubtedly dangerous so use with care! |
|---|
| 141 | ;script_dir=scripts\ |
|---|
| 142 | ; |
|---|
| 143 | ;# SOCKET TIMEOUT |
|---|
| 144 | ; Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out. |
|---|
| 145 | ;socket_timeout=30 |
|---|
| 146 | |
|---|
| 147 | |
|---|
| 148 | |
|---|
| 149 | [NRPE Handlers] |
|---|
| 150 | ;# COMMAND DEFINITIONS |
|---|
| 151 | ;# Command definitions that this daemon will run. |
|---|
| 152 | ;# Can be either NRPE syntax: |
|---|
| 153 | ;command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 |
|---|
| 154 | ;# Or simplified syntax: |
|---|
| 155 | ;test=c:\test.bat foo $ARG1$ bar |
|---|
| 156 | ;check_disk1=/usr/local/nagios/libexec/check_disk -w 5 -c 10 |
|---|
| 157 | ;# Or even loopback (inject) syntax (to run internal commands) |
|---|
| 158 | ;# This is a way to run "NSClient" commands and other internal module commands such as check eventlog etc. |
|---|
| 159 | ;check_cpu=inject checkCPU warn=80 crit=90 5 10 15 |
|---|
| 160 | ;check_eventlog=inject CheckEventLog Application warn.require.eventType=error warn.require.eventType=warning critical.require.eventType=error critical.exclude.eventType=info truncate=1024 descriptions |
|---|
| 161 | ;check_disk_c=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:\ATI\*.* |
|---|
| 162 | ;# But be careful: |
|---|
| 163 | ; dont_check=inject dont_check This will "loop forever" so be careful with the inject command... |
|---|
| 164 | ;# Check some escapings... |
|---|
| 165 | ; check_escape=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M "File: foo \" WIN=c:\\WINDOWS\\*.*" |
|---|
| 166 | ;# Some real world samples |
|---|
| 167 | ;nrpe_cpu=inject checkCPU warn=80 crit=90 5 10 15 |
|---|
| 168 | ;nrpe_ok=scripts\ok.bat |
|---|
| 169 | ;check_multi_line=scripts\multi_line.bat |
|---|
| 170 | ;# |
|---|
| 171 | ;# The sample scripts |
|---|
| 172 | ;# |
|---|
| 173 | ;check_long=scripts\long.bat |
|---|
| 174 | ;check_ok=scripts\ok.bat |
|---|
| 175 | ;check_nok=scripts\xlong.bat |
|---|
| 176 | ;check_vbs=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs |
|---|
| 177 | |
|---|
| 178 | |
|---|
| 179 | ; [includes] |
|---|
| 180 | ;# The order when used is "reversed" thus the last included file will be "first" |
|---|
| 181 | ;# Included files can include other files (be carefull only do basic recursive checking) |
|---|
| 182 | ; |
|---|
| 183 | ; myotherfile.ini |
|---|
| 184 | ; real.ini |
|---|
| 185 | |
|---|
| 186 | |
|---|
| 187 | [NSCA Agent] |
|---|
| 188 | ;# CHECK INTERVALL (in seconds) |
|---|
| 189 | ; How often we should run the checks and submit the results. |
|---|
| 190 | ;interval=5 |
|---|
| 191 | ; |
|---|
| 192 | ;# ENCRYPTION METHOD |
|---|
| 193 | ; This option determines the method by which the send_nsca client will encrypt the packets it sends |
|---|
| 194 | ; to the nsca daemon. The encryption method you choose will be a balance between security and |
|---|
| 195 | ; performance, as strong encryption methods consume more processor resources. |
|---|
| 196 | ; You should evaluate your security needs when choosing an encryption method. |
|---|
| 197 | ; |
|---|
| 198 | ; Note: The encryption method you specify here must match the decryption method the nsca daemon uses |
|---|
| 199 | ; (as specified in the nsca.cfg file)!! |
|---|
| 200 | ; Values: |
|---|
| 201 | ; 0 = None (Do NOT use this option) |
|---|
| 202 | ; 1 = Simple XOR (No security, just obfuscation, but very fast) |
|---|
| 203 | ; (no MCRYPT yet, but soon...) |
|---|
| 204 | ;encryption_method=1 |
|---|
| 205 | ; |
|---|
| 206 | ;# ENCRYPTION PASSWORD |
|---|
| 207 | ; This is the password/passphrase that should be used to encrypt the sent packets. |
|---|
| 208 | ;password= |
|---|
| 209 | ; |
|---|
| 210 | ;# BIND TO ADDRESS |
|---|
| 211 | ; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname. |
|---|
| 212 | ; Leaving this blank will bind to "one" local interface. |
|---|
| 213 | ;bind_to_address= |
|---|
| 214 | ; |
|---|
| 215 | ;# NAGIOS SERVER ADDRESS |
|---|
| 216 | ; The address to the nagios server to submit results to. |
|---|
| 217 | ;nsca_host=192.168.0.1 |
|---|
| 218 | ; |
|---|
| 219 | ;# NAGIOS SERVER PORT |
|---|
| 220 | ; The port to the nagios server to submit results to. |
|---|
| 221 | ;nsca_port=5667 |
|---|
| 222 | ; |
|---|
| 223 | |
|---|
| 224 | ;# CHECK COMMAND LIST |
|---|
| 225 | ; The checks to run everytime we submit results back to nagios |
|---|
| 226 | ; |
|---|
| 227 | [NSCA Commands] |
|---|
| 228 | my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4 |
|---|
| 229 | my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page |
|---|
| 230 | my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService |
|---|