1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
3 * Base path of the web site. If this includes a domain, eg: localhost/kohana/
4 * then a full URL will be used, eg: http://localhost/kohana/. If it only includes
5 * the path, and a site_protocol is specified, the domain will be auto-detected.
7 $config['site_domain'] = '/ninja/';
10 * Force a default protocol to be used by the site. If no site_protocol is
11 * specified, then the current protocol is used, or when possible, only an
12 * absolute path (with no protocol/domain) is used.
14 $config['site_protocol'] = '';
17 * Name of the front controller for this application. Default: index.php
19 * This can be removed by using URL rewriting.
21 $config['index_page'] = 'index.php';
24 * In case anyone would like to brand their installation
25 * This string is shown throughout the GUI in various places
26 * and this is the only place you will have to change it.
28 $config['product_name'] = 'Nagios';
31 * Custom version info file. Format:
33 * This info will be visible in the 'product info' link
35 $config['version_info'] = '/etc/ninja-release';
38 * Fake file extension that will be added to all generated URLs. Example: .html
40 $config['url_suffix'] = '';
43 * Length of time of the internal cache in seconds. 0 or FALSE means no caching.
44 * The internal cache stores file paths and config entries across requests and
45 * can give significant speed improvements at the expense of delayed updating.
47 $config['internal_cache'] = FALSE;
50 * Enable or disable gzip output compression. This can dramatically decrease
51 * server bandwidth usage, at the cost of slightly higher CPU usage. Set to
52 * the compression level (1-9) that you want to use, or FALSE to disable.
54 * Do not enable this option if you are using output compression in php.ini!
56 $config['output_compression'] = FALSE;
59 * Enable or disable global XSS filtering of GET, POST, and SERVER data. This
60 * option also accepts a string to specify a specific XSS filtering tool.
62 $config['global_xss_filtering'] = TRUE;
65 * Enable or disable hooks.
67 $config['enable_hooks'] = true;
70 * Enable or disable displaying of Kohana error pages. This will not affect
71 * logging. Turning this off will disable ALL error pages.
73 $config['display_errors'] = TRUE;
76 * Enable or disable statistics in the final output. Stats are replaced via
77 * specific strings, such as {execution_time}.
79 * @see http://docs.kohanaphp.com/general/configuration
81 $config['render_stats'] = false;
84 * Filename prefixed used to determine extensions. For example, an
85 * extension to the Controller class would be named MY_Controller.php.
87 $config['extension_prefix'] = 'MY_';
89 $config['autoload'] = array
91 'libraries' => 'session, database'
95 * Base path to the location of Nagios.
96 * This is used if we need to read some
97 * configuration from the config files.
98 * This path sare assumed to contain the
99 * following subdirectories (unless specified below):
106 $config['nagios_base_path'] = '/opt/monitor';
109 * Path to Nagios command pipe (FIFO).
111 $config['nagios_pipe'] = $config['nagios_base_path'].'/var/rw/nagios.cmd';
114 * If the nagios etc directory is to be found outside
115 * the nagios base path, please specify here.
119 $config['nagios_etc_path'] = false;
122 * Path to where host logos as stored.
123 * Should be relative to webroot
125 $config['logos_path'] = '/ninja/application/media/images/logos';
128 * current_skin is the subdirectory to 'css'. a skin a simple way of altering
129 * colours etc in the gui.
131 $config['current_skin'] = 'default/';
134 * Url to configuration interface for each table.
136 $config['config_url'] = array();
139 * Do we use NACOMA (Nagios Configuration Manager)?
140 * If path differs from the one below but still installed
141 * you could simply change it.
143 $nacoma_real_path = '/opt/monitor/op5/nacoma/';
144 if (is_dir($nacoma_real_path)) {
145 $config['nacoma_path'] = '/monitor/op5/nacoma/';
146 $config['config_url']['hosts'] = $config['site_domain'] . 'index.php/configuration/configure/?type=host&name=$HOSTNAME$';
147 $config['config_url']['services'] = $config['site_domain'] . 'index.php/configuration/configure/?type=service&name=$HOSTNAME$&service=$SERVICEDESC$';
149 $config['nacoma_path'] = false;
153 * Web path to Pnp4nagios
154 * If installed, change path below or set to false if not
156 $config['pnp4nagios_path'] = '/monitor/op5/pnp/';
159 * Path to the pnp config file 'config.php'
160 * Only used if 'pnp4nagios_path' !== false
162 $config['pnp4nagios_config_path'] = '/opt/monitor/etc/pnp/config.php';
163 if (!is_file($config['pnp4nagios_config_path'])) {
164 $config['pnp4nagios_path'] = false;
165 $config['pnp4nagios_config_path'] = false;
169 * Default refresh rate for all pages
171 $config['page_refresh_rate'] = 90;
174 * Control command line access to Ninja
176 * false : No commandline access
177 * true : Second command line argument (i.e after path)
178 * will be used as username (default)
179 * 'username' : The entered username will be used for authentication
181 $config['cli_access'] = true;
184 * Nr of items returned for searches
186 $config['search_limit'] = 10;
189 * Nr of items returned for autocomplete search
191 $config['autocomplete_limit'] = 10;
195 * Milliseconds before the pop-up is shown
197 $config['popup_delay'] = 150;
200 * How often do each listview refresh itself? 0 means it's disabled
202 $config['listview_refresh_rate'] = 30;