source: trunk/noc/nagios/cgi.cfg @ 1119

Last change on this file since 1119 was 1060, checked in by quentin, 13 years ago
Update Nagios configuration for Nagios 3
File size: 9.8 KB
Line 
1#################################################################
2#
3# CGI.CFG - CGI Configuration File for Nagios
4#
5#################################################################
6
7
8# MAIN CONFIGURATION FILE
9# This tells the CGIs where to find your main configuration file.
10# The CGIs will read the main and host config files for any other
11# data they might need.
12
13main_config_file=/etc/nagios3/nagios.cfg
14
15
16
17# PHYSICAL HTML PATH
18# This is the path where the HTML files for Nagios reside.  This
19# value is used to locate the logo images needed by the statusmap
20# and statuswrl CGIs.
21
22physical_html_path=/usr/share/nagios3/htdocs
23
24
25
26# URL HTML PATH
27# This is the path portion of the URL that corresponds to the
28# physical location of the Nagios HTML files (as defined above).
29# This value is used by the CGIs to locate the online documentation
30# and graphics.  If you access the Nagios pages with an URL like
31# http://www.myhost.com/nagios, this value should be '/nagios'
32# (without the quotes).
33
34url_html_path=/nagios3
35
36
37
38# CONTEXT-SENSITIVE HELP
39# This option determines whether or not a context-sensitive
40# help icon will be displayed for most of the CGIs.
41# Values: 0 = disables context-sensitive help
42#         1 = enables context-sensitive help
43
44show_context_help=1
45
46
47
48# PENDING STATES OPTION
49# This option determines what states should be displayed in the web
50# interface for hosts/services that have not yet been checked.
51# Values: 0 = leave hosts/services that have not been check yet in their original state
52#         1 = mark hosts/services that have not been checked yet as PENDING
53
54use_pending_states=1
55
56nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/cache/nagios3/status.dat 5 '/usr/sbin/nagios3'
57
58
59# AUTHENTICATION USAGE
60# This option controls whether or not the CGIs will use any
61# authentication when displaying host and service information, as
62# well as committing commands to Nagios for processing. 
63#
64# Read the HTML documentation to learn how the authorization works!
65#
66# NOTE: It is a really *bad* idea to disable authorization, unless
67# you plan on removing the command CGI (cmd.cgi)!  Failure to do
68# so will leave you wide open to kiddies messing with Nagios and
69# possibly hitting you with a denial of service attack by filling up
70# your drive by continuously writing to your command file!
71#
72# Setting this value to 0 will cause the CGIs to *not* use
73# authentication (bad idea), while any other value will make them
74# use the authentication functions (the default).
75
76use_authentication=1
77
78
79
80
81# x509 CERT AUTHENTICATION
82# When enabled, this option allows you to use x509 cert (SSL)
83# authentication in the CGIs.  This is an advanced option and should
84# not be enabled unless you know what you're doing.
85
86use_ssl_authentication=0
87
88
89
90
91# DEFAULT USER
92# Setting this variable will define a default user name that can
93# access pages without authentication.  This allows people within a
94# secure domain (i.e., behind a firewall) to see the current status
95# without authenticating.  You may want to use this to avoid basic
96# authentication if you are not using a secure server since basic
97# authentication transmits passwords in the clear.
98#
99# Important:  Do not define a default username unless you are
100# running a secure web server and are sure that everyone who has
101# access to the CGIs has been authenticated in some manner!  If you
102# define this variable, anyone who has not authenticated to the web
103# server will inherit all rights you assign to this user!
104 
105default_user_name=guest
106
107
108
109# SYSTEM/PROCESS INFORMATION ACCESS
110# This option is a comma-delimited list of all usernames that
111# have access to viewing the Nagios process information as
112# provided by the Extended Information CGI (extinfo.cgi).  By
113# default, *no one* has access to this unless you choose to
114# not use authorization.  You may use an asterisk (*) to
115# authorize any user who has authenticated to the web server.
116
117authorized_for_system_information=presbrey@MIT.EDU,andersk@MIT.EDU,quentin@MIT.EDU,geofft@MIT.EDU,mitchb@MIT.EDU
118
119
120
121# CONFIGURATION INFORMATION ACCESS
122# This option is a comma-delimited list of all usernames that
123# can view ALL configuration information (hosts, commands, etc).
124# By default, users can only view configuration information
125# for the hosts and services they are contacts for. You may use
126# an asterisk (*) to authorize any user who has authenticated
127# to the web server.
128
129authorized_for_configuration_information=presbrey@MIT.EDU,andersk@MIT.EDU,quentin@MIT.EDU,geofft@MIT.EDU,mitchb@MIT.EDU
130
131
132
133# SYSTEM/PROCESS COMMAND ACCESS
134# This option is a comma-delimited list of all usernames that
135# can issue shutdown and restart commands to Nagios via the
136# command CGI (cmd.cgi).  Users in this list can also change
137# the program mode to active or standby. By default, *no one*
138# has access to this unless you choose to not use authorization.
139# You may use an asterisk (*) to authorize any user who has
140# authenticated to the web server.
141
142authorized_for_system_commands=presbrey@MIT.EDU,andersk@MIT.EDU,quentin@MIT.EDU,geofft@MIT.EDU,mitchb@MIT.EDU
143
144
145
146# GLOBAL HOST/SERVICE VIEW ACCESS
147# These two options are comma-delimited lists of all usernames that
148# can view information for all hosts and services that are being
149# monitored.  By default, users can only view information
150# for hosts or services that they are contacts for (unless you
151# you choose to not use authorization). You may use an asterisk (*)
152# to authorize any user who has authenticated to the web server.
153
154
155authorized_for_all_services=*
156authorized_for_all_hosts=*
157#authorized_for_all_services=presbrey@MIT.EDU,andersk@MIT.EDU
158#authorized_for_all_hosts=presbrey@MIT.EDU,andersk@MIT.EDU
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=presbrey@MIT.EDU,andersk@MIT.EDU,quentin@MIT.EDU,geofft@MIT.EDU,mitchb@MIT.EDU
172authorized_for_all_host_commands=presbrey@MIT.EDU,andersk@MIT.EDU,quentin@MIT.EDU,geofft@MIT.EDU,mitchb@MIT.EDU
173
174
175
176
177# STATUSMAP BACKGROUND IMAGE
178# This option allows you to specify an image to be used as a
179# background in the statusmap CGI.  It is assumed that the image
180# resides in the HTML images path (i.e. /usr/local/nagios/share/images).
181# This path is automatically determined by appending "/images"
182# to the path specified by the 'physical_html_path' directive.
183# Note:  The image file may be in GIF, PNG, JPEG, or GD2 format.
184# However, I recommend that you convert your image to GD2 format
185# (uncompressed), as this will cause less CPU load when the CGI
186# generates the image.
187
188#statusmap_background_image=smbackground.gd2
189
190
191
192# DEFAULT STATUSMAP LAYOUT METHOD
193# This option allows you to specify the default layout method
194# the statusmap CGI should use for drawing hosts.  If you do
195# not use this option, the default is to use user-defined
196# coordinates.  Valid options are as follows:
197#       0 = User-defined coordinates
198#       1 = Depth layers
199#       2 = Collapsed tree
200#       3 = Balanced tree
201#       4 = Circular
202#       5 = Circular (Marked Up)
203
204default_statusmap_layout=5
205
206
207
208# DEFAULT STATUSWRL LAYOUT METHOD
209# This option allows you to specify the default layout method
210# the statuswrl (VRML) CGI should use for drawing hosts.  If you
211# do not use this option, the default is to use user-defined
212# coordinates.  Valid options are as follows:
213#       0 = User-defined coordinates
214#       2 = Collapsed tree
215#       3 = Balanced tree
216#       4 = Circular
217
218default_statuswrl_layout=4
219
220
221
222# STATUSWRL INCLUDE
223# This option allows you to include your own objects in the
224# generated VRML world.  It is assumed that the file
225# resides in the HTML path (i.e. /usr/local/nagios/share).
226
227#statuswrl_include=myworld.wrl
228
229
230
231# PING SYNTAX
232# This option determines what syntax should be used when
233# attempting to ping a host from the WAP interface (using
234# the statuswml CGI.  You must include the full path to
235# the ping binary, along with all required options.  The
236# $HOSTADDRESS$ macro is substituted with the address of
237# the host before the command is executed.
238# Please note that the syntax for the ping binary is
239# notorious for being different on virtually ever *NIX
240# OS and distribution, so you may have to tweak this to
241# work on your system.
242
243ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
244
245
246
247# REFRESH RATE
248# This option allows you to specify the refresh rate in seconds
249# of various CGIs (status, statusmap, extinfo, and outages). 
250
251refresh_rate=90
252
253
254
255# ESCAPE HTML TAGS
256# This option determines whether HTML tags in host and service
257# status output is escaped in the web interface.  If enabled,
258# your plugin output will not be able to contain clickable links.
259
260escape_html_tags=1
261
262
263
264
265# SOUND OPTIONS
266# These options allow you to specify an optional audio file
267# that should be played in your browser window when there are
268# problems on the network.  The audio files are used only in
269# the status CGI.  Only the sound for the most critical problem
270# will be played.  Order of importance (higher to lower) is as
271# follows: unreachable hosts, down hosts, critical services,
272# warning services, and unknown services. If there are no
273# visible problems, the sound file optionally specified by
274# 'normal_sound' variable will be played.
275#
276#
277# <varname>=<sound_file>
278#
279# Note: All audio files must be placed in the /media subdirectory
280# under the HTML path (i.e. /usr/local/nagios/share/media/).
281
282#host_unreachable_sound=hostdown.wav
283#host_down_sound=hostdown.wav
284#service_critical_sound=critical.wav
285#service_warning_sound=warning.wav
286#service_unknown_sound=warning.wav
287#normal_sound=noproblem.wav
288
Note: See TracBrowser for help on using the repository browser.