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