1<?php
2##
3## Program: @PKG_NAME@-@PKG_VERSION@ , Performance Data Addon for Nagios(r)
4## License: GPL
5## Copyright (c) 2005-2010 Joerg Linge (http://www.pnp4nagios.org)
6##
7## This program is free software; you can redistribute it and/or
8## modify it under the terms of the GNU General Public License
9## as published by the Free Software Foundation; either version 2
10## of the License, or (at your option) any later version.
11##
12## This program is distributed in the hope that it will be useful,
13## but WITHOUT ANY WARRANTY; without even the implied warranty of
14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15## GNU General Public License for more details.
16##
17## You should have received a copy of the GNU General Public License
18## along with this program; if not, write to the Free Software
19## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20##
21# Credit:  Tobi Oetiker, http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
22#
23
24# URL rewriting is used by default to create friendly URLs.
25# Set this value to '0' if URL rewriting is not available on your system.
26#
27$conf['use_url_rewriting'] = 1;
28#
29# Location of rrdtool binary
30#
31$conf['rrdtool'] = "@RRDTOOL@";
32#
33# RRDTool image size of graphs
34#
35$conf['graph_width'] = "500";
36$conf['graph_height'] = "100";
37#
38# RRDTool image size of graphs in zoom window
39#
40$conf['zgraph_width'] = "500";
41$conf['zgraph_height'] = "100";
42#
43# Right zoom box offset.
44# rrdtool 1.3.x = 22px
45# rrdtool 1.4.x = 30px
46#
47$conf['right_zoom_offset'] = 30;
48
49#
50# RRDTool image size of PDFs
51#
52$conf['pdf_width']        = "675";
53$conf['pdf_height']       = "100";
54$conf['pdf_page_size']    = "A4";   # A4 or Letter
55$conf['pdf_margin_top']   = "30";
56$conf['pdf_margin_left']  = "17.5";
57$conf['pdf_margin_right'] = "10";
58#
59# Additional options for RRDTool
60#
61# Example: White background and no border
62# "--watermark 'Copyright by example.com' --slope-mode --color BACK#FFF --color SHADEA#FFF --color SHADEB#FFF"
63#
64$conf['graph_opt'] = "";
65#
66# Additional options for RRDTool used while creating PDFs
67#
68$conf['pdf_graph_opt'] = "";
69#
70# Directory where the RRD Files will be stored
71#
72$conf['rrdbase'] = "@PERFDATA_DIR@/";
73#
74# Location of "page" configs
75#
76$conf['page_dir'] = "@sysconfdir@/pages/";
77#
78# Site refresh time in seconds
79#
80$conf['refresh'] = "90";
81#
82# Max age for RRD files in seconds
83#
84$conf['max_age'] = 60*60*6;
85#
86# Directory for temporary files used for PDF creation
87#
88$conf['temp'] = "/var/tmp";
89#
90# Link back to Nagios or Thruk ( www.thruk.org )
91#
92$conf['nagios_base'] = "/icingaweb2/cgi-bin";
93
94#
95# Link back to check_mk´s multisite ( http://mathias-kettner.de/checkmk_multisite.html )
96#
97$conf['multisite_base_url'] = "/check_mk";
98#
99# Multisite Site ID this PNP installation is linked to
100# This is the same value as defined in etc/multisite.mk
101#
102$conf['multisite_site'] = "";
103
104#
105# check authorization against mk_livestatus API
106# Available since 0.6.10
107#
108$conf['auth_enabled'] = FALSE;
109
110#
111# Livestatus socket path
112#
113#$conf['livestatus_socket'] = "tcp:localhost:6557";
114$conf['livestatus_socket'] = "unix://var/spool/icinga2/rw/live";
115
116#
117# Which user is allowed to see all services or all hosts?
118# Keywords: <USERNAME>
119# Example: conf['allowed_for_all_services'] = "nagiosadmin,operator";
120# This option is used while $conf['auth_enabled'] = TRUE
121$conf['allowed_for_all_services'] = "";
122$conf['allowed_for_all_hosts'] = "";
123
124# Which user is allowed to see additional service links ?
125# Keywords: EVERYONE NONE <USERNAME>
126# Example: conf['allowed_for_service_links'] = "nagiosadmin,operator";
127#
128$conf['allowed_for_service_links'] = "EVERYONE";
129
130#
131# Who can use the host search function ?
132# Keywords: EVERYONE NONE <USERNAME>
133#
134$conf['allowed_for_host_search'] = "EVERYONE";
135
136#
137# Who can use the host overview ?
138# This function is called if no Service Description is given.
139#
140$conf['allowed_for_host_overview'] = "EVERYONE";
141
142#
143# Who can use the Pages function?
144# Keywords: EVERYONE NONE <USERNAME>
145# Example: conf['allowed_for_pages'] = "nagiosadmin,operator";
146#
147$conf['allowed_for_pages'] = "EVERYONE";
148
149#
150# Which timerange should be used for the host overview site ?
151# use a key from array $views[]
152#
153$conf['overview-range'] = 1 ;
154
155#
156# Scale the preview images used in /popup
157#
158$conf['popup-width'] = "300px";
159
160#
161# jQuery UI Theme
162# http://jqueryui.com/themeroller/
163# Possible values are: lightness, smoothness, redmond, multisite
164$conf['ui-theme'] = 'smoothness';
165
166# Language definitions to use.
167# valid options are en_US, de_DE, es_ES, ru_RU, fr_FR
168#
169$conf['lang'] = "en_US";
170
171#
172# Date format
173#
174$conf['date_fmt'] = "d.m.y G:i";
175
176#
177# This option breaks down the template name based on _ and then starts to
178# build it up and check the different template directories for a suitable template.
179#
180# Example:
181#
182# Template to be used: check_esx3_host_net_usage you create a check_esx3.php
183#
184# It will find and match on check_esx3 first in templates dir then in templates.dist
185#
186$conf['enable_recursive_template_search'] = 1;
187
188#
189# Direct link to the raw XML file.
190#
191$conf['show_xml_icon'] = 1;
192
193#
194# Use FPDF Lib for PDF creation ?
195#
196$conf['use_fpdf'] = 1;
197
198#
199# Use this file as PDF background.
200#
201$conf['background_pdf'] = '@sysconfdir@/background.pdf' ;
202
203#
204# Enable Calendar
205#
206$conf['use_calendar'] = 1;
207
208#
209# Define default views with title and start timerange in seconds
210#
211# remarks: required escape on " with backslash
212#
213#$views[] = array('title' => 'One Hour',  'start' => (60*60) );
214$views[] = array('title' => '4 Hours',   'start' => (60*60*4) );
215$views[] = array('title' => '25 Hours',  'start' => (60*60*25) );
216$views[] = array('title' => 'One Week',  'start' => (60*60*25*7) );
217$views[] = array('title' => 'One Month', 'start' => (60*60*24*32) );
218$views[] = array('title' => 'One Year',  'start' => (60*60*24*380) );
219
220#
221# rrdcached support
222# Use only with rrdtool svn revision 1511+
223#
224# $conf['RRD_DAEMON_OPTS'] = 'unix:/tmp/rrdcached.sock';
225$conf['RRD_DAEMON_OPTS'] = '';
226
227# A list of directories to search for templates
228# @datarootdir@/templates.dist is always the last directory to be searched for templates
229#
230# Add your own template directories here
231# First match wins!
232#$conf['template_dirs'][] = '/usr/local/share/check_mk/pnp-templates';
233$conf['template_dirs'][] = '@datarootdir@/templates';
234$conf['template_dirs'][] = '@datarootdir@/templates.dist';
235
236#
237# Directory to search for special templates
238#
239$conf['special_template_dir'] = '@datarootdir@/templates.special';
240
241#
242# Regex to detect mobile devices
243# This regex is evaluated against the USER_AGENT String
244#
245$conf['mobile_devices'] = 'iPhone|iPod|iPad|android';
246
247#
248# additional colour schemes
249# values taken from www.colorbrewer2.org
250# for details on usage refer to the documentation of the helper functions
251#
252$scheme['Reds']     = array ('#FEE0D2','#FCBBA1','#FC9272','#FB6A4A','#EF3B2C','#CB181D','#A50F15','#67000D');
253$scheme['Greens']   = array ('#E5F5E0','#C7E9C0','#A1D99B','#74C476','#41AB5D','#23AB45','#006D2C','#00441B');
254$scheme['Blues']    = array ('#DEEBF7','#C6DBEF','#9ECAE1','#6BAED6','#4292C6','#2171B5','#08519C','#08306B');
255$scheme['Oranges']  = array ('#FEE6CE','#FDD0A2','#FDAE6B','#FD8D3C','#F16913','#D94801','#A63603','#7F2704');
256$scheme['Purples']  = array ('#EFEDF5','#DADAEB','#BDBDDC','#9E9AC8','#807DBA','#6A51A3','#54278F','#3F007A');
257$scheme['RdPu']     = array ('#FDE0DD','#FCC5C0','#FA9FB5','#F768A1','#DD3497','#AE017E','#7A0177','#49006A');
258$scheme['Dark2']    = array ('#1B9E77','#D95F02','#7570B3','#E7298A','#66A61E','#E6ab02','#a6761d','#666666');
259$scheme['BrBG']     = array ('#543005','#8C510A','#BF812D','#DFC27D','#F6E8C3','#C7EAE5','#80CDC1','#35978F','#01665E','#003C30');
260$scheme['PiYG']     = array ('#8E0152','#C51B7D','#DE77AE','#F1B6DA','#FDE0EF','#E6F5D0','#B8E186','#7FBC41','#4D9221','#276419');
261$scheme['PRGn']     = array ('#40004B','#762A83','#9970AB','#C2A5CF','#E7D4E8','#D9F0D3','#A6DBA0','#5AAE61','#1B7837','#00441B');
262$scheme['PuOr']     = array ('#7F3B08','#B35806','#E08214','#FDB863','#FEE0B6','#D8DAEB','#B2ABD2','#8073AC','#542788','#2D004B');
263$scheme['RdBu']     = array ('#67001F','#B2182B','#D6604D','#F4A582','#FDDBC7','#D1E5F0','#92C5DE','#4393C3','#2166AC','#053061');
264$scheme['RdGy']     = array ('#67001F','#B2182B','#D6604D','#F4A582','#FDDBC7','#E0E0E0','#BABABA','#878787','#4D4D4D','#1A1A1A');
265$scheme['RdYlBu']   = array ('#A50026','#D73027','#F46D43','#FDAE61','#FEE090','#E0F3F8','#ABD9E9','#74ADD1','#4575B4','#313695');
266$scheme['RdYlGn']   = array ('#A50026','#D73027','#F46D43','#FDAE61','#FEE08B','#D9EF8B','#A6D96A','#66BD63','#1A9850','#006837');
267$scheme['Spectral'] = array ('#9E0142','#D53E4F','#F46D43','#FDAE61','#FEE08B','#E6F598','#ABDDA4','#66C2A5','#3288BD','#5E4FA2');
268$scheme['Paired']   = array ('#A6CEE3','#1F78B4','#B2DF8A','#33A02C','#FB9A99','#E31A1C','#FDBF6F','#FF7F00','#CAB2D6','#6A3D9A');
269$scheme['mixed1']   = array ('#8C510A','#2166ac','#BF812D','#4393c3','#DFC27D','#92c5de','#F6E8C3','#d1e5f0',
270                             '#fddbc7','#C7EAE5','#f4a582','#80CDC1','#d6604d','#35978F','#b2182b','#01665E');
271$scheme['mixed2']   = array ('#b2182b','#2166ac','#d6604d','#4393c3','#f4a582','#92c5de','#fddbc7','#d1e5f0',
272                             '#F6E8C3','#C7EAE5','#DFC27D','#80CDC1','#BF812D','#35978F','#8C510A','#01665E');
273$scheme['mixed3']   = array ('#67001F','#80CDC1','#B2182B','#35978F','#D6604D','#01665E','#F4A582','#003C30',
274                             '#FDDBC7','#92C5DE','#D1E5F0','#2166AC','#4393C3','#8C510A','#053061','#BF812D');
275?>
276