| 16 | | == Configuration == |
| 17 | | |
| 18 | | === NSClient === |
| 19 | | This is the NSClient module configuration options. |
| 20 | | |
| 21 | | ||Option||Default value||Description|| |
| 22 | | ||port||12489||The port to listen to |
| 23 | | ||obfuscated_password|| ||An obfuscated version of password. For more details refer to the password option below. |
| 24 | | ||password|| ||The password that incoming client needs to authorize themselves by. This option will replace the one found under Settings for NSClient. If this is blank the option found under Settings will be used. If both are blank everyone will be granted access. |
| 25 | | ||allowed_hosts|| ||A list (coma separated) with hosts that are allowed to poll information from NSClient++. This will replace the one found under Setting for NSClient if present. If not present the same option found under Settings will be used. If both are blank all hosts will be allowed to access the system. '''BEWARE:''' NSClient++ will not resolve the IP address of DNS entries if the service is set to startup automatically. Use an IP address instead or set cache_allowed_hosts=0 see above. |
| 26 | | ||bind_to_address|| ||The address to bind to when listening to sockets, useful if you have more then one NIC/IP address and want the agent to answer on a specific one. |
| 27 | | ||socket_timeout||30||The timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. and discard the connection. |
| 28 | | ||version||auto||The version number to return for the CLIENTVERSION check (useful to "simulate" an old/different version of the client, auto will be generated from the compiled version string inside NSClient++ |
| 29 | | |
| 30 | | '''Advanced options:''' |
| 31 | | ||Option||Default value||Description|| |
| 32 | | ||socket_back_log|| ||Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. This is an advanced option and should not be used. |
| 33 | | |
| 34 | | == Examples == |
| 35 | | |
| 36 | | Check the size of C:\ and make sure it warns at 80% used and a critical warning at 95% used: |
| 37 | | {{{ |
| 38 | | define command { |
| 39 | | command_name check_nt_disk |
| 40 | | command_line $USER1$/check_nt -s passphrase -H $HOSTADDRESS$ -p 12489 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ |
| 41 | | } |
| 42 | | check_command check_nt_disk!c!80!95 |
| 43 | | }}} |
| 44 | | |
| 45 | | Check Perfmon value for File IO reads |
| 46 | | {{{ |
| 47 | | define command { |
| 48 | | command_name check_io_read |
| 49 | | command_line /usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER -l "\\System\\File Read Bytes/sec" |
| 50 | | } |
| 51 | | check_command check_io_read |
| 52 | | }}} |
| | 16 | == Configuration Sections == |
| | 17 | === NSClient Section === |
| | 18 | ''This is a wrapper page the actual data is on the following page [wiki:NSClientListener/config]'' |
| | 19 | [[Include(NSClientListener/config)]] |