|
Lines 130-139
Link Here
|
| 130 |
<tr> |
130 |
<tr> |
| 131 |
<th scope="row">Elasticsearch: </th> |
131 |
<th scope="row">Elasticsearch: </th> |
| 132 |
[% IF elasticsearch_fatal_config_error %] |
132 |
[% IF elasticsearch_fatal_config_error %] |
| 133 |
<td><span class="text-bg-warning">[% elasticsearch_fatal_config_error | html %]</span></td> |
133 |
<td><span class="bg-warning-subtle">[% elasticsearch_fatal_config_error | html %]</span></td> |
| 134 |
[% ELSE %] |
134 |
[% ELSE %] |
| 135 |
[% IF elasticsearch_status.running %] |
135 |
[% IF elasticsearch_status.running %] |
| 136 |
[% SET td_class="text-bg-info" %] |
136 |
[% SET td_class="bg-info-subtle" %] |
| 137 |
[% END %] |
137 |
[% END %] |
| 138 |
<td class="[% td_class | html %]"> |
138 |
<td class="[% td_class | html %]"> |
| 139 |
<span>Version:</span> |
139 |
<span>Version:</span> |
|
Lines 152-158
Link Here
|
| 152 |
(<span>count:</span> <em>[% index.index_count | html %]</em>) [% UNLESS loop.last %],[% END %] |
152 |
(<span>count:</span> <em>[% index.index_count | html %]</em>) [% UNLESS loop.last %],[% END %] |
| 153 |
[% END %] |
153 |
[% END %] |
| 154 |
[% ELSE %] |
154 |
[% ELSE %] |
| 155 |
<span class="text-bg-warning">not running</span> |
155 |
<span class="bg-warning-subtle">not running</span> |
| 156 |
[% END %] |
156 |
[% END %] |
| 157 |
</td> |
157 |
</td> |
| 158 |
[% END # /IF elasticsearch_fatal_config_error %] |
158 |
[% END # /IF elasticsearch_fatal_config_error %] |
|
Lines 161-167
Link Here
|
| 161 |
<tr> |
161 |
<tr> |
| 162 |
<th scope="row">Memcached: </th> |
162 |
<th scope="row">Memcached: </th> |
| 163 |
[% IF memcached_running AND is_memcached_still_active AND where_is_memcached_config == 'config_only' %] |
163 |
[% IF memcached_running AND is_memcached_still_active AND where_is_memcached_config == 'config_only' %] |
| 164 |
[% SET td_class="text-bg-info" %] |
164 |
[% SET td_class="bg-info-subtle" %] |
| 165 |
[% END %] |
165 |
[% END %] |
| 166 |
<td class="[% td_class | html %]"> |
166 |
<td class="[% td_class | html %]"> |
| 167 |
<span>Servers:</span> |
167 |
<span>Servers:</span> |
|
Lines 181-189
Link Here
|
| 181 |
<span>Status:</span> |
181 |
<span>Status:</span> |
| 182 |
[% IF memcached_servers %] |
182 |
[% IF memcached_servers %] |
| 183 |
[% IF memcached_running and is_memcached_still_active %] |
183 |
[% IF memcached_running and is_memcached_still_active %] |
| 184 |
<span class="text-bg-info">running</span>. |
184 |
<span class="bg-info-subtle">running</span>. |
| 185 |
[% ELSE %] |
185 |
[% ELSE %] |
| 186 |
<span class="text-bg-warning">not running</span>. |
186 |
<span class="bg-warning-subtle">not running</span>. |
| 187 |
[% IF is_psgi %] |
187 |
[% IF is_psgi %] |
| 188 |
<span>Remember memcached needs to be started before Plack.</span> |
188 |
<span>Remember memcached needs to be started before Plack.</span> |
| 189 |
[% END %] |
189 |
[% END %] |
|
Lines 195-208
Link Here
|
| 195 |
<span>Config read from:</span> |
195 |
<span>Config read from:</span> |
| 196 |
[% SWITCH where_is_memcached_config %] |
196 |
[% SWITCH where_is_memcached_config %] |
| 197 |
[% CASE 'config_only' %] |
197 |
[% CASE 'config_only' %] |
| 198 |
<span class="text-bg-info">koha-conf.xml</span> |
198 |
<span class="bg-info-subtle">koha-conf.xml</span> |
| 199 |
[% CASE 'ENV_only' %] |
199 |
[% CASE 'ENV_only' %] |
| 200 |
<span class="text-bg-warning">ENV</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file</span> |
200 |
<span class="bg-warning-subtle">ENV</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file</span> |
| 201 |
[% CASE 'both' %] |
201 |
[% CASE 'both' %] |
| 202 |
<span class="text-bg-warning">ENV and koha-conf.xml</span> |
202 |
<span class="bg-warning-subtle">ENV and koha-conf.xml</span> |
| 203 |
<span>Note that the right place to define the memcached config is in your $KOHA_CONF file. To avoid any misunderstanding you should not export the memcached config from ENV.</span> |
203 |
<span>Note that the right place to define the memcached config is in your $KOHA_CONF file. To avoid any misunderstanding you should not export the memcached config from ENV.</span> |
| 204 |
[% CASE # nowhere %] |
204 |
[% CASE # nowhere %] |
| 205 |
<span class="text-bg-warning">Nowhere</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined.</span> |
205 |
<span class="bg-warning-subtle">Nowhere</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined.</span> |
| 206 |
[% END %] |
206 |
[% END %] |
| 207 |
[% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %] |
207 |
[% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %] |
| 208 |
| <span>Effective caching method:</span> [% effective_caching_method | html %] |
208 |
| <span>Effective caching method:</span> [% effective_caching_method | html %] |
|
Lines 216-237
Link Here
|
| 216 |
<tr> |
216 |
<tr> |
| 217 |
<th scope="row">Zebra status: </th> |
217 |
<th scope="row">Zebra status: </th> |
| 218 |
[% IF (errZebraConnection == 10000) %] |
218 |
[% IF (errZebraConnection == 10000) %] |
| 219 |
<td class="text-bg-danger"><strong>Zebra server seems not to be available. Is it started?</strong></td> |
219 |
<td class="bg-danger-subtle"><strong>Zebra server seems not to be available. Is it started?</strong></td> |
| 220 |
[% ELSIF (errZebraConnection) %] |
220 |
[% ELSIF (errZebraConnection) %] |
| 221 |
<td class="text-bg-warning"><strong>Error message from Zebra: [% ( errZebraConnection ) | html %]</strong></td> |
221 |
<td class="bg-warning-subtle"><strong>Error message from Zebra: [% ( errZebraConnection ) | html %]</strong></td> |
| 222 |
[% ELSE %] |
222 |
[% ELSE %] |
| 223 |
<td class="text-bg-info">Running</td> |
223 |
<td class="bg-info-subtle">Running</td> |
| 224 |
[% END %] |
224 |
[% END %] |
| 225 |
</tr> |
225 |
</tr> |
| 226 |
<tr> |
226 |
<tr> |
| 227 |
<th scope="row">Message broker: </th> |
227 |
<th scope="row">Message broker: </th> |
| 228 |
[% IF warnConnectBroker %] |
228 |
[% IF warnConnectBroker %] |
| 229 |
<td class="text-bg-warning"><strong>Using SQL polling (Fallback, Error connecting to RabbitMQ)</strong></td> |
229 |
<td class="bg-warning-subtle"><strong>Using SQL polling (Fallback, Error connecting to RabbitMQ)</strong></td> |
| 230 |
[% ELSE %] |
230 |
[% ELSE %] |
| 231 |
[% IF Koha.Preference('JobsNotificationMethod') == 'polling' %] |
231 |
[% IF Koha.Preference('JobsNotificationMethod') == 'polling' %] |
| 232 |
<td class="text-bg-info">Using SQL polling</td> |
232 |
<td class="bg-info-subtle">Using SQL polling</td> |
| 233 |
[% ELSE %] |
233 |
[% ELSE %] |
| 234 |
<td class="text-bg-info">Using RabbitMQ</td> |
234 |
<td class="bg-info-subtle">Using RabbitMQ</td> |
| 235 |
[% END %] |
235 |
[% END %] |
| 236 |
[% END %] |
236 |
[% END %] |
| 237 |
</tr> |
237 |
</tr> |
|
Lines 240-247
Link Here
|
| 240 |
<td>[% current_date_and_time | $KohaDates with_hours => 1 %]</td> |
240 |
<td>[% current_date_and_time | $KohaDates with_hours => 1 %]</td> |
| 241 |
</tr> |
241 |
</tr> |
| 242 |
<tr> |
242 |
<tr> |
| 243 |
[% timezone_config_class = (time_zone.config_invalid) ? 'text-bg-warning' : '' %] |
243 |
[% timezone_config_class = (time_zone.config_invalid) ? 'bg-warning-subtle' : '' %] |
| 244 |
[% timezone_env_class = (time_zone.env_invalid) ? 'text-bg-warning' : '' %] |
244 |
[% timezone_env_class = (time_zone.env_invalid) ? 'bg-warning-subtle' : '' %] |
| 245 |
<th scope="row">Time zone: </th> |
245 |
<th scope="row">Time zone: </th> |
| 246 |
<td> |
246 |
<td> |
| 247 |
<span>Used:</span> <span>[% time_zone.actual | html %]</span> |
247 |
<span>Used:</span> <span>[% time_zone.actual | html %]</span> |