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