forked from mattiasgeniar/MoZBX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-core.php
98 lines (76 loc) · 3.63 KB
/
config-core.php
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
<?php
$arrSettings = array();
/* #########################################################################
##
##
## CORE CONFIG - BE CAREFUL
##
##
###########################################################################*/
/* If set to true, will show a textfield to input the URL */
$arrSettings["isHosted"] = true;
/* Should we prompt for username & password, or just accept what's in this config and login automatically? */
/* Note: if you set this to false, everyone visiting this URL will have access !! */
$arrSettings["promptCredentials"] = true;
/* If set to true, provides HTTP basic auth credentials to cURL */
/* Useful if your zabbix server is protected by HTTP Auth instead of, or in addition to form authentication */
$arrSettings["useHttpAuth"] = false;
/* Your Zabbix's server's hostname: used in the Zabbix Cookie Forging for retrieving graphs */
/* This needs to match your server's hostname. Ie: http://zabbix.lab.mojah.be/zabbix/index.php */
/* Would mean your zabbixHostname is 'zabbix.lab.mojah.be' (the FQDN) */
$arrSettings["zabbixHostname"] = "localhost";
/* This is mostly only useful during debugging (less typing) */
$arrSettings["zabbixUsername"] = "demo";
/* Again, useful for debugging. You don't want this in production. */
$arrSettings["zabbixPassword"] = "demo";
/* Where is the 'api_jsonrpc.php', 'chart2.php' and 'index.php' file of Zabbix located?? */
$arrSettings["zabbixApiUrl"] = "http://www.mozbx.net/zabbix/";
/* Debug JSON requests: echo all sent & received data */
$arrSettings["jsonDebug"] = true;
$arrSettings["jsonDebug_path"] = "/tmp/mozbx/";
/* Turn on verbose debugging output of curl to std error */
$arrSettings["curlVerbose"] = false;
/* How long should our cookies be valid? */
$arrSettings["cookieExpire"] = time() + 60 * 60 * 7;
/* #########################################################################
##
##
## PATHS & DIRECTORIES
##
##
###########################################################################*/
/* Where should we store our tempory cookie files? */
$arrSettings["pathCookiesStorage"] = "/tmp/";
/* What URL are we on? */
$arrSettings["urlApplication"] = "http://localhost/";
/* #########################################################################
##
##
## PRESENTATION - SHOWING THE DATA
##
##
###########################################################################*/
/* Count the number of hosts per group?
Warning: mayor performance hit. Only enable when you have a small number
of hostgroups.
*/
$arrSettings["countHostsPerGroup"] = false;
/* Show empty hostgroups ? This only takes effect when the setting above, countHostsPerGroup, is true */
$arrSettings["showEmptyHostgroups"] = false;
/* Minimum severity for triggers to be shown? */
/* This can help keep pages quick, if you can ignore ie. all information/not classified triggers you don't want */
/* 0: not classified, 1: information, 2: warning, 3: average, 4: high, 5: disaster */
/* If you put it on 0, you'll show all triggers. If on 2, you'll only show warnings or higher */
$arrSettings["minimalSeverity"] = 2; // >=
/* Google Analytics */
$arrSettings["googleAnalytics"] = "<script type=\"text/javascript\">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18606758-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>";
?>