1##################################################################### 2# NDOMOD CONFIG FILE 3# 4# Last Modified: 09-05-2007 5##################################################################### 6 7 8# INSTANCE NAME 9# This option identifies the "name" associated with this particular 10# instance of Nagios and is used to separate data coming from multiple 11# instances. Defaults to 'default' (without quotes). 12 13instance_name=default 14 15 16 17# OUTPUT TYPE 18# This option determines what type of output sink the NDO NEB module 19# should use for data output. Valid options include: 20# file = standard text file 21# tcpsocket = TCP socket 22# unixsocket = UNIX domain socket (default) 23 24#output_type=file 25#output_type=tcpsocket 26output_type=unixsocket 27 28 29 30# OUTPUT 31# This option determines the name and path of the file or UNIX domain 32# socket to which output will be sent if the output type option specified 33# above is "file" or "unixsocket", respectively. If the output type 34# option is "tcpsocket", this option is used to specify the IP address 35# of fully qualified domain name of the host that the module should 36# connect to for sending output. 37 38#output=@localstatedir@/ndo.dat 39#output=127.0.0.1 40output=@localstatedir@/ndo.sock 41 42 43 44# TCP PORT 45# This option determines what port the module will connect to in 46# order to send output. This option is only valid if the output type 47# option specified above is "tcpsocket". 48 49tcp_port=@ndo2db_port@ 50 51 52 53# ENCRYPTION 54# This option determines if the module will use SSL to encrypt the 55# network traffic between module and ndo2db daemon. 56# Both sides have to enable this feature which depends on SSL Libraries 57# like openssl or kerberos 58# This option is only valid if the output type 59# option specified above is "tcpsocket". 60# 61# A value of '1' will enable this feature 62 63use_ssl=0 64 65 66 67# OUTPUT BUFFER 68# This option determines the size of the output buffer, which will help 69# prevent data from getting lost if there is a temporary disconnect from 70# the data sink. The number of items specified here is the number of 71# lines (each of variable size) of output that will be buffered. 72 73output_buffer_items=5000 74 75 76 77# BUFFER FILE 78# This option is used to specify a file which will be used to store the 79# contents of buffered data which could not be sent to the NDO2DB daemon 80# before Nagios shuts down. Prior to shutting down, the NDO NEB module 81# will write all buffered data to this file for later processing. When 82# Nagios (re)starts, the NDO NEB module will read the contents of this 83# file and send it to the NDO2DB daemon for processing. 84 85buffer_file=/var/spool/nagios/ndomod.tmp 86 87 88 89# FILE ROTATION INTERVAL 90# This option determines how often (in seconds) the output file is 91# rotated by Nagios. File rotation is handled by Nagios by executing 92# the command defined by the file_rotation_command option. This 93# option has no effect if the output_type option is a socket. 94 95file_rotation_interval=14400 96 97 98 99# FILE ROTATION COMMAND 100# This option specified the command (as defined in Nagios) that is 101# used to rotate the output file at the interval specified by the 102# file_rotation_interval option. This option has no effect if the 103# output_type option is a socket. 104# 105# See the file 'misccommands.cfg' for an example command definition 106# that you can use to rotate the log file. 107 108#file_rotation_command=rotate_ndo_log 109 110 111 112# FILE ROTATION TIMEOUT 113# This option specified the maximum number of seconds that the file 114# rotation command should be allowed to run before being prematurely 115# terminated. 116 117file_rotation_timeout=60 118 119 120 121# RECONNECT INTERVAL 122# This option determines how often (in seconds) that the NDO NEB 123# module will attempt to re-connect to the output file or socket if 124# a connection to it is lost. 125 126reconnect_interval=15 127 128 129 130# RECONNECT WARNING INTERVAL 131# This option determines how often (in seconds) a warning message will 132# be logged to the Nagios log file if a connection to the output file 133# or socket cannot be re-established. 134 135reconnect_warning_interval=15 136#reconnect_warning_interval=900 137 138 139 140# DATA PROCESSING OPTIONS 141# These options determine what data the NDO NEB Module will process 142# 143acknowledgement_data=1 144adaptive_contact_data=1 145adaptive_host_data=1 146adaptive_program_data=1 147adaptive_service_data=1 148aggregated_status_data=1 149comment_data=1 150contact_status_data=1 151downtime_data=1 152event_handler_data=1 153external_command_data=1 154flapping_data=1 155host_check_data=1 156host_status_data=1 157log_data=1 158main_config_data=1 159notification_data=1 160object_config_data=1 161process_data=1 162program_status_data=1 163retention_data=1 164service_check_data=1 165service_status_data=1 166state_change_data=1 167system_command_data=1 168timed_event_data=1 169 170 171# CONFIG OUTPUT OPTION 172# This option determines what types of configuration data the NDO 173# NEB module will dump from Nagios. Values can be OR'ed together. 174# Values: 175# 0 = Don't dump any configuration information 176# 1 = Dump only original config (from config files) 177# 2 = Dump config only after retained information has been restored 178# 3 = Dump both original and retained configuration 179 180config_output_options=2 181 182