RemoteConfiguration: NSC.ini

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