/thruk.conf

http://github.com/sni/Thruk · Config · 890 lines · 742 code · 148 blank · 0 comment · 0 complexity · 0aa70fa37c617c9965bc86a261e45e0d MD5 · raw file

  1. # Thruk Settings
  2. ######################################
  3. #
  4. # !!! DONT CHANGE THIS FILE !!!
  5. #
  6. # If you want to change configuration settings put
  7. # the items you want to override in your thruk_local.conf.
  8. # Configuration is merged from both files then.
  9. # This file will be replaced on every update.
  10. #
  11. ######################################
  12. ######################################
  13. # set the url prefix for all urls
  14. url_prefix = /
  15. ######################################
  16. # Changes the path to your logo images. Default is
  17. # $url_prefix+'thruk/themes/'+$current_theme+'/images/logos/' and
  18. # therefor relative to the current selected theme. You could set a fixed
  19. # path here.
  20. # Like usual, paths starting with a / will be absolute from your
  21. # webserver root directory. Paths starting without a / will be relative
  22. # to the cgi directory.
  23. #logo_path_prefix = /icons/
  24. # location of your logos in your filesystem. This directory should be
  25. # mapped to your 'logo_path_prefix' directory where 'logo_path_prefix' is
  26. # the path relative to your webserver root directory and 'physical_logo_path' is
  27. # the corresponding filesystem path.
  28. #physical_logo_path = /usr/local/share/icons
  29. ######################################
  30. # change path to your host / service action icons. You may use relative paths
  31. # to specify completely different location.
  32. # you also may want to use 'action_pnp.png' when using pnp.
  33. # icon can be overriden by a custom variable '_ACTION_ICON'.
  34. #host_action_icon = action.gif
  35. #service_action_icon = action.gif
  36. ######################################
  37. # set the title prefix for all urls
  38. # this piece of text will be prepended to
  39. # all page titles.
  40. #title_prefix = Prod
  41. ######################################
  42. # uses bookmark names as page titles where possible
  43. # works best without frames
  44. # can be overrided by adding the title
  45. # parameter on most pages
  46. use_bookmark_titles = 0
  47. ######################################
  48. # uses more descriptive page titles.
  49. # bookmark titles take precedence and
  50. # can be overriden by adding the title
  51. # parameter on most pages
  52. use_dynamic_titles = 1
  53. ######################################
  54. # use this timezone instead of the system timezone
  55. #use_timezone = CET
  56. ######################################
  57. # determines if host contacts are allowed for services
  58. # on this host or not
  59. use_strict_host_authorization = 0
  60. ######################################
  61. # convert authenticated username to lowercase
  62. #make_auth_user_lowercase = 0
  63. # convert authenticated username to uppercase
  64. #make_auth_user_uppercase = 0
  65. # convert authenticated username by regular expression
  66. #make_auth_replace_regex = s/^(.*?)@.*/$1/gmx
  67. # Allow specific hosts to bypass the csrf protection which
  68. # requires a generated token to submit certain post requests,
  69. # for example sending commands. Wildcards are allowed.
  70. csrf_allowed_hosts=127.0.0.1
  71. csrf_allowed_hosts=::1
  72. # Disable the possibility for a user to change his password.
  73. # Only works with htpasswd passwords. To make this work
  74. # you have to set a `htpasswd` entry in the Config Tool section.
  75. disable_user_password_change = 0
  76. # Sets the minimum lenght a password must have for users changing their passwords.
  77. # Admins still can change the password any way they want in the config tool. This
  78. # just affects the user password reset.
  79. user_password_min_length = 5
  80. # maximum memory usage (in MB) after which a
  81. # thruk process will exit after the request
  82. # (fcgid only)
  83. max_process_memory = 1000
  84. ######################################
  85. # location of your cgi.cfg
  86. cgi.cfg = cgi.cfg
  87. ######################################
  88. # use frames, can be useful for addons
  89. use_frames = 1
  90. ######################################
  91. # use histograms, shows histogram links
  92. use_feature_histogram = 0
  93. ######################################
  94. # use trends, shows trend links
  95. use_feature_trends = 1
  96. ######################################
  97. # use recurring downtime, shows recurring downtime links
  98. use_feature_recurring_downtime = 1
  99. ######################################
  100. # use service's description instead of display name
  101. use_service_description = 0
  102. ######################################
  103. # normally passive checks would be marked as disabled.
  104. # with this option, disabled checks will only be displayed as disabled
  105. # if their last result was active
  106. strict_passive_mode = 1
  107. ######################################
  108. # normally passive checks whould be displayed with a passive icon
  109. # if their last result is passive.
  110. # with this option, passive icon will be hidden in status details.
  111. hide_passive_icon = 0
  112. ######################################
  113. # delay the page delivery until the backends uptime is
  114. # at least this amount of seconds. Displaying pages soon
  115. # after backend restarts displays wrong results and all
  116. # services are pending. Enable this if you experience problems
  117. # with pending services after reloading your backend
  118. # ex.: setting this to 10 would start serving pages 10 seconds
  119. # after the backend reload
  120. delay_pages_after_backend_reload = 0
  121. ######################################
  122. # ssl_verify_hostnames can be set to enable / disable hostname verification
  123. # for https connections. For example for the cookie login or the http backend.
  124. ssl_verify_hostnames=1
  125. ######################################
  126. # start page
  127. # add a custom start page which will be displayed instead of the useless page
  128. # with version information.
  129. #start_page = /thruk/main.html
  130. ######################################
  131. # target of the link when clicking on main logos
  132. #home_link = http://www.thruk.org
  133. ######################################
  134. # target of the docs link, you may add your monitoring
  135. # documenation here
  136. # use a blank value to remove the docs link
  137. #documentation_link = /thruk/docs/
  138. ######################################
  139. # customized link for all problems
  140. #all_problems_link = /thruk/cgi-bin/status.cgi?style=combined&hst_s0_hoststatustypes=4&hst_s0_servicestatustypes=31&hst_s0_hostprops=10&hst_s0_serviceprops=0&svc_s0_hoststatustypes=3&svc_s0_servicestatustypes=28&svc_s0_hostprops=10&svc_s0_serviceprops=10&svc_s0_hostprop=2&svc_s0_hostprop=8&title=All+Unhandled+Problems
  141. ######################################
  142. # allowed framed links
  143. # which links in addition to the documentation_link
  144. # can be framed by linking to /thruk/frame.html?link=...
  145. #allowed_frame_links = http://my-company/
  146. ######################################
  147. # use new search
  148. use_new_search = 1
  149. # Show the new split command box on the host / service details page
  150. use_new_command_box = 1
  151. ######################################
  152. # use ajax search
  153. use_ajax_search = 1 # enable ajax search
  154. ajax_search_hosts = 1 # suggest hosts while typing
  155. ajax_search_hostgroups = 1 # suggest hostgroups while typing
  156. ajax_search_services = 1 # suggest services while typing (can be slow which large amount of services)
  157. ajax_search_servicegroups = 1 # suggest servicegroups while typing
  158. ajax_search_timeperiods = 1 # suggest timeperiods while typing
  159. ######################################
  160. # default service filter
  161. #default_service_filter = service_description_filter
  162. ######################################
  163. # themes
  164. default_theme = Thruk
  165. ######################################
  166. # path used for cookies. Do not change unless you have weird url rewrites which
  167. # breaks setting cookies.
  168. #cookie_path = /
  169. ######################################
  170. # temporary directory, used for template cache...
  171. #tmp_path = /tmp
  172. ######################################
  173. # var directory, used to store user settings
  174. #var_path = ./var
  175. ######################################
  176. # mode used when creating or saving files
  177. #mode_file = 0660
  178. #mode_dir = 0770
  179. ######################################
  180. # files owners for new / changed files
  181. #thruk_user=thruk
  182. #thruk_group=thruk
  183. ######################################
  184. # server side includes
  185. #ssi_path = ssi/
  186. ######################################
  187. # path to your plugins
  188. # see documentation for further steps if
  189. # you change the plugin path
  190. #plugin_path = plugins/
  191. ######################################
  192. # path to your themes
  193. # see documentation for further steps if
  194. # you change the themes path
  195. #themes_path = themes/
  196. ######################################
  197. # custom templates
  198. #user_template_path = ./my_templates
  199. ######################################
  200. # log4perl config
  201. #log4perl_conf = ./log4perl.conf
  202. ######################################
  203. # use paged data instead of all data in one huge page
  204. # the * sets the default selected paging size
  205. use_pager = 1
  206. paging_steps = *100, 500, 1000, 5000, all
  207. # paging for groups pages has different size
  208. group_paging_overview = *3, 10, 100, all
  209. group_paging_summary = *10, 50, 100, all
  210. group_paging_grid = *5, 10, 50, all
  211. ######################################
  212. # status page
  213. # when a plugin returns more than one line of output, the
  214. # output can be displayed directly in the status table, as
  215. # popup or not at all.
  216. # choose between popup, inline and off
  217. show_long_plugin_output = popup
  218. # color complete status line with status colour or just the status
  219. # itself.
  220. status_color_background = 0
  221. # on which event should the comments / downtime or
  222. # longpluginout popup show up
  223. # usefull values are onclick or onmouseover
  224. info_popup_event_type = onclick
  225. # options for the popup window used for
  226. # long pluginoutput, downtimes and comments
  227. # see http://www.bosrup.com/web/overlib/?Command_Reference
  228. # for what options are available
  229. info_popup_options = STICKY,CLOSECLICK,HAUTO,MOUSEOFF
  230. # show number of notifications on the status details page
  231. show_notification_number = 1
  232. # show links to config tool for each host / service
  233. # you need to have the config tool plugin enabled
  234. # and you need sufficient permissions for the link to appear
  235. show_config_edit_buttons = 0
  236. # display the backend name in the status details table
  237. show_backends_in_table=0
  238. # show additional logout button next to the top right preferences button.
  239. # (works only together with cookie authentication)
  240. #show_logout_button=0
  241. # Display the full command line for host / service checks.
  242. # Be warned: the command line could contain passwords
  243. # and other confidential data.
  244. # In order to replace the user macros for commands, you have to set
  245. # the 'resource_file' in your peer config or a general resource_file
  246. # option.
  247. # See the next option.
  248. # 0 = off, don't show the command line at all
  249. # 1 = show them for all with the role: authorized_for_configuration_information
  250. # 2 = show them for everyone
  251. show_full_commandline = 1
  252. # usually the source of your expanded check_command should
  253. # be the check_command attribute of your host / service. But under
  254. # certain circumstances you might want to use display expanded
  255. # commands from a custom variable. In this case, set
  256. # 'show_full_commandline_source' to '_CUST_VAR_NAME'.
  257. show_full_commandline_source = check_command
  258. # Set a general resource file.
  259. # Be warned: if any macros contain sensitive data like passwords, setting
  260. # this option could expose that data to unauthorized user. It is strongly
  261. # recommended that this option is only used if no passwords are used in
  262. # this file or in combination with the 'expand_user_macros' option which
  263. # will limit which macros are exposed to the user.
  264. # Instead of using a general resource_file, you could define one file
  265. # per peer in your peer config.
  266. #
  267. #resource_file = path_to_your/resource.cfg
  268. # enable a performance bar inside the status/host list which
  269. # create a graph from the performance data of the plugin output. Available
  270. # options are 'match', 'first', 'all', 'worst' and 'off'.
  271. perf_bar_mode = match
  272. # show pnp popup if performance data are available and
  273. # pnp is used as graph engine.
  274. perf_bar_pnp_popup = 1
  275. # show inline pnp graph if available
  276. # if a service or host has a pnp4nagios action url set
  277. # thruk will show a inline graph on the extinfo page
  278. shown_inline_pnp = 1
  279. # graph_word is a regexp used to display any graph on the details page.
  280. # if a service or host has a graph url in action url (or notes url) set
  281. # it can be displayed by specifying a regular expression that always appears
  282. # in this url.
  283. # examples:
  284. # for pnp4nagios: /pnp4nagios/
  285. # for graphite: /render/
  286. #graph_word =
  287. # graph_replace is another regular expression to rewrite special characters
  288. # in the url. For example graphite requires all non-word characters replaced
  289. # by underscores while graphios needs spaces removed too. You can use this
  290. # setting multiple times.
  291. # examples:
  292. # for pnp4nagios:
  293. # for graphite: s/[^\w\-]/_/gmx
  294. # for graphios: s/\s//gmx
  295. #graph_replace = s/[^\w\-]/_/gmx
  296. # show custom vars in host / service ext info.
  297. # list variable names to display in the host
  298. # and service extinfo details page.
  299. # can be specified more than once to define multiple
  300. # variables. You may use html in your variables.
  301. # Use * as wildcard, ex.: _VAR*
  302. # To show a host custom variable for services too, prepend
  303. # _HOST, ex.: _HOSTVAR1. To show all host variables, use
  304. # wildcards like _HOST*
  305. #show_custom_vars = _VAR1
  306. #show_custom_vars = _VAR2
  307. # Expand user macros ($USERx$) for host / service
  308. # commands and custom variables.
  309. # Can be specified more than once to define multiple
  310. # user macros to expand.
  311. # Be warned: some user macros can contain passwords
  312. # and expanding them could expose them to unauthorized
  313. # users.
  314. # Use * as wildcard, ex.: USER*
  315. #
  316. #Defaults to 'ALL' which means all user macros are expanded, because
  317. #its limited to admin users anyway.
  318. #expand_user_macros = USER1
  319. #expand_user_macros = USER10-20
  320. #expand_user_macros = PLUGIN*
  321. #expand_user_macros = ALL # expands all user macros
  322. #expand_user_macros = NONE # do not expand user macros
  323. # show if a host / service has modified attributes.
  324. show_modified_attributes = 1
  325. # Show check attempts for hosts too. The default is to show
  326. # them on the problems page only. Use this value to force a value.
  327. #show_host_attempts = 1
  328. ######################################
  329. # Command Settings
  330. # Set this if a contact should be allowed to send commands unless
  331. # defined for the contact itself. This is the default value for all
  332. # contacts unless the user has a can_submit_commands setting in your
  333. # monitoring configuration.
  334. can_submit_commands = 1
  335. # disable some commands completely
  336. # you can use ranges here, ex.: 5,10-47,99
  337. #command_disabled = 14 # shutdown
  338. #command_disabled = 35 # start executing service checks
  339. #command_disabled = 36 # stop executing service checks
  340. #command_disabled = 88 # start executing host checks
  341. #command_disabled = 89 # stop executing host checks
  342. # default states for commands option checkboxes
  343. <cmd_defaults>
  344. ahas = 0 # For Hosts Too
  345. broadcast_notification = 0 # Broadcast
  346. force_check = 0 # Forced Check
  347. force_notification = 0 # Forced Notification
  348. send_notification = 1 # Send Notification
  349. sticky_ack = 1 # Sticky Acknowledgement
  350. persistent_comments = 1 # Persistent Comments
  351. persistent_ack = 0 # Persistent Acknowledgement Comments
  352. ptc = 0 # For Child Hosts Too
  353. use_expire = 0 # Use expire for acknowledgements (for cores which support this)
  354. </cmd_defaults>
  355. # configure which commands should be available as quick status commands
  356. <cmd_quick_status>
  357. default = "reschedule next check" # text has to match the select text
  358. reschedule = 1 # Reschedule next check
  359. downtime = 1 # Add/remove downtimes
  360. comment = 1 # Add/remove comments
  361. acknowledgement = 1 # Add/remove acknowledgements
  362. active_checks = 1 # Enable/disable active checks
  363. notifications = 1 # Enable/disable notifications
  364. submit_result = 1 # Submit passive check result
  365. reset_attributes = 1 # Reset modified attributes
  366. </cmd_quick_status>
  367. # force acknowledgments to be sticky
  368. force_sticky_ack = 0
  369. # force notification to be sent on acknowledgement
  370. force_send_notification = 0
  371. # force comments on acknowledgements to be persistent
  372. force_persistent_ack = 0
  373. # for regular comments to be persistent
  374. force_persistent_comments = 0
  375. # default duration of new downtimes
  376. downtime_duration = 7200
  377. # default duration of acknowledgements with expire date
  378. expire_ack_duration = 86400
  379. # command alias can be used for agent based checks, where the active agent
  380. # check should be rescheduled instead of the passive check.
  381. # Have a look at the documentation for a detailed description.
  382. #command_reschedule_alias = servicename_or_commandname_pattern;agent_service_name
  383. ######################################
  384. # Time Format Settings
  385. datetime_format = %Y-%m-%d %H:%M:%S
  386. datetime_format_today = %H:%M:%S
  387. datetime_format_long = %a %b %e %H:%M:%S %Z %Y
  388. datetime_format_log = %B %d, %Y %H
  389. datetime_format_trends = %a %b %e %H:%M:%S %Y
  390. #####################################
  391. # This one activates all problem/impact and criticity
  392. # features. Currently it will only work with shinken
  393. # backends. Dont enable it unless all your backends are shinken.
  394. # If not set, it will be automatically enabled when using only
  395. # shinken backends.
  396. #enable_shinken_features = 0
  397. # configure names for the priorities of your hosts / services
  398. # this is a shinken specific feature only (criticity)
  399. #<priorities>
  400. # 5 = Business Critical
  401. # 4 = Top Production
  402. # 3 = Production
  403. # 2 = Standard
  404. # 1 = Testing
  405. # 0 = Development
  406. #</priorities>
  407. #####################################
  408. # This one activates all icinga specific features
  409. # When not set, Thruk will try to autodetect the core,
  410. # but this currently only works within OMD.
  411. #enable_icinga_features = 0
  412. #####################################
  413. # Apache Status
  414. # You can integrate the output of apache status into Thruk.
  415. # The following list of apache status pages will be accessible
  416. # from the performance info page.
  417. <apache_status>
  418. # Site http://127.0.0.1:5000/server-status
  419. # System http://127.0.0.1/server-status
  420. # Other http://127.0.0.1/server-status
  421. </apache_status>
  422. #####################################
  423. # cron settings
  424. # Specifiy a file which is then completly under the control of Thruk.
  425. # It will be used to store cronjobs, ex. for reports. The file has to
  426. # be writable by Thruk.
  427. cron_file = /tmp/thruk_cron.tmp
  428. # The pre edit cmd can be used to do run a command just before thruk
  429. # will edit the crontab.
  430. cron_pre_edit_cmd = /usr/bin/crontab -l > /tmp/thruk_cron.tmp
  431. # The post edit cmd is necessary for OMD where you need to reload the
  432. # crontab after editing.
  433. cron_post_edit_cmd = /usr/bin/crontab /tmp/thruk_cron.tmp && rm -f /tmp/thruk_cron.tmp
  434. #####################################
  435. # path setting
  436. # Path to your thruk executable. Will be used in cronjobs.
  437. #thruk_bin = /usr/bin/thruk
  438. # Path to your thruk init script. Will be used to restart thruk.
  439. #thruk_init = /etc/init.d/thruk
  440. # Set first day of week. Used in reports.
  441. # Sunday: 0
  442. # Monday: 1
  443. #first_day_of_week = 1
  444. # Large reports will use temp files to avoid extreme memory usage.
  445. # With 'report_use_temp_files' you may set the report duration in days
  446. # which will trigger the use of temp files. Default is 14days, so
  447. # for example the 'last31days' report will use temp files, the 'thisweek'
  448. # not. Can be disabled by setting to 0.
  449. # report_use_temp_files = 14
  450. # Don't create reports with more hosts / services than this number.
  451. # The purpose is to don't wrack the server due to extended memory
  452. # usage. Increase this number if you hit that limit and have plenty
  453. # of memory left.
  454. # report_max_objects = 1000
  455. # Include messages with class = 2 (program messages) in reports.
  456. # Setting this to 0 allows the MySQL backend to use indexes efficiently
  457. # report_include_class2 = 1
  458. # Should thruk update the logcache databases before running reports?
  459. # Setting this to 0 reduces the time taken to run reports but the most
  460. # recent data is not necessarily available. If you use this option
  461. # you should probably create a cron to run "thruk -a logcacheupdate"
  462. # report_update_logcache = 1
  463. #####################################
  464. # Waiting is a livestatus feature. When enabled, Thruk will wait
  465. # after rescheduling hosts/services checks until the
  466. # check has been really executed up to a maximum of 20 seconds.
  467. use_wait_feature = 1
  468. # Amount of seconds to wait until a rescheduled check finishes. Thruk
  469. # will wait this amount and display the result immediately.
  470. wait_timeout = 10
  471. #####################################
  472. # set initial menu state.
  473. # closed => 0
  474. # open => 1
  475. <initial_menu_state>
  476. General = 1
  477. Current_Status = 1
  478. Reports = 1
  479. System = 1
  480. Bookmarks = 1
  481. </initial_menu_state>
  482. #####################################
  483. # mobile useragents
  484. # specify user agents which will be redirected to the mobile plugin (if enabled)
  485. mobile_agent=iPhone,Android,IEMobile,Mobile
  486. #####################################
  487. # bug reporting
  488. # show link to bug reports when internal errors occur.
  489. # set to 'server' to log js error server side. Set to 'both'
  490. # to show the error icon and log it on the server.
  491. show_error_reports = both
  492. # don't report some known harmless javascript errors
  493. skip_js_errors = cluetip is not a function
  494. # what email address bug reports will be sent to
  495. #bug_email_rcpt = bugs@thruk.org
  496. ######################################
  497. # COOKIE AUTH
  498. # cookie auth requires additional webserver settings, see the documentation
  499. # for detailed instructions.
  500. cookie_auth_login_url = thruk/cgi-bin/login.cgi
  501. cookie_auth_restricted_url = http://localhost/thruk/cgi-bin/restricted.cgi
  502. cookie_auth_session_timeout = 604800
  503. cookie_auth_session_cache_timeout = 5
  504. cookie_auth_direct_agents = (wget|curl)
  505. #cookie_auth_domain = .domain.com
  506. #cookie_auth_login_hook = ./bin/hook.sh
  507. ######################################
  508. # Add a Internet Explorer (IE) compatibility header to the html header.
  509. #useragentcompat = edge
  510. ######################################
  511. # BACKENDS
  512. # Get the status for remote backends from local instances. This can
  513. # increase performance when using multiple remote sites. It is enabled
  514. # by default when using more than one site. You have to define
  515. # hostchecks in any local backend (using unix sockets) with a name or
  516. # alias of the address of your remote backends.
  517. #check_local_states = 1
  518. # set logging of backend in verbose mode. This only
  519. # makes sense when debug logging is activated
  520. #backend_debug = 0
  521. # use connection pool when accessing multiple sites.
  522. # Increases the performance because backends will be queried
  523. # parallel but uses around 50mb of memory per pool member.
  524. # Disabled when set to 0. (experimental feature)
  525. #connection_pool_size = 0
  526. # Enables caching logfiles for faster access. Cache supports MongoDB
  527. # and Mysql. Format is a connection string like 'mysql://hostname:port/db'.
  528. # Using a cache dramatically decreases cpu and memory usage of Thruk
  529. # when accessing logfiles, for example when creating reports.
  530. #logcache=mysql://hostname:port/thruk_log_cache
  531. # Define filter which prevents the logcache from overgrowing with useless
  532. # log messages. Since the main reason for the logcache are availability reports
  533. # it is ok to remove some entries. Can be used multiple times.
  534. #logcache_import_exclude = "Warning: Passive check result was received for"
  535. # The sitepanel is used to display multiple backends/sites at a glance.
  536. # With than 10 or more sites, the list of backends will be combined
  537. # into the 'compact' site panel which just displays the totals of
  538. # available / down / disabled sites. The 'compact' panel will also
  539. # automatically be used if you use sections.
  540. # With more than 50 backends, the 'collapsed' will be selected in 'auto' mode.
  541. # Set sitepanel to list/compact/collapsed/auto/off to change the default behaviour.
  542. #sitepanel=auto
  543. ######################################
  544. # Backend Configuration, enter your backends here
  545. <Component Thruk::Backend>
  546. # <peer>
  547. # name = Local Naemon
  548. # type = livestatus
  549. # hidden = 1 # make this backend hidden by default
  550. # groups = admins # make this backend only visible to the admin group
  551. # <options>
  552. # peer = /tmp/livestatus.socket
  553. # resource_file = path_to_your/resource.cfg
  554. # </options>
  555. # <configtool>
  556. # core_conf = /etc/naemon/naemon.cfg
  557. # obj_check_cmd = /etc/init.d/naemon checkconfig
  558. # obj_reload_cmd = /etc/init.d/naemon reload
  559. # </configtool>
  560. # </peer>
  561. # <peer>
  562. # name = External Naemon
  563. # type = livestatus
  564. # <options>
  565. # peer = 172.16.0.1:9999
  566. # </options>
  567. # </peer>
  568. # <peer>
  569. # name = External Icinga
  570. # type = livestatus
  571. # <options>
  572. # peer = 172.16.0.2:9999
  573. # </options>
  574. # </peer>
  575. # <peer>
  576. # name = External Shinken
  577. # type = livestatus
  578. # <options>
  579. # peer = 127.0.0.01:50000
  580. # </options>
  581. # </peer>
  582. </Component>
  583. ######################################
  584. # PLUGINS
  585. ######################################
  586. ######################################
  587. # CONFIG TOOL
  588. # enable config tool by setting path to different components
  589. # config files. Users with the roles
  590. # authorized_for_configuration_information and authorized_for_system_commands
  591. # will then have access to the config tool.
  592. <Component Thruk::Plugin::ConfigTool>
  593. show_plugin_syntax_helper = 1
  594. thruk = ./thruk_local.conf
  595. cgi.cfg = ./cgi.cfg
  596. #htpasswd = ./htpasswd
  597. #pre_obj_save_cmd =
  598. #post_obj_save_cmd =
  599. #git_base_dir =
  600. #edit_files =
  601. #extra_custom_var_host = _WORKER
  602. #extra_custom_var_service = _WORKER, _SNMP_COMMUNITY
  603. </Component>
  604. ######################################
  605. # PANORAMA
  606. <Component Thruk::Plugin::Panorama>
  607. # Can be a list (comma seperated) of
  608. # (public) dashboards which will be
  609. # used as default view if the user has not set
  610. # its own view already.
  611. #default_dashboard = <nr>
  612. # make panels, tabs and dashboard readonly.
  613. # users will not be able to change, resize or add
  614. # panels.
  615. #readonly = 0
  616. # full page reload every 3 hours to prevent memory
  617. # leaks. Disabled when set to 0.
  618. full_reload_interval = 10800
  619. # default start for new geo maps (lon,lat)
  620. geo_map_default_center = 13.74,47.77
  621. geo_map_default_zoom = 5
  622. # wms provider serve map tile data for geo maps according to
  623. # http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.OpenLayers.Layer.WMS
  624. # find more wms provider here: http://wiki.openstreetmap.org/wiki/WMS#OSM_WMS_Servers
  625. wms_provider = ows.terrestris.de = ["http://ows.terrestris.de/osm/service?", {"layers": "OSM-WMS"}, { "attribution": "&copy; terrestris GmbH & Co. KG <br>Data &copy; OpenStreetMap <a href='http://www.openstreetmap.org/copyright/en' target='_blank'>contributors<a>" }]
  626. wms_provider = irs.gis-lab.info = ["http://irs.gis-lab.info/?layers=osm&"]
  627. wms_provider = www.osm-wms.de (osm) = ["http://129.206.228.72/cached/osm?", {"layers": "osm_auto:all", "format": "image/png"}]
  628. wms_provider = www.osm-wms.de (hillshade) = ["http://129.206.228.72/cached/hillshade?", {"layers": "osm_auto:all", "format": "image/png"}]
  629. </Component>
  630. ######################################
  631. # REPORTS 2
  632. <Component Thruk::Plugin::Reports2>
  633. # execute regular scheduled reports with this nice level
  634. #report_nice_level = 5
  635. # maximum number of running reports at a time
  636. #max_concurrent_reports = 2
  637. # url used to replace relative links in html reports
  638. #report_base_url=http://host.local/thruk/cgi-bin/
  639. # phantomjs is used to convert html pages into pdf
  640. #phantomjs = /path/to/phantomjs
  641. # pnp export script is used to export pnp graphs into reports
  642. #pnp_export = /path/to/pnp_export.sh
  643. # set the from address used in e-mail reports
  644. #report_from_email = User Name <example@mail.com>
  645. # set the default template used for new reports
  646. #default_template = sla_host.tt
  647. </Component>
  648. #####################################
  649. # STATUSMAP
  650. <Component Thruk::Plugin::Statusmap>
  651. # you may change the default map type of the statusmap here. Valid
  652. # types are: 'table' and 'circle'
  653. #default_type = table
  654. # and the statusmap default group by which has to be one of:
  655. # 'parent', 'address', 'domain', 'hostgroup', 'servicegroup'
  656. #default_groupby = address
  657. </Component>
  658. #####################################
  659. # MINEMAP
  660. <Component Thruk::Plugin::Minemap>
  661. # you may change the default minemap link here
  662. #default_link = /thruk/cgi-bin/minemap.cgi
  663. </Component>
  664. #####################################
  665. # Business Process
  666. <Component Thruk::Plugin::BP>
  667. # Results will be send back by using the spool folder.
  668. # This folder should point to the 'check_result_path' of your core.
  669. #spool_dir = /var/naemon/rw/check_results
  670. # as alternative to the spool_dir, a livestatus connection can be used
  671. # to send results to the core.
  672. #result_backend = sitename
  673. # Save objects to this file. Content will be overwritten.
  674. #objects_save_file = /etc/naemon/conf.d/thruk_bp_generated.cfg
  675. # User maintained file containing templates used for business process services.
  676. #objects_templates_file = /etc/naemon/conf.d/thruk_templates.cfg
  677. # Command to apply changes to the objects_save_file. If no set and
  678. # and result_backend is used, the restart will be triggered as external command.
  679. #objects_reload_cmd = /etc/init.d/naemon reload
  680. # hooks which will be executed before or after saving.
  681. #pre_save_cmd =
  682. #post_save_cmd =
  683. # Refresh interval defines how often business processes
  684. # will be recalculated and refreshed. (in minutes)
  685. #refresh_interval = 1
  686. </Component>
  687. #####################################
  688. # Action Menus
  689. #action_menu_items_folder = ./action_menus/
  690. <action_menu_items>
  691. #hostmenu = {\
  692. # "icon": "/thruk/themes/{{theme}}/images/dropdown.png",\
  693. # "title": "Host Menu",\
  694. # "menu": [\
  695. # {\
  696. # "icon": "/thruk/themes/{{theme}}/images/page_white_text.png",\
  697. # "label": "Example Link",\
  698. # "action": "https://example.org",\
  699. # "target": "_blank"\
  700. # },\
  701. # "-",\
  702. # {\
  703. # "icon": "/thruk/themes/{{theme}}/images/arrow_refresh.png",\
  704. # "label": "Refresh",\
  705. # "action": "server://refresh/$HOSTNAME$",\
  706. # "target": "_blank"\
  707. # },\
  708. # ]\
  709. #}
  710. #servicemenu = {\
  711. # "icon": "/thruk/themes/{{theme}}/images/dropdown.png",\
  712. # "title": "Service Menu",\
  713. # "menu": [\
  714. # {\
  715. # "icon": "/thruk/themes/{{theme}}/images/page_white_text.png",\
  716. # "label": "Example Link",\
  717. # "action": "https://example.org",\
  718. # "target": "_blank"\
  719. # },\
  720. # "-",\
  721. # {\
  722. # "icon": "/thruk/themes/{{theme}}/images/arrow_refresh.png",\
  723. # "label": "Refresh",\
  724. # "action": "server://refresh/$HOSTNAME/$SERVICEDESC$",\
  725. # "target": "_blank"\
  726. # },\
  727. # ]\
  728. #}
  729. </action_menu_items>
  730. <action_menu_actions>
  731. #example = /usr/local/bin/sample.sh $HOSTNAME$ $SERVICEDESC$ $USER20$
  732. #refresh = /usr/local/bin/refresh.sh otherargs
  733. </action_menu_actions>
  734. <action_menu_apply>
  735. #hostmenu = .*;$ # matches all hosts only
  736. #servicemenu = .*;.+$ # matches all services on all hosts
  737. #specialmenu = ^Host;Service$ # matches an exact service on one host only
  738. #cpu_menu = .*;^CPU # matches all services starting with 'CPU'
  739. #hostmenu = ^Host # matches all hosts starting with 'Host'
  740. #demomenu = ^Demo; # matches all services on the 'Demo' host
  741. #demomenu = ^Test; # a menu name can be used multiple times
  742. </action_menu_apply>