| 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 | |
|---|
| 19 | [Settings] |
|---|
| 20 | ;# OBFUSCATED PASSWORD |
|---|
| 21 | ; This is the same as the password option but here you can store the password in an obfuscated manner. |
|---|
| 22 | ; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the |
|---|
| 23 | ; password. Its just a bit harder to do it at first glance. |
|---|
| 24 | ;obfuscated_password=Jw0KAUUdXlAAUwASDAAB |
|---|
| 25 | ; |
|---|
| 26 | ;# PASSWORD |
|---|
| 27 | ; 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. |
|---|
| 28 | ;password=secret-password |
|---|
| 29 | ; |
|---|
| 30 | ;# ALLOWED HOST ADDRESSES |
|---|
| 31 | ; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons. |
|---|
| 32 | ; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password). |
|---|
| 33 | ;allowed_hosts=127.0.0.1 |
|---|
| 34 | |
|---|
| 35 | [log] |
|---|
| 36 | ;# LOG DEBUG |
|---|
| 37 | ; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test) |
|---|
| 38 | ;debug=1 |
|---|
| 39 | ; |
|---|
| 40 | ;# LOG FILE |
|---|
| 41 | ; The file to print log statements to |
|---|
| 42 | ;file=NSC.log |
|---|
| 43 | ; |
|---|
| 44 | ;# LOG DATE MASK |
|---|
| 45 | ; The format to for the date/time part of the log entry written to file. |
|---|
| 46 | ;date_mask=%Y-%m-%d %H:%M:%S |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | [NSClient] |
|---|
| 50 | ;# NSCLIENT PORT NUMBER |
|---|
| 51 | ; This is the port the NSClientListener.dll will listen to. |
|---|
| 52 | ;port=12489 |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | [Check System] |
|---|
| 56 | ;# CPU BUFFER SIZE |
|---|
| 57 | ; Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory |
|---|
| 58 | ; so don't use a larger buffer then you need (ie. the longest check you do +1). |
|---|
| 59 | ;CPUBufferSize=1h |
|---|
| 60 | ; |
|---|
| 61 | ;# CHECK RESOLUTION |
|---|
| 62 | ; The resolution to check values (currently only CPU). |
|---|
| 63 | ; The value is entered in 1/10:th of a second and the default is 10 (which means ones every second) |
|---|
| 64 | ;CheckResolution=10 |
|---|
| 65 | |
|---|
| 66 | [NRPE] |
|---|
| 67 | ;# NRPE PORT NUMBER |
|---|
| 68 | ; This is the port the NRPEListener.dll will listen to. |
|---|
| 69 | ;port=5666 |
|---|
| 70 | ; |
|---|
| 71 | ;# COMMAND TIMEOUT |
|---|
| 72 | ; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off. |
|---|
| 73 | ;command_timeout=60 |
|---|
| 74 | ; |
|---|
| 75 | ;# COMMAND ARGUMENT PROCESSING |
|---|
| 76 | ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. |
|---|
| 77 | ;allow_arguments=0 |
|---|
| 78 | ; |
|---|
| 79 | ;# COMMAND ALLOW NASTY META CHARS |
|---|
| 80 | ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments. |
|---|
| 81 | ;allow_nasty_meta_chars=0 |
|---|
| 82 | ; |
|---|
| 83 | ;# USE SSL SOCKET |
|---|
| 84 | ; This option controls if SSL should be used on the socket. |
|---|
| 85 | ;use_ssl=1 |
|---|
| 86 | |
|---|
| 87 | [NRPE Handlers] |
|---|
| 88 | ;# COMMAND DEFINITIONS |
|---|
| 89 | ;# Command definitions that this daemon will run. |
|---|
| 90 | ;# Can be either NRPE syntax: |
|---|
| 91 | ;command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 |
|---|
| 92 | ;# Or simplified syntax: |
|---|
| 93 | ;test=c:\test.bat foo $ARG1$ bar |
|---|
| 94 | ;check_disk1=/usr/local/nagios/libexec/check_disk -w 5 -c 10 |
|---|
| 95 | ;# Or even loopback (inject) syntax (to run internal commands) |
|---|
| 96 | ;# This is a way to run "NSClient" commands and other internal module commands such as check eventlog etc. |
|---|
| 97 | ;check_cpu=inject checkCPU warn=80 crit=90 5 10 15 |
|---|
| 98 | ;check_eventlog=inject CheckEventLog Application warn.require.eventType=error warn.require.eventType=warning critical.require.eventType=error critical.exclude.eventType=info truncate=1024 descriptions |
|---|
| 99 | ;check_disk_c=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:\ATI\*.* |
|---|
| 100 | ;# But be careful: |
|---|
| 101 | ; dont_check=inject dont_check This will "loop forever" so be careful with the inject command... |
|---|
| 102 | ;# Check some escapings... |
|---|
| 103 | ; check_escape=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M "File: foo \" WIN=c:\\WINDOWS\\*.*" |
|---|