source: nscp/files/NSC.dist @ 438998b

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

Refactored service into its own project

  • Property mode set to 100644
File size: 11.4 KB
RevLine 
[89f1a84]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
[6817602]18;CheckWMI.dll
[76aafc4]19;
[04f2743]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)
[3f69109]24;NSCAAgent.dll
[04f2743]25;
26; LUA script module used to write your own "check deamon".
[777180d]27;LUAScript.dll
[04f2743]28;
29; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS!
30;RemoteConfiguration.dll
[4c8d44d]31; Check other hosts through NRPE extreme beta and probably a bit dangerous! :)
32;NRPEClient.dll
[739db5a]33; Extreamly early beta of a task-schedule checker
34;CheckTaskSched.dll
[4c8d44d]35
[777180d]36
[89f1a84]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).
[dc65e35]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
[aabbd97]54;
55;# USE THIS FILE
[76aafc4]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.
[aabbd97]58use_file=1
[739db5a]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
[89f1a84]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
[739db5a]74;file=nsclient.log
[89f1a84]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
[739db5a]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
[89f1a84]85
86
87[NSClient]
[f42280d]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;
[89f1a84]93;# NSCLIENT PORT NUMBER
94;  This is the port the NSClientListener.dll will listen to.
95;port=12489
[f42280d]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=
[30bfe74]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
[89f1a84]105
[394f7a1]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
[89f1a84]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
[30bfe74]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
[c1d545e]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
[739db5a]190;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -
[c1d545e]191
192[External Alias]
[b1ac2fa]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%)"
[358cda1]205check_ok=CheckOK Everything is fine!
[739db5a]206;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%)"
207
[c1d545e]208
[89f1a84]209
[b0ae738]210
[a6aaf0a]211; [includes]
212;# The order when used is "reversed" thus the last included file will be "first"
213;# Included files can include other files (be carefull only do basic recursive checking)
214;
215; myotherfile.ini
[3f69109]216; real.ini
217
[035c51f]218
[3f69109]219[NSCA Agent]
220;# CHECK INTERVALL (in seconds)
221;   How often we should run the checks and submit the results.
[035c51f]222;interval=5
[3f69109]223;
224;# ENCRYPTION METHOD
225;   This option determines the method by which the send_nsca client will encrypt the packets it sends
226;   to the nsca daemon. The encryption method you choose will be a balance between security and
227;   performance, as strong encryption methods consume more processor resources.
228;   You should evaluate your security needs when choosing an encryption method.
229;
230; Note: The encryption method you specify here must match the decryption method the nsca daemon uses
231;       (as specified in the nsca.cfg file)!!
232; Values:
233;       0 = None        (Do NOT use this option)
[035c51f]234;       1 = Simple XOR  (No security, just obfuscation, but very fast)
[ce57b1b]235;   2 = DES
236;   3 = 3DES (Triple DES)
237;       4 = CAST-128
238;       6 = xTEA
239;       8 = BLOWFISH
240;       9 = TWOFISH
241;       11 = RC2
242;       14 = RIJNDAEL-128 (AES)
243;       20 = SERPENT
244;encryption_method=14
[035c51f]245;
246;# ENCRYPTION PASSWORD
247;  This is the password/passphrase that should be used to encrypt the sent packets.
248;password=
[3f69109]249;
250;# BIND TO ADDRESS
251;  Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.
252;  Leaving this blank will bind to "one" local interface.
[8b206ee]253; -- not supported as of now --
[3f69109]254;bind_to_address=
255;
[65ec1fa]256;# LOCAL HOST NAME
257;  The name of this host (if empty "computername" will be used.
258;hostname=
259;
[3f69109]260;# NAGIOS SERVER ADDRESS
261;  The address to the nagios server to submit results to.
262;nsca_host=192.168.0.1
263;
264;# NAGIOS SERVER PORT
265;  The port to the nagios server to submit results to.
266;nsca_port=5667
[035c51f]267;
[3f69109]268
[035c51f]269;# CHECK COMMAND LIST
270;  The checks to run everytime we submit results back to nagios
[c1fe385]271;  Any command(alias/key) starting with a host_ is sent as HOST_COMMAND others are sent as SERVICE_COMMANDS
272;  where the alias/key is used as service name.
[3f69109]273;
274[NSCA Commands]
[ce57b1b]275;my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4
276;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page
277;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService
[c1fe385]278;host_check=check_ok
[394f7a1]279
[4c8d44d]280;# REMOTE NRPE PROXY COMMANDS
281;  A list of commands that check other hosts.
282;  Used by the NRPECLient module
283[NRPE Client Handlers]
284check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments
285
[739db5a]286;# LUA SCRIPT SECTION
287;  A list of all Lua scripts to load.
288;[LUA Scripts]
289;scripts\test.lua
Note: See TracBrowser for help on using the repository browser.