source: nagios/cgi.cfg@ 387

Last change on this file since 387 was 202, checked in by Rick van der Zwet, 14 years ago

Nagios config files

File size: 11.1 KB
Line 
1#################################################################
2#
3# CGI.CFG - Sample CGI Configuration File for Nagios 3.2.2
4#
5# Last Modified: 06-17-2009
6#
7#################################################################
8
9
10# MAIN CONFIGURATION FILE
11# This tells the CGIs where to find your main configuration file.
12# The CGIs will read the main and host config files for any other
13# data they might need.
14
15main_config_file=/usr/local/etc/nagios/nagios.cfg
16
17
18
19# PHYSICAL HTML PATH
20# This is the path where the HTML files for Nagios reside. This
21# value is used to locate the logo images needed by the statusmap
22# and statuswrl CGIs.
23
24physical_html_path=/usr/local/www/nagios
25
26
27
28# URL HTML PATH
29# This is the path portion of the URL that corresponds to the
30# physical location of the Nagios HTML files (as defined above).
31# This value is used by the CGIs to locate the online documentation
32# and graphics. If you access the Nagios pages with an URL like
33# http://www.myhost.com/nagios, this value should be '/nagios'
34# (without the quotes).
35
36url_html_path=/nagios
37
38
39
40# CONTEXT-SENSITIVE HELP
41# This option determines whether or not a context-sensitive
42# help icon will be displayed for most of the CGIs.
43# Values: 0 = disables context-sensitive help
44# 1 = enables context-sensitive help
45
46show_context_help=0
47
48
49
50# PENDING STATES OPTION
51# This option determines what states should be displayed in the web
52# interface for hosts/services that have not yet been checked.
53# Values: 0 = leave hosts/services that have not been check yet in their original state
54# 1 = mark hosts/services that have not been checked yet as PENDING
55
56use_pending_states=1
57
58
59
60
61# AUTHENTICATION USAGE
62# This option controls whether or not the CGIs will use any
63# authentication when displaying host and service information, as
64# well as committing commands to Nagios for processing.
65#
66# Read the HTML documentation to learn how the authorization works!
67#
68# NOTE: It is a really *bad* idea to disable authorization, unless
69# you plan on removing the command CGI (cmd.cgi)! Failure to do
70# so will leave you wide open to kiddies messing with Nagios and
71# possibly hitting you with a denial of service attack by filling up
72# your drive by continuously writing to your command file!
73#
74# Setting this value to 0 will cause the CGIs to *not* use
75# authentication (bad idea), while any other value will make them
76# use the authentication functions (the default).
77
78use_authentication=1
79
80
81
82
83# x509 CERT AUTHENTICATION
84# When enabled, this option allows you to use x509 cert (SSL)
85# authentication in the CGIs. This is an advanced option and should
86# not be enabled unless you know what you're doing.
87
88use_ssl_authentication=0
89
90
91
92
93# DEFAULT USER
94# Setting this variable will define a default user name that can
95# access pages without authentication. This allows people within a
96# secure domain (i.e., behind a firewall) to see the current status
97# without authenticating. You may want to use this to avoid basic
98# authentication if you are not using a secure server since basic
99# authentication transmits passwords in the clear.
100#
101# Important: Do not define a default username unless you are
102# running a secure web server and are sure that everyone who has
103# access to the CGIs has been authenticated in some manner! If you
104# define this variable, anyone who has not authenticated to the web
105# server will inherit all rights you assign to this user!
106
107default_user_name=guest
108
109
110
111# SYSTEM/PROCESS INFORMATION ACCESS
112# This option is a comma-delimited list of all usernames that
113# have access to viewing the Nagios process information as
114# provided by the Extended Information CGI (extinfo.cgi). By
115# default, *no one* has access to this unless you choose to
116# not use authorization. You may use an asterisk (*) to
117# authorize any user who has authenticated to the web server.
118
119authorized_for_system_information=nagiosadmin
120
121
122
123# CONFIGURATION INFORMATION ACCESS
124# This option is a comma-delimited list of all usernames that
125# can view ALL configuration information (hosts, commands, etc).
126# By default, users can only view configuration information
127# for the hosts and services they are contacts for. You may use
128# an asterisk (*) to authorize any user who has authenticated
129# to the web server.
130
131authorized_for_configuration_information=nagiosadmin
132
133
134
135# SYSTEM/PROCESS COMMAND ACCESS
136# This option is a comma-delimited list of all usernames that
137# can issue shutdown and restart commands to Nagios via the
138# command CGI (cmd.cgi). Users in this list can also change
139# the program mode to active or standby. By default, *no one*
140# has access to this unless you choose to not use authorization.
141# You may use an asterisk (*) to authorize any user who has
142# authenticated to the web server.
143
144authorized_for_system_commands=nagiosadmin
145
146
147
148# GLOBAL HOST/SERVICE VIEW ACCESS
149# These two options are comma-delimited lists of all usernames that
150# can view information for all hosts and services that are being
151# monitored. By default, users can only view information
152# for hosts or services that they are contacts for (unless you
153# you choose to not use authorization). You may use an asterisk (*)
154# to authorize any user who has authenticated to the web server.
155
156
157authorized_for_all_services=nagiosadmin
158authorized_for_all_hosts=nagiosadmin,guest
159
160
161
162# GLOBAL HOST/SERVICE COMMAND ACCESS
163# These two options are comma-delimited lists of all usernames that
164# can issue host or service related commands via the command
165# CGI (cmd.cgi) for all hosts and services that are being monitored.
166# By default, users can only issue commands for hosts or services
167# that they are contacts for (unless you you choose to not use
168# authorization). You may use an asterisk (*) to authorize any
169# user who has authenticated to the web server.
170
171authorized_for_all_service_commands=nagiosadmin
172authorized_for_all_host_commands=nagiosadmin
173
174
175
176# READ-ONLY USERS
177# A comma-delimited list of usernames that have read-only rights in
178# the CGIs. This will block any service or host commands normally shown
179# on the extinfo CGI pages. It will also block comments from being shown
180# to read-only users.
181
182authorized_for_read_only=user1,user2,guest
183
184
185
186
187# STATUSMAP BACKGROUND IMAGE
188# This option allows you to specify an image to be used as a
189# background in the statusmap CGI. It is assumed that the image
190# resides in the HTML images path (i.e. /usr/local/nagios/share/images).
191# This path is automatically determined by appending "/images"
192# to the path specified by the 'physical_html_path' directive.
193# Note: The image file may be in GIF, PNG, JPEG, or GD2 format.
194# However, I recommend that you convert your image to GD2 format
195# (uncompressed), as this will cause less CPU load when the CGI
196# generates the image.
197
198#statusmap_background_image=smbackground.gd2
199
200
201
202
203# STATUSMAP TRANSPARENCY INDEX COLOR
204# These options set the r,g,b values of the background color used the statusmap CGI,
205# so normal browsers that can't show real png transparency set the desired color as
206# a background color instead (to make it look pretty).
207# Defaults to white: (R,G,B) = (255,255,255).
208
209#color_transparency_index_r=255
210#color_transparency_index_g=255
211#color_transparency_index_b=255
212
213
214
215
216# DEFAULT STATUSMAP LAYOUT METHOD
217# This option allows you to specify the default layout method
218# the statusmap CGI should use for drawing hosts. If you do
219# not use this option, the default is to use user-defined
220# coordinates. Valid options are as follows:
221# 0 = User-defined coordinates
222# 1 = Depth layers
223# 2 = Collapsed tree
224# 3 = Balanced tree
225# 4 = Circular
226# 5 = Circular (Marked Up)
227
228default_statusmap_layout=5
229
230
231
232# DEFAULT STATUSWRL LAYOUT METHOD
233# This option allows you to specify the default layout method
234# the statuswrl (VRML) CGI should use for drawing hosts. If you
235# do not use this option, the default is to use user-defined
236# coordinates. Valid options are as follows:
237# 0 = User-defined coordinates
238# 2 = Collapsed tree
239# 3 = Balanced tree
240# 4 = Circular
241
242default_statuswrl_layout=4
243
244
245
246# STATUSWRL INCLUDE
247# This option allows you to include your own objects in the
248# generated VRML world. It is assumed that the file
249# resides in the HTML path (i.e. /usr/local/nagios/share).
250
251#statuswrl_include=myworld.wrl
252
253
254
255# PING SYNTAX
256# This option determines what syntax should be used when
257# attempting to ping a host from the WAP interface (using
258# the statuswml CGI. You must include the full path to
259# the ping binary, along with all required options. The
260# $HOSTADDRESS$ macro is substituted with the address of
261# the host before the command is executed.
262# Please note that the syntax for the ping binary is
263# notorious for being different on virtually ever *NIX
264# OS and distribution, so you may have to tweak this to
265# work on your system.
266
267ping_syntax=/sbin/ping -n -c 5 $HOSTADDRESS$
268
269
270
271# REFRESH RATE
272# This option allows you to specify the refresh rate in seconds
273# of various CGIs (status, statusmap, extinfo, and outages).
274
275refresh_rate=90
276
277
278
279# ESCAPE HTML TAGS
280# This option determines whether HTML tags in host and service
281# status output is escaped in the web interface. If enabled,
282# your plugin output will not be able to contain clickable links.
283
284escape_html_tags=1
285
286
287
288
289# SOUND OPTIONS
290# These options allow you to specify an optional audio file
291# that should be played in your browser window when there are
292# problems on the network. The audio files are used only in
293# the status CGI. Only the sound for the most critical problem
294# will be played. Order of importance (higher to lower) is as
295# follows: unreachable hosts, down hosts, critical services,
296# warning services, and unknown services. If there are no
297# visible problems, the sound file optionally specified by
298# 'normal_sound' variable will be played.
299#
300#
301# <varname>=<sound_file>
302#
303# Note: All audio files must be placed in the /media subdirectory
304# under the HTML path (i.e. /usr/local/nagios/share/media/).
305
306#host_unreachable_sound=hostdown.wav
307#host_down_sound=hostdown.wav
308#service_critical_sound=critical.wav
309#service_warning_sound=warning.wav
310#service_unknown_sound=warning.wav
311#normal_sound=noproblem.wav
312
313
314
315# URL TARGET FRAMES
316# These options determine the target frames in which notes and
317# action URLs will open.
318
319action_url_target=_blank
320notes_url_target=_blank
321
322
323
324
325# LOCK AUTHOR NAMES OPTION
326# This option determines whether users can change the author name
327# when submitting comments, scheduling downtime. If disabled, the
328# author names will be locked into their contact name, as defined in Nagios.
329# Values: 0 = allow editing author names
330# 1 = lock author names (disallow editing)
331
332lock_author_names=1
333
334
335
336
337# SPLUNK INTEGRATION OPTIONS
338# These options allow you to enable integration with Splunk
339# in the web interface. If enabled, you'll be presented with
340# "Splunk It" links in various places in the CGIs (log file,
341# alert history, host/service detail, etc). Useful if you're
342# trying to research why a particular problem occurred.
343# For more information on Splunk, visit http://www.splunk.com/
344
345# This option determines whether the Splunk integration is enabled
346# Values: 0 = disable Splunk integration
347# 1 = enable Splunk integration
348
349#enable_splunk_integration=1
350
351
352# This option should be the URL used to access your instance of Splunk
353
354#splunk_url=http://127.0.0.1:8000/
355
356
357
Note: See TracBrowser for help on using the repository browser.