bf05e00b59f31b302a98a5fb9350a4356a3610a7
[mirror/dsa-nagios.git] / config / static / cgi.cfg
1 #################################################################
2 #
3 # CGI.CFG - CGI Configuration File for Icinga
4 #
5 #################################################################
6
7
8
9 ######################################
10 #
11 #    COMMON (ALL CGIs)
12 #
13 ######################################
14
15 # MAIN CONFIGURATION FILE
16 # This tells the CGIs where to find your main configuration file.
17 # The CGIs will read the main and host config files for any other
18 # data they might need.
19
20 main_config_file=/etc/icinga/icinga.cfg
21
22
23
24 # STANDALONE INSTALLATION
25 # This is only useful in an Icinga 2 setup (or any other setup
26 # containing multiple Classic UI installs). If you have installed
27 # Icinga 2 with compat layer and classic-ui, you can set this
28 # to 1. Otherwise leave it at 0.
29 # Enabling this option ignores main_config_file setting.
30 #
31 # NOTE: Check also the "Standalone (Icinga2) section" at the bottom
32 # if this option is switched on!
33
34 standalone_installation=0
35
36
37
38 # PHYSICAL HTML PATH
39 # This is the path where the HTML files for Icinga reside.  This
40 # value is used to locate the logo images needed by the statusmap
41 # and status CGIs.
42
43 physical_html_path=/usr/share/icinga/htdocs
44
45
46
47 # URL HTML PATH
48 # This is the path portion of the URL that corresponds to the
49 # physical location of the Icinga HTML files (as defined above).
50 # This value is used by the CGIs to locate the online documentation
51 # and graphics.  If you access the Icinga pages with an URL like
52 # http://www.myhost.com/icinga, this value should be '/icinga'
53 # (without the quotes).
54
55 url_html_path=/icinga
56
57 # NAGIOS PROCESS CHECK COMMAND
58 # This is the full path and filename of the program used to check
59 # the status of the Nagios process.  It is used only by the CGIs
60 # and is completely optional.  However, if you don't use it, you'll
61 # see warning messages in the CGIs about the Nagios process
62 # not running and you won't be able to execute any commands from
63 # the web interface.  The program should follow the same rules
64 # as plugins; the return codes are the same as for the plugins,
65 # it should have timeout protection, it should output something
66 # to STDIO, etc.
67 #
68 # Note: The command line for the check_nagios plugin below may
69 # have to be tweaked a bit, as different versions of the plugin
70 # use different command line arguments/syntaxes.
71
72 icinga_check_command=/usr/lib/nagios/plugins/check_nagios /var/lib/icinga/status.dat 5 '/usr/sbin/icinga'
73
74 # URL CGI PATH
75 # This is the path portion of the URL that corresponds to the
76 # physical location of the Icinga CGI files. It is evaluated by
77 # the cmd.cgi CSRF protection.
78 # This value should be changed if the CGI files are accessible
79 # under a different path than the default installation path.
80
81 #url_cgi_path=/icinga/cgi-bin
82
83
84
85 # URL STYLESHEETS PATH
86 # This option allows to define an url stylesheet path other than the
87 # default ($url_html_path/stylesheets). This will be useful when
88 # adding custom stylesheets in another location.
89 # If not set, the default location will be used.
90
91 url_stylesheets_path=/icinga/stylesheets
92
93
94
95 # HTTP CHARSET
96 # This defines charset that is sent with HTTP headers.
97
98 http_charset=utf-8
99
100
101
102 # REFRESH RATE
103 # This option allows you to specify the refresh rate in seconds
104 # of various CGIs (extinfo, outages, status, statusmap and tac).
105
106 refresh_rate=90
107
108
109
110 # REFRESH TYPE
111 # This option determines what type of refresh should be used.
112 # You can choose between http header and javascript. By
113 # default javascript (1) is activated. If you have trouble
114 # using javascript then try refresh via http header (0).
115
116 refresh_type=1
117
118
119
120 # ESCAPE HTML TAGS
121 # This option determines whether HTML tags in host and service
122 # status output is escaped in the web interface.  If enabled,
123 # your plugin output will not be able to contain clickable links.
124
125 escape_html_tags=1
126
127
128
129 # RESULT LIMIT
130 # This options specifies the number of page entries
131 # displayed by default in various cgi's. To display
132 # all entries by default set this value to 0.
133 # Default is 50.
134
135 result_limit=50
136
137
138
139 # SHOW TAC INFORMATION IN TOP FRAME
140 # This options places tactical overview information in
141 # the top frame similar to the view that's in icinga-web.
142 # By default it is enabled.
143
144 show_tac_header=1
145
146
147
148 # PENDING STATES OPTION
149 # This option determines what states should be displayed in the web
150 # interface for hosts/services that have not yet been checked.
151 # Values: 0 = leave hosts/services that have not been check yet in their original state
152 #         1 = mark hosts/services that have not been checked yet as PENDING (default)
153
154 use_pending_states=1
155
156
157
158 # FIRST DAY OF WEEK
159 # Here you can set if your week starts on sunday or monday.
160 # Default is 0 (Sunday), set it to 1 if your week start monday.
161
162 first_day_of_week=0
163
164
165
166 # CSV DELIMITER
167 # This option determines the character which should act as
168 # delimiter. Default is ";".
169
170 #csv_delimiter=;
171
172
173
174 # CSV DATA ENCLOSURE
175 # This option determines the character which should act as
176 # data enclosure to wrap in the data. Default is "'".
177
178 #csv_data_enclosure='
179
180
181
182 # SUPPRESS MAINTENANCE DOWNTIME
183 # This options suppresses the state coloring of hosts and services
184 # that are in a scheduled downtime. It sets their coloring to gray,
185 # so they no longer draw extra attention to themselves, making it
186 # so only actual problems are the ones that stand out.
187 # By default it is disabled.
188
189 suppress_maintenance_downtime=0
190
191
192
193 # URL TARGET FRAMES
194 # These options determine the target frames in which notes and
195 # action URLs will open. Default is main frame.
196
197 action_url_target=main
198 notes_url_target=main
199 #action_url_target=_blank
200 #notes_url_target=_blank
201
202
203
204 # READ GZIP LOGS
205 # This option enables reading of gzipped log files. As this can
206 # have a huge performance impact in big environments, this
207 # option is disabled by default.
208
209
210 read_gzip_logs=0
211
212
213
214
215 ######################################
216 #
217 #   AUTHENTICATION (ALL CGIs)
218 #
219 ######################################
220
221 # ATTRIBUTE BASED AUTHORIZATION FILE
222 # This option will include a file defining authroization based on
223 # attributes.
224
225 #authorization_config_file=/etc/icinga/cgiauth.cfg
226
227
228
229 # AUTHENTICATION USAGE
230 # This option controls whether or not the CGIs will use any
231 # authentication when displaying host and service information, as
232 # well as committing commands to Icinga for processing.
233 #
234 # Read the HTML documentation to learn how the authorization works!
235 #
236 # NOTE: It is a really *bad* idea to disable authorization, unless
237 # you plan on removing the command CGI (cmd.cgi)!  Failure to do
238 # so will leave you wide open to kiddies messing with Icinga and
239 # possibly hitting you with a denial of service attack by filling up
240 # your drive by continuously writing to your command file!
241 #
242 # Setting this value to 0 will cause the CGIs to *not* use
243 # authentication (bad idea), while any other value will make them
244 # use the authentication functions (the default).
245
246 use_authentication=1
247
248
249
250 # USE CLIENT CERTIFICATTES
251 # This option controls whether the value of the web server environment
252 # variable REMOTE_USER or SSL_CLIENT_S_DN_CN will be used. The name of
253 # the directive is a bit misleading because unless you set up the use
254 # of client certificates the value has to be set to zero (0). Setting
255 # the value to one (1) requires "SSLUserName SSL_CLIENT_S_DN_CN" and
256 # several other options in your web server config. Please consult your
257 # web server configuration documentation for details.
258
259 # Values:
260 # 0 = Use web server environment variable REMOTE_USER to get the user
261 #       logged in. Don't use client certificates (default)
262 # 1 = Use web server environment variable SSL_CLIENT_S_DN_CN to get
263 #       the user logged in. Use client certificates
264
265 use_ssl_authentication=0
266
267
268
269 # LOWERCASE USER NAME
270 # This option controls whether or not the username is converted
271 # to all lowercase letters. Can be useful if the username is stored
272 # in Active Directory (case-insensitive).
273
274 lowercase_user_name=0
275
276
277
278 # DEFAULT USER
279 # Setting this variable will define a default user name that can
280 # access pages without authentication.  This allows people within a
281 # secure domain (i.e., behind a firewall) to see the current status
282 # without authenticating.  You may want to use this to avoid basic
283 # authentication if you are not using a secure server since basic
284 # authentication transmits passwords in the clear.
285 #
286 # Important:  Do not define a default username unless you are
287 # running a secure web server and are sure that everyone who has
288 # access to the CGIs has been authenticated in some manner!  If you
289 # define this variable, anyone who has not authenticated to the web
290 # server will inherit all rights you assign to this user!
291
292 #default_user_name=guest
293
294
295
296 # SYSTEM/PROCESS INFORMATION ACCESS
297 # This option is a comma-delimited list of all usernames that
298 # have access to viewing the Icinga process information as
299 # provided by the Extended Information CGI (extinfo.cgi).  By
300 # default, *no one* has access to this unless you choose to
301 # not use authorization.  You may use an asterisk (*) to
302 # authorize any user who has authenticated to the web server.
303 # Alternatively you can specify contactgroups too, starting
304 # with Icinga 1.5.0
305
306 authorized_for_system_information=icingaadmin
307 #authorized_contactgroup_for_system_information=
308
309
310
311 # CONFIGURATION INFORMATION ACCESS
312 # This option is a comma-delimited list of all usernames that
313 # can view ALL configuration information (hosts, commands, etc).
314 # By default, users can only view configuration information
315 # for the hosts and services they are contacts for. You may use
316 # an asterisk (*) to authorize any user who has authenticated
317 # to the web server.
318 # Alternatively you can specify contactgroups too, starting
319 # with Icinga 1.5.0
320
321 authorized_for_configuration_information=icingaadmin
322 #authorized_contactgroup_for_configuration_information=
323
324
325
326 # RAW COMMANDLINE CONFIGURATION INFORMATION ACCESS
327 # This option is a comma-delimited list of all usernames that
328 # can view a command in config command expander as icinga would
329 # execute it. To resolve all MACROS it is necessary to allow
330 # read access to the web server for resource.cfg .
331 # CAUTION: $USERXX$ vars and custom vars can contain sensitive
332 # data.
333 # Alternatively you can specify contactgroups too.
334
335 authorized_for_full_command_resolution=icingaadmin
336 #authorized_contactgroup_for_full_command_resolution=
337
338
339
340 # SYSTEM/PROCESS COMMAND ACCESS
341 # This option is a comma-delimited list of all usernames that
342 # can issue shutdown and restart commands to Icinga via the
343 # command CGI (cmd.cgi).  Users in this list can also change
344 # the program mode to active or standby. By default, *no one*
345 # has access to this unless you choose to not use authorization.
346 # You may use an asterisk (*) to authorize any user who has
347 # authenticated to the web server.
348 # Alternatively you can specify contactgroups too, starting
349 # with Icinga 1.5.0
350
351 authorized_for_system_commands=icingaadmin
352 #authorized_contactgroup_for_system_commands=
353
354
355
356 # GLOBAL HOST/SERVICE VIEW ACCESS
357 # These two options are comma-delimited lists of all usernames that
358 # can view information for all hosts and services that are being
359 # monitored.  By default, users can only view information
360 # for hosts or services that they are contacts for (unless you
361 # you choose to not use authorization). You may use an asterisk (*)
362 # to authorize any user who has authenticated to the web server.
363 # Alternatively you can specify contactgroups too.
364 #
365 # NOTE: Users in authorized_for_all_hosts are also automatically
366 # authorised to view information for all services.
367
368 authorized_for_all_services=icingaadmin
369 authorized_for_all_hosts=icingaadmin
370 #authorized_contactgroup_for_all_services=
371 #authorized_contactgroup_for_all_hosts=
372
373
374
375 # GLOBAL HOST/SERVICE COMMAND ACCESS
376 # These two options are comma-delimited lists of all usernames that
377 # can issue host or service related commands via the command
378 # CGI (cmd.cgi) for all hosts and services that are being monitored.
379 # By default, users can only issue commands for hosts or services
380 # that they are contacts for (unless you you choose to not use
381 # authorization).  You may use an asterisk (*) to authorize any
382 # user who has authenticated to the web server.
383 # Alternatively you can specify contactgroups too.
384 #
385 # NOTE: Users in authorized_for_all_host_commands are also automatically
386 # authorised to issue commands for all services.
387
388 authorized_for_all_service_commands=icingaadmin
389 authorized_for_all_host_commands=icingaadmin
390 #authorized_contactgroup_for_all_service_commands=
391 #authorized_contactgroup_for_all_host_commands=
392
393
394
395 # READ-ONLY USERS
396 # A comma-delimited list of usernames that have read-only rights in
397 # the CGIs.  This will block any service or host commands normally shown
398 # on the extinfo CGI pages. It will also block comments and downtimes
399 # from being shown to read-only users.
400 # Alternatively you can specify contactgroups too, starting
401 # with Icinga 1.5.0
402
403 #authorized_for_read_only=user1,user2
404 #authorized_contactgroup_for_read_only=
405
406
407
408 # READ-ONLY FOR COMMENTS USERS
409 # A comma-delimited list of usernames that have rights to view comments in
410 # the CGIs. If user is defined as read-only and you add the same user to
411 # this options, then the user can still see comments. If user is NOT
412 # read-only then the options to delete comments in extinfo.cgi are not
413 # displayed as well.
414
415 #authorized_for_comments_read_only=user1,user2
416 #authorized_contactgroup_for_comments_read_only=
417
418
419
420 # READ-ONLY FOR DOWNTIMES USERS
421 # A comma-delimited list of usernames that have rights to view downtimes in
422 # the CGIs. If user is defined as read-only and you add the same user to
423 # this options, then the user can still see downtimes. If user is NOT
424 # read-only then the options to delete downtimes in extinfo.cgi are not
425 # displayed as well.
426
427 #authorized_for_downtimes_read_only=user1,user2
428 #authorized_contactgroup_for_downtimes_read_only=
429
430
431
432 # SHOW ALL SERVICES THE HOST IS AUTHORIZED FOR
433 # By default, a user can see all services on a host, if the user is
434 # authorized as contact for the host only. By disabling this option,
435 # the user must be an authorized contact for the service too in order
436 # to view it.
437 # Values: 0 - disabled, user must be authorized for services too
438 #         1 - enabled, user can view all services on authorized host
439
440 show_all_services_host_is_authorized_for=1
441
442
443
444 # SHOW PARTIAL HOSTGROUPS
445 # By default (meaning the directive is not present or disabled), a user
446 # only sees a hostgroup and the hosts within it if they are an authorised
447 # contact for all of the hosts of the group. The behaviour can be changed
448 # using the directive show_partial_hostgroups=1.
449 # When enabled, the hostgroups overview will show a partial listing of hosts
450 # that the user is an authorised contact for within each hostgroup.
451 # It will also add the string "(Partial Hostgroups Enabled)" to the top of
452 # the Hostgroup Overview to help prevent any confusion over whether the option
453 # is in use or not. However for privacy reasons, hostgroups that are only showing
454 # a partial listing are not specifically indicated.
455
456 # Values: 0 - disabled, user only sees full hostgroups (default)
457 #         1 - enabled, user sees partial hostgroups
458
459 show_partial_hostgroups=0
460
461
462
463 # SHOW PARTIAL SERVICEROUPS
464 # By default (meaning the directive is not present or disabled), a user
465 # only sees a servicegroup and the hosts and services within it if they are an
466 # authorised contact for all of the hosts and services of the group.
467 # The behaviour can be changed using the directive show_partial_servicegroups=1.
468 # When enabled, the serviceroups overview will show a partial listing of hosts
469 # and services that the user is an authorised contact for within each servicegroup.
470 # It will also add the string "(Partial Servicegroups Enabled)" to the top of
471 # the Servicegroup Overview to help prevent any confusion over whether the option
472 # is in use or not. However for privacy reasons, servicegroups that are only showing
473 # a partial listing are not specifically indicated.
474 #
475 # Values: 0 - disabled, user only sees full servicegroups (default)
476 #         1 - enabled, user sees partial servicegroups
477
478 show_partial_servicegroups=0
479
480
481
482
483 ######################################
484 #
485 #   STATUSMAP (statusmap.cgi)
486 #
487 ######################################
488
489 # STATUSMAP BACKGROUND IMAGE
490 # This option allows you to specify an image to be used as a background
491 # in the statusmap CGI if you use the user-supplied coordinates layout method.
492 # The background image is not be available in any other layout methods. It is
493 # assumed that the image resides in the HTML images path (i.e. 
494 # /usr/local/icinga/share/images). This path is automatically determined by
495 # appending "/images" to the path specified by the physical_html_path directive.
496 #
497 # NOTE: The image file can be in GIF, JPEG, PNG, or GD2 format. However, GD2
498 # format (preferably in uncompressed format) is recommended, as it will reduce
499 # the CPU load when the CGI generates the map image.
500
501 #statusmap_background_image=smbackground.gd2
502
503
504
505 # STATUSMAP TRANSPARENCY INDEX COLOR
506 # These options set the r,g,b values of the background color used the statusmap CGI,
507 # so normal browsers that can't show real png transparency set the desired color as
508 # a background color instead (to make it look pretty).
509 # Defaults to white: (R,G,B) = (255,255,255).
510
511 #color_transparency_index_r=255
512 #color_transparency_index_g=255
513 #color_transparency_index_b=255
514
515
516
517 # DEFAULT STATUSMAP LAYOUT METHOD
518 # This option allows you to specify the default layout method
519 # the statusmap CGI should use for drawing hosts.  If you do
520 # not use this option, the default is to use user-defined
521 # coordinates.  Valid options are as follows:
522 #       0 = User-defined coordinates
523 #       1 = Depth layers
524 #       2 = Collapsed tree
525 #       3 = Balanced tree
526 #       4 = Circular
527 #       5 = Circular (Marked Up)
528 #       6 = Baloon (Marked Up)
529
530 default_statusmap_layout=5
531
532
533
534
535 ######################################
536 #
537 #   STATUS (status.cgi)
538 #
539 ######################################
540
541 # SOUND OPTIONS
542 # These options allow you to specify an optional audio file
543 # that should be played in your browser window when there are
544 # problems on the network.  The audio files are used only in
545 # the status CGI.  Only the sound for the most critical problem
546 # will be played.  Order of importance (higher to lower) is as
547 # follows: unreachable hosts, down hosts, critical services,
548 # warning services, and unknown services. If there are no
549 # visible problems, the sound file optionally specified by
550 # 'normal_sound' variable will be played.
551 #
552 #
553 # <varname>=<sound_file>
554 #
555 # Note: All audio files must be placed in the /media subdirectory
556 # under the HTML path (i.e. /usr/local/icinga/share/media/).
557
558 #host_unreachable_sound=hostdown.wav
559 #host_down_sound=hostdown.wav
560 #service_critical_sound=critical.wav
561 #service_warning_sound=warning.wav
562 #service_unknown_sound=warning.wav
563 #normal_sound=noproblem.wav
564
565
566
567 # SHOW LONG PLUGIN OUTPUT IN STATUS OPTION
568 # This option allows you to specify the length of status information
569 # in output of status.cgi. If you set the value to 1 it shows the
570 # full plugin output instead of the first line only.
571 # Default value is 0.
572
573 status_show_long_plugin_output=0
574
575
576
577 # DISPLAY STATUS TOTAL
578 # This option allows you to specify if the
579 # Host Status Totals and Service Status Totals
580 # should be displayed.
581 # Default value is 0.
582
583 display_status_totals=0
584
585
586
587 # HIGHLIGHT TABLE ROWS
588 # This option allows you to define if table rows in status.cgi
589 # will be highlighted or not.
590 # Values: 0 = disables row highlighting
591 #         1 = enables row highlighting
592
593 highlight_table_rows=1
594
595
596
597 # SERVICE STATES TO ANNOTATE WITH CURRENT NOTIFICATION NO.
598 # Set this to an OR of the service state identifiers for
599 # which status.cgi should not only report "Attempts" (e.g.,
600 # "3/3" for a HARD non-OK state with max_check_attempts=3)
601 # but also the current notification number ("(#0)" if no
602 # problem notification has been sent yet, etc.). This is
603 # helpful to identify services which switched between
604 # different non-OK states a lot, or services which have a
605 # first_notification_delay set and are "not yet officially"
606 # considered in trouble.
607 # Relevant values from include/statusdata.h (look them up
608 # *there* if you want to be *really* sure):
609 #       #define SERVICE_PENDING         1
610 #       #define SERVICE_OK              2
611 #       #define SERVICE_WARNING         4
612 #       #define SERVICE_UNKNOWN         8
613 #       #define SERVICE_CRITICAL        16
614 # You'll likely want to use add_notif_num_hard=0 (default)
615 # or add_notif_num_hard=28 (warn+crit+unknown). There's an
616 # add_notif_num_soft affecting services in a SOFT state
617 # for sake of completeness, too.
618
619 #add_notif_num_hard=28
620 #add_notif_num_soft=0
621
622
623
624
625 ######################################
626 #
627 #   SEND COMMANDS (cmd.cgi)
628 #
629 ######################################
630
631 # Logging
632
633 # USE LOGGING
634 # If you want to log information from cgi's (e.g. all submitted commands)
635 # then set this option to 1, default is 0 (off).
636 # WARNING:
637 # This log is highly experimental and changes may occure without notice. Use at your own risk!!
638
639 use_logging=0
640
641
642
643 # CGI LOG FILE
644 # This is the cgi log file for information about what users are doing.
645 # At the moment only submitted commands from cmd.cgi will be logged.
646
647 cgi_log_file=/usr/share/icinga/htdocs/log/icinga-cgi.log
648
649
650
651 # CGI LOG ROTATION METHOD
652 # This is the log rotation method that should be used to rotate
653 # the cgi log file. Values are as follows..
654 #       n       = None - don't rotate the log
655 #       h       = Hourly rotation (top of the hour)
656 #       d       = Daily rotation (midnight every day)
657 #       w       = Weekly rotation (midnight on Saturday evening)
658 #       m       = Monthly rotation (midnight last day of month)
659
660 cgi_log_rotation_method=d
661
662
663
664 # CGI LOG ARCHIVE PATH
665 # This is the directory where archived (rotated) cgi log files should be
666 # placed (assuming you've chosen to do log rotation).
667
668 cgi_log_archive_path=/usr/share/icinga/htdocs/log
669
670
671
672 # FORCE COMMENT
673 # This option forces the users of to comment every action they perform.
674 # The comments get logged into cgi log file. This option only has effect
675 # if logging is switched on. See option "use_logging"
676 # Default  is 0 (off), to activate it set it to 1 (on).
677
678 enforce_comments_on_actions=0
679
680
681
682 # SEND ACK NOTIFICATIONS
683 # This options determines whether the initial state of the
684 # checkbox "Send Notifications" when acknowledging a problem.
685 # A value of 1 ticks the checkbox and 0 does not.  The default
686 # is 1, which will send notifications on acknowledged problems.
687
688 send_ack_notifications=1
689
690
691
692 # PERSISTENT ACKNOWLEDGEMENT COMMENTS
693 # This options determines whether the initial state of the
694 # checkbox "Persistent Comment:" for service and host problem
695 # acknowledgements is checked or unchecked
696
697 persistent_ack_comments=0
698
699
700
701 # LOCK AUTHOR NAMES OPTION
702 # This option allows you to restrict users from changing the author name
703 # when submitting comments, acknowledgements, and scheduled downtime from
704 # the web interface. If this option is enabled, users will be unable to
705 # change the author name associated with the command request.
706 #
707 # Values: 0 = Allow users to change author names when submitting commands
708 #         1 = Prevent users from changing author names (default)
709
710 lock_author_names=1
711
712
713
714 # DEFAULT DOWNTIME DURATION
715 # This option defines the default duration (in seconds) of fixed and
716 # flexible downtimes. Default is 7200 seconds (2 hours).
717
718 default_downtime_duration=7200
719
720
721
722 # SET EXPIRE ACK BY DEFAULT
723 # This option either sets or clears the checkbox for "Use Expire Time"
724 # in the acknowledgement menu.  Valid values are 0 (DO NOT tick the
725 # checkbox by default) or 1 (tick the checkbox by default).  The default
726 # is 0 (leave the checkbox blank).
727
728 set_expire_ack_by_default=0
729
730
731
732 # DEFAULT EXPIRING ACKNOWLEDGEMENT DURATION
733 # This option defines the default duration (in seconds) of a expiring
734 # acknowledgement. Default is 86400 seconds (1 day).
735
736 default_expiring_acknowledgement_duration=86400
737
738
739
740 # DEFAULT EXPIRING DISABLED NOTIFICATIONS DURATION
741 # This option defines the default duration (in seconds) of a expiring
742 # disabled notifications. Default is 86400 seconds (1 day).
743
744 default_expiring_disabled_notifications_duration=86400
745
746
747
748 # DISABLE CMD CGI CSRF PROTECTION
749 # This option disables the protection against CSRF attacks
750 # (Cross-Site Request Forgery). Use this option only if you are
751 # using external programs (like Nagstamon) which access
752 # cmd.cgi directly to submit commands. By default the submitted
753 # command (via external program) will be rejected.
754 # The default is 0 (protection is on).
755
756 disable_cmd_cgi_csrf_protection=0
757
758
759
760
761 ######################################
762 #
763 #   TACTICAL OVERVIEW (tac.cgi)
764 #
765 ######################################
766
767 # SHOW ONLY HARD STATES IN TAC OPTION
768 # This options allows you to specify if the tactical overview
769 # should only show hard states on hosts and services.
770 # By default disabled, all states will be shown.
771
772 tac_show_only_hard_state=0
773
774
775
776 # SHOW PENDING IN TAC HEADER
777 # This options enables the display of pending counts in
778 # the tac header. If your display is less than 1024x768
779 # and this is enabled, the tactical information may not
780 # fit well in the top frame.
781 # By default it is enabled.
782
783 show_tac_header_pending=1
784
785
786
787
788 ######################################
789 #
790 #   EXTENDED INFO (extinfo.cgi)
791 #
792 ######################################
793
794 # EXCLUDE CUSTOMVAR NAMES
795 # This Option allows you to specify a comma seperated list of
796 # custom variable names which are automatically excluded when
797 # a variable name would contain that name.
798 # NOTE: For security reasons, you should at least exclude all
799 # sensitive information like passwords, snmp communities, etc
800 # Use * to exclude all custom variable names.
801
802 exclude_customvar_name=PASSWORD,COMMUNITY
803
804
805
806 # EXCLUDE CUSTOMVAR VALUES
807 # This Option allows you to specify a comma seperated list of
808 # custom variable values which are automatically excluded when
809 # a variable value would contain that value.
810 # NOTE: For security reasons, you should at least exclude all
811 # sensitive information like passwords, snmp communities, etc
812 # Use * to exclude all custom variable values.
813
814 exclude_customvar_value=secret
815
816
817
818 # SHOW CHILD HOSTS IN EXTINFO OPTION
819 # This Option allows you to specify if the extended host information
820 # cgi will show child hosts for the selected host.
821 #       0 = disabled
822 #       1 = only show immediate child hosts
823 #       2 = show immediate and all child hosts
824 # NOTE: Option 2 could be a real performance killer in
825 # large installations, so use with care.
826 # By default disabled, as this could be a performance killer.
827
828 extinfo_show_child_hosts=0
829
830
831
832 # TAB-FRIENDLY <TITLE>S
833 # Activating this option changes the <title> of status.cgi
834 # and extinfo.cgi when they refer to a single host, service,
835 # or group. They will then read:
836 #       [Host]
837 #       {HostGroup}
838 #       ServiceDesc @ Host
839 #       (ServiceGroup)
840 # These are easier to read and find if you use (many) tabs
841 # in your browser.
842 # Default is enabled. 0=disabled, 1=enabled
843
844 tab_friendly_titles=1
845
846
847
848
849 ######################################
850 #
851 #   SHOWLOG (showlog.cgi)
852 #
853 ######################################
854
855 # SHOW INITIAL STATES IN SHOWLOG OPTION
856 # This options allows you to specify if initial states
857 # of hosts and services should be shown in showlog.cgi
858 # Note: This Option only works if the option
859 # "log_initial_states" in icinga.cfg is set to 1.
860 # By default it's disabled. Default is 0.
861
862 #showlog_initial_states=0
863
864
865
866 # SHOW CURRENT STATES IN SHOWLOG OPTION
867 # This options allows you to specify if current states
868 # of hosts and services should be shown in showlog.cgi
869 # Note: This Option only works if the option
870 # "log_current_states" in icinga.cfg is set to 1.
871 # By default it's disabled. Default is 0.
872
873 #showlog_current_states=0
874
875
876
877
878 ######################################
879 #
880 #   SPLUNK INTEGRATION (VARIOUS CGIs)
881 #
882 ######################################
883
884 # SPLUNK INTEGRATION OPTIONS
885 # These options allow you to enable integration with Splunk
886 # in the web interface.  If enabled, you'll be presented with
887 # "Splunk It" links in various places in the CGIs (log file,
888 # alert history, host/service detail, etc).  Useful if you're
889 # trying to research why a particular problem occurred.
890 # For more information on Splunk, visit http://www.splunk.com/
891
892 # This option determines whether the Splunk integration is enabled
893 # Values: 0 = disable Splunk integration
894 #         1 = enable Splunk integration
895
896 #enable_splunk_integration=1
897
898
899
900 # This option should be the URL used to access your instance of Splunk
901
902 #splunk_url=http://127.0.0.1:8000/
903
904
905
906
907 ######################################
908 #
909 #    STANDALONE (ICINGA 2) OPTIONS
910 #    requires standalone_installation=1
911 #
912 ######################################
913
914 # OBJECT CACHE FILE
915 # This option determines where object definitions are cached when
916 # Icinga starts/restarts. The CGIs read object definitions from
917 # this cache file (rather than looking at the object config files
918 # directly) in order to prevent inconsistencies that can occur
919 # when the config files are modified after Icinga starts.
920 # Icinga 2 provides this file through its compat component, if enabled.
921
922 object_cache_file=/var/cache/icinga/objects.cache
923
924
925
926 # STATUS FILE
927 # This is where the current status of all monitored services and
928 # hosts is stored.  Its contents are read and processed by the CGIs.
929 # The contents of the status file are deleted every time Icinga
930 # restarts.
931 # Icinga 2 provides this file through its compat component, if enabled.
932
933 status_file=/var/cache/icinga/status.dat
934
935
936
937 # RESOURCE FILE
938 # This is an optional resource file that contains $USERx$ macro
939 # definitions. Multiple resource files can be specified by using
940 # multiple resource_file definitions.  The CGIs will not attempt to
941 # read the contents of resource files, so information that is
942 # considered to be sensitive (usernames, passwords, etc) can be
943 # defined as macros in this file and restrictive permissions (600)
944 # can be placed on this file.
945
946 resource_file=/etc/icinga/resource.cfg
947
948
949
950 # EXTERNAL COMMAND FILE
951 # This is the file that Icinga checks for external command requests.
952 # It is also where the command CGI will write commands that are submitted
953 # by users, so it must be writeable by the user that the web server
954 # is running as (usually 'nobody').  Permissions should be set at the
955 # directory level instead of on the file, as the file is deleted every
956 # time its contents are processed.
957 # Icinga 2 provides this file through its compat component, if enabled.
958
959 command_file=/var/lib/icinga/rw/icinga.cmd
960
961
962
963 # EXTERNAL COMMAND OPTION
964 # This option allows you to specify whether or not Icinga should check
965 # for external commands (in the command file defined below).  By default
966 # Icinga will *not* check for external commands, just to be on the
967 # cautious side.  If you want to be able to use the CGI command interface
968 # you will have to enable this.
969 # Values: 0 = disable commands, 1 = enable commands
970
971 check_external_commands=1
972
973
974
975 # INTERVAL LENGTH
976 # This is the seconds per unit interval as used in the
977 # host/contact/service configuration files.  Setting this to 60 means
978 # that each interval is one minute long (60 seconds).  Other settings
979 # have not been tested much, so your mileage is likely to vary...
980
981 interval_length=60
982
983
984
985 # STATUS FILE UPDATE INTERVAL
986 # This option determines the frequency (in seconds) that
987 # Icinga will periodically dump program, host, and
988 # service status data.
989 # Increase the value, if you don't require it that often.
990
991 #status_update_interval=30
992 status_update_interval=10
993
994
995
996 # LOG FILE
997 # This is the main log file where service and host events are logged
998 # for historical purposes.  This should be the first option specified
999 # in the config file!!!
1000 # Icinga 2 provides this file through its compat component, if enabled.
1001
1002 log_file=/var/log/icinga/icinga.log
1003
1004
1005
1006 # LOG ROTATION METHOD
1007 # This is the log rotation method that Icinga should use to rotate
1008 # the main log file. Values are as follows..
1009 #       n       = None - don't rotate the log
1010 #       h       = Hourly rotation (top of the hour)
1011 #       d       = Daily rotation (midnight every day)
1012 #       w       = Weekly rotation (midnight on Saturday evening)
1013 #       m       = Monthly rotation (midnight last day of month)
1014
1015 log_rotation_method=d
1016
1017
1018
1019 # LOG ARCHIVE PATH
1020 # This is the directory where archived (rotated) log files should be
1021 # placed (assuming you've chosen to do log rotation).
1022 # Icinga 2 provides this file through its compat component, if enabled.
1023
1024 log_archive_path=/var/log/icinga/archives
1025
1026
1027
1028 # DATE FORMAT OPTION
1029 # This option determines how short dates are displayed. Valid options
1030 # include:
1031 #       us              (MM-DD-YYYY HH:MM:SS)
1032 #       euro            (DD-MM-YYYY HH:MM:SS)
1033 #       iso8601         (YYYY-MM-DD HH:MM:SS)
1034 #       strict-iso8601  (YYYY-MM-DDTHH:MM:SS)
1035 #
1036
1037 date_format=us
1038
1039
1040
1041 #   EOF