forked from sni/thruk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-thruk.conf.patch
141 lines (119 loc) · 4.33 KB
/
0001-thruk.conf.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
--- a/thruk.conf 2014-01-22 23:19:55.000000000 +0100
+++ b/thruk.conf 2014-01-22 23:20:00.000000000 +0100
@@ -80,11 +80,11 @@
######################################
# location of your cgi.cfg
-cgi.cfg = cgi.cfg
+cgi.cfg = @SYSCONFDIR@/cgi.cfg
######################################
# use frames, can be useful for addons
-use_frames = 0
+use_frames = 1
######################################
# use histograms, shows histogram links
@@ -182,11 +182,11 @@
######################################
# temporary directory, used for template cache...
-#tmp_path = /tmp
+tmp_path = @TMPDIR@
######################################
# var directory, used to store user settings
-#var_path = ./var
+var_path = @LOCALSTATEDIR@
######################################
# mode used when creating or saving files
@@ -195,24 +195,24 @@
######################################
# files owners for new / changed files
-#thruk_user=thruk
-#thruk_group=thruk
+thruk_user=@THRUKUSER@
+thruk_group=@THRUKGROUP@
######################################
# server side includes
-#ssi_path = ssi/
+ssi_path = @SYSCONFDIR@/ssi/
######################################
# path to your plugins
# see documentation for further steps if
# you change the plugin path
-#plugin_path = plugins/
+plugin_path = @SYSCONFDIR@/plugins/
######################################
# path to your themes
# see documentation for further steps if
# you change the themes path
-#themes_path = themes/
+themes_path = @SYSCONFDIR@/themes/
######################################
# custom templates
@@ -220,7 +220,7 @@
######################################
# log4perl config
-#log4perl_conf = ./log4perl.conf
+log4perl_conf = @SYSCONFDIR@/log4perl.conf
######################################
# use paged data instead of all data in one huge page
@@ -453,23 +453,23 @@
# Specifiy a file which is then completly under the control of Thruk.
# It will be used to store cronjobs, ex. for reports. The file has to
# be writable by Thruk.
-cron_file = /tmp/thruk_cron.tmp
+cron_file = @TMPDIR@/thruk_cron.tmp
# The pre edit cmd can be used to do run a command just before thruk
# will edit the crontab.
-cron_pre_edit_cmd = /usr/bin/crontab -l > /tmp/thruk_cron.tmp
+cron_pre_edit_cmd = /usr/bin/crontab -l > @TMPDIR@/thruk_cron.tmp
# The post edit cmd is necessary for OMD where you need to reload the
# crontab after editing.
-cron_post_edit_cmd = /usr/bin/crontab /tmp/thruk_cron.tmp && rm -f /tmp/thruk_cron.tmp
+cron_post_edit_cmd = /usr/bin/crontab @TMPDIR@/thruk_cron.tmp && rm -f @TMPDIR@/thruk_cron.tmp
#####################################
# path setting
# Path to your thruk executable. Will be used in cronjobs.
-#thruk_bin = /usr/bin/thruk
+thruk_bin = @BINDIR@/thruk
# Path to your thruk init script. Will be used to restart thruk.
-#thruk_init = /etc/init.d/thruk
+thruk_init = @INITDIR@/thruk
# Set first day of week. Used in reports.
# Sunday: 0
@@ -578,6 +578,20 @@
# Backend Configuration, enter your backends here
<Component Thruk::Backend>
# <peer>
+# name = Core
+# type = livestatus
+# <options>
+# peer = /var/naemon/rw/live
+# resource_file = /etc/naemon/resource.cfg
+# </options>
+# <configtool>
+# core_conf = /etc/naemon/naemon.cfg
+# obj_check_cmd = /usr/bin/naemon -v /etc/naemon/naemon.cfg
+# obj_reload_cmd = /etc/init.d/naemon reload
+# </configtool>
+# </peer>
+
+# <peer>
# name = Local Naemon
# type = livestatus
# hidden = 1 # make this backend hidden by default
@@ -629,9 +643,9 @@
<Component Thruk::Plugin::ConfigTool>
show_plugin_syntax_helper = 1
- thruk = ./thruk_local.conf
- cgi.cfg = ./cgi.cfg
- #htpasswd = ./htpasswd
+ thruk = @SYSCONFDIR@/thruk_local.conf
+ cgi.cfg = @SYSCONFDIR@/cgi.cfg
+ htpasswd = @SYSCONFDIR@/htpasswd
#pre_obj_save_cmd =
#post_obj_save_cmd =
@@ -664,7 +678,7 @@
#report_base_url=http://host.local/thruk/cgi-bin/
# wkhtmltopdf is used to convert html pages into pdf
- #wkhtmltopdf = /path/to/wkhtmltopdf
+ wkhtmltopdf = @DATADIR@/script/wkhtmltopdf
# pnp export script is used to export pnp graphs into reports
#pnp_export = /path/to/pnp_export.sh