source: nscp/NSC.dist @ b1ac2fa

0.4.00.4.10.4.2stable
Last change on this file since b1ac2fa was b1ac2fa, checked in by Michael Medin <michael@…>, 4 years ago

2009-05-03 MickeM

  • Fixed another quite serious memory leak! And this was a hard one, took me hours and hours and hours (read weeks) to track down, but here we are!
  • A lot of other fixes as I have been through much of the code looking for the memmory leak above.

2009-03-30 MickeM

+ Added new option to NSCA module for specifying report options.

report=all (report=warning,critical) etc etc to specify which kind of return datat to get default value is all.

+ Added so password and host ate stored in the installer (if changed)

2009-03-29 MickeM

  • Fixed a lot of issues with the installer and added a start on exit (and donate) on the finnish dialog.

2009-03-15 MickeM

  • New service name (displayname)
  • New service description

2009-03-14 MickeM

  • Rebuilt installer UI (still missing write config function)
  • Added debug entry to log filename used by debug log metrics.
  • Fixed so alias will not require the allow_nasty_metachars option set under external sripts module.

2009-03-02 MickeM

  • Added catch handlers and error logging to NSCA Thread
  • Fixed issue with CheckProcState and administrator login! + Added debug module to installer + Added option max-dir-depth to CheckFile and CheckFile2 like so: CheckFile "file=c:\test\*.txt" filter-size=<24g "syntax=%filename%: %size%" MaxCrit=1 max-dir-depth=0 Will only find files on the "first level" where as max-dir-depth=1 would find all parents and children etc. (-1 is the default and means find all)
  • Fixed issue with finding sub-folders and *.txt now it will always look for subfolders if they are present

2009-02-26 MickeM

  • Fixed issue with debug logging (not it can be disabled again)

2009-02-23 MickeM

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