Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/, net-analyzer/zabbix/files/2.4/patches/, ...
Date: Sat, 01 Oct 2016 19:14:54
Message-Id: 1475349283.2e11c1610606a97f0bfdab53e16fa2bebbe1af73.patrick@gentoo
1 commit: 2e11c1610606a97f0bfdab53e16fa2bebbe1af73
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 19:09:44 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 19:14:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e11c161
7
8 net-analyzer/zabbix: Remove 2.4 as it is EOL
9
10 net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd | 29 --
11 net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy | 28 --
12 net-analyzer/zabbix/files/2.4/init.d/zabbix-server | 27 -
13 .../zabbix/files/2.4/patches/zbx7479.patch | 83 ----
14 .../zabbix/files/2.4/patches/zbx8151.patch | 53 --
15 net-analyzer/zabbix/files/2.4/zabbix_agent.conf | 81 ---
16 net-analyzer/zabbix/files/2.4/zabbix_agentd.conf | 278 -----------
17 net-analyzer/zabbix/files/2.4/zabbix_proxy.conf | 519 --------------------
18 net-analyzer/zabbix/files/2.4/zabbix_server.conf | 546 ---------------------
19 net-analyzer/zabbix/zabbix-2.4.5.ebuild | 362 --------------
20 net-analyzer/zabbix/zabbix-2.4.7.ebuild | 362 --------------
21 net-analyzer/zabbix/zabbix-2.4.8.ebuild | 342 -------------
22 12 files changed, 2710 deletions(-)
23
24 diff --git a/net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd b/net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd
25 deleted file mode 100644
26 index e1e17b0..00000000
27 --- a/net-analyzer/zabbix/files/2.4/init.d/zabbix-agentd
28 +++ /dev/null
29 @@ -1,29 +0,0 @@
30 -#!/sbin/openrc-run
31 -# Copyright 1999-2014 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -pid_file="/run/zabbix/zabbix_agentd.pid"
36 -
37 -depend() {
38 - need net
39 - provide zabbix-agent
40 - use zabbix-server
41 -}
42 -
43 -start_pre() {
44 - checkpath -d -m 0775 -o zabbix:zabbix /run/zabbix
45 -}
46 -
47 -start() {
48 - ebegin "Starting Zabbix agent"
49 - start-stop-daemon --start --pidfile ${pid_file} \
50 - --user zabbix --group zabbix --exec /usr/sbin/zabbix_agentd -- -c /etc/zabbix/zabbix_agentd.conf
51 - eend $?
52 -}
53 -
54 -stop() {
55 - ebegin "Stopping Zabbix agent"
56 - start-stop-daemon --stop --pidfile ${pid_file}
57 - eend $?
58 -}
59
60 diff --git a/net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy b/net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy
61 deleted file mode 100644
62 index e048c18..00000000
63 --- a/net-analyzer/zabbix/files/2.4/init.d/zabbix-proxy
64 +++ /dev/null
65 @@ -1,28 +0,0 @@
66 -#!/sbin/openrc-run
67 -# Copyright 1999-2014 Gentoo Foundation
68 -# Distributed under the terms of the GNU General Public License v2
69 -# $Id$
70 -
71 -pid_file="/run/zabbix/zabbix_proxy.pid"
72 -
73 -depend() {
74 - need net
75 - provide zabbix-proxy
76 -}
77 -
78 -start_pre() {
79 - checkpath -d -m 0775 -o zabbix:zabbix /run/zabbix
80 -}
81 -
82 -start() {
83 - ebegin "Starting Zabbix proxy"
84 - start-stop-daemon --start --pidfile ${pid_file} \
85 - --user zabbix --group zabbix --exec /usr/sbin/zabbix_proxy -- -c /etc/zabbix/zabbix_proxy.conf
86 - eend $?
87 -}
88 -
89 -stop() {
90 - ebegin "Stopping Zabbix proxy"
91 - start-stop-daemon --stop --pidfile ${pid_file}
92 - eend $?
93 -}
94
95 diff --git a/net-analyzer/zabbix/files/2.4/init.d/zabbix-server b/net-analyzer/zabbix/files/2.4/init.d/zabbix-server
96 deleted file mode 100644
97 index f75996d..00000000
98 --- a/net-analyzer/zabbix/files/2.4/init.d/zabbix-server
99 +++ /dev/null
100 @@ -1,27 +0,0 @@
101 -#!/sbin/openrc-run
102 -# Copyright 1999-2014 Gentoo Foundation
103 -# Distributed under the terms of the GNU General Public License v2
104 -# $Id$
105 -
106 -pid_file="/run/zabbix/zabbix_server.pid"
107 -
108 -depend() {
109 - need net
110 - use mysql postgresql
111 -}
112 -start_pre() {
113 - checkpath -d -m 0775 -o zabbix:zabbix /run/zabbix
114 -}
115 -
116 -start() {
117 - ebegin "Starting Zabbix server"
118 - start-stop-daemon --start --user zabbix --group zabbix --pidfile ${pid_file} \
119 - --exec /usr/sbin/zabbix_server -- -c /etc/zabbix/zabbix_server.conf
120 - eend $?
121 -}
122 -
123 -stop() {
124 - ebegin "Stopping Zabbix server"
125 - start-stop-daemon --stop --pidfile ${pid_file}
126 - eend $?
127 -}
128
129 diff --git a/net-analyzer/zabbix/files/2.4/patches/zbx7479.patch b/net-analyzer/zabbix/files/2.4/patches/zbx7479.patch
130 deleted file mode 100644
131 index 79bb92f..00000000
132 --- a/net-analyzer/zabbix/files/2.4/patches/zbx7479.patch
133 +++ /dev/null
134 @@ -1,83 +0,0 @@
135 -Index: src/libs/zbxsysinfo/sysinfo.c
136 -===================================================================
137 ---- src/libs/zbxsysinfo/sysinfo.c (revision 40348)
138 -+++ src/libs/zbxsysinfo/sysinfo.c (working copy)
139 -@@ -427,13 +427,49 @@
140 - test_aliases();
141 - }
142 -
143 -+static int zbx_check_user_parameter(const char *param, char *error, int max_error_len)
144 -+{
145 -+ const char suppressed_chars[] = "\\'\"`*?[]{}~$!&;()<>|#@\n", *c;
146 -+ char *buf = NULL;
147 -+ size_t buf_alloc = 128, buf_offset = 0;
148 -+
149 -+ if (0 != CONFIG_UNSAFE_USER_PARAMETERS)
150 -+ return SUCCEED;
151 -+
152 -+ for (c = suppressed_chars; '\0' != *c; c++)
153 -+ {
154 -+ if (NULL == strchr(param, *c))
155 -+ continue;
156 -+
157 -+ buf = zbx_malloc(buf, buf_alloc);
158 -+
159 -+ for (c = suppressed_chars; '\0' != *c; c++)
160 -+ {
161 -+ if (c != suppressed_chars)
162 -+ zbx_strcpy_alloc(&buf, &buf_alloc, &buf_offset, ", ");
163 -+
164 -+ if (0 != isprint(*c))
165 -+ zbx_chrcpy_alloc(&buf, &buf_alloc, &buf_offset, *c);
166 -+ else
167 -+ zbx_snprintf_alloc(&buf, &buf_alloc, &buf_offset, "0x%02x", *c);
168 -+ }
169 -+
170 -+ zbx_snprintf(error, max_error_len, "special characters \"%s\" are not allowed in the parameters", buf);
171 -+
172 -+ zbx_free(buf);
173 -+
174 -+ return FAIL;
175 -+ }
176 -+
177 -+ return SUCCEED;
178 -+}
179 -+
180 - static int replace_param(const char *cmd, const char *param, char *out, int outlen, char *error, int max_error_len)
181 - {
182 - int ret = SUCCEED;
183 - char buf[MAX_STRING_LEN];
184 - char command[MAX_STRING_LEN];
185 - char *pl, *pr;
186 -- const char suppressed_chars[] = "\\'\"`*?[]{}~$!&;()<>|#@", *c;
187 -
188 - assert(out);
189 -
190 -@@ -465,25 +501,10 @@
191 - {
192 - get_param(param, (int)(pr[1] - '0'), buf, sizeof(buf));
193 -
194 -- if (0 == CONFIG_UNSAFE_USER_PARAMETERS)
195 -- {
196 -- for (c = suppressed_chars; '\0' != *c; c++)
197 -- {
198 -- if (NULL != strchr(buf, *c))
199 -- {
200 -- zbx_snprintf(error, max_error_len, "Special characters '%s'"
201 -- " are not allowed in the parameters",
202 -- suppressed_chars);
203 -- ret = FAIL;
204 -- break;
205 -- }
206 -- }
207 -- }
208 -+ if (SUCCEED != (ret = zbx_check_user_parameter(buf, error, max_error_len)))
209 -+ break;
210 - }
211 -
212 -- if (FAIL == ret)
213 -- break;
214 --
215 - zbx_strlcat(out, buf, outlen);
216 - outlen -= MIN((int)strlen(buf), (int)outlen);
217 -
218
219 diff --git a/net-analyzer/zabbix/files/2.4/patches/zbx8151.patch b/net-analyzer/zabbix/files/2.4/patches/zbx8151.patch
220 deleted file mode 100644
221 index 076e10a..00000000
222 --- a/net-analyzer/zabbix/files/2.4/patches/zbx8151.patch
223 +++ /dev/null
224 @@ -1,53 +0,0 @@
225 -Index: frontends/php/include/defines.inc.php
226 -===================================================================
227 ---- frontends/php/include/defines.inc.php (revision 46596)
228 -+++ frontends/php/include/defines.inc.php (revision 46655)
229 -@@ -835,6 +835,14 @@
230 -
231 - define('ZBX_DEFAULT_IMPORT_HOST_GROUP', 'Imported hosts');
232 -
233 -+// XML import flags
234 -+// See ZBX-8151. Old version of libxml suffered from setting DTDLOAD and NOENT flags by default, which allowed
235 -+// performing XXE attacks. Calling libxml_disable_entity_loader(true) also had no affect if flags passed to libxml
236 -+// calls were 0 - so for better security with legacy libxml we need to call libxml_disable_entity_loader(true) AND
237 -+// pass the LIBXML_NONET flag. Please keep in mind that LIBXML_NOENT actually EXPANDS entities, opposite to it's name -
238 -+// so this flag is not needed here.
239 -+define('LIBXML_IMPORT_FLAGS', LIBXML_NONET);
240 -+
241 - // API errors
242 - define('ZBX_API_ERROR_INTERNAL', 111);
243 - define('ZBX_API_ERROR_PARAMETERS', 100);
244 -Index: frontends/php/include/classes/import/readers/CXmlImportReader.php
245 -===================================================================
246 ---- frontends/php/include/classes/import/readers/CXmlImportReader.php (revision 46596)
247 -+++ frontends/php/include/classes/import/readers/CXmlImportReader.php (revision 46655)
248 -@@ -32,7 +32,8 @@
249 - */
250 - public function read($string) {
251 - libxml_use_internal_errors(true);
252 -- $result = simplexml_load_string($string);
253 -+ libxml_disable_entity_loader(true);
254 -+ $result = simplexml_load_string($string, null, LIBXML_IMPORT_FLAGS);
255 - if (!$result) {
256 - $errors = libxml_get_errors();
257 - libxml_clear_errors();
258 -Index: frontends/php/include/classes/import/CXmlImport18.php
259 -===================================================================
260 ---- frontends/php/include/classes/import/CXmlImport18.php (revision 46596)
261 -+++ frontends/php/include/classes/import/CXmlImport18.php (revision 46655)
262 -@@ -390,12 +390,13 @@
263 - return $array;
264 - }
265 -
266 -- public static function import($file) {
267 -+ public static function import($source) {
268 -
269 - libxml_use_internal_errors(true);
270 -+ libxml_disable_entity_loader(true);
271 -
272 - $xml = new DOMDocument();
273 -- if (!$xml->loadXML($file)) {
274 -+ if (!$xml->loadXML($source, LIBXML_IMPORT_FLAGS)) {
275 - $text = '';
276 - foreach (libxml_get_errors() as $error) {
277 - switch ($error->level) {
278
279 diff --git a/net-analyzer/zabbix/files/2.4/zabbix_agent.conf b/net-analyzer/zabbix/files/2.4/zabbix_agent.conf
280 deleted file mode 100644
281 index dcb4b72..00000000
282 --- a/net-analyzer/zabbix/files/2.4/zabbix_agent.conf
283 +++ /dev/null
284 @@ -1,81 +0,0 @@
285 -# This is a config file for Zabbix internet service daemon agent
286 -# To get more information about Zabbix visit http://www.zabbix.com
287 -
288 -### Option: Server
289 -# IP address of Zabbix server
290 -# Connections from other hosts will be denied
291 -# If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
292 -#
293 -# Mandatory: yes
294 -# Default:
295 -# Server=
296 -
297 -Server=127.0.0.1
298 -
299 -############ ADVANCED PARAMETERS #################
300 -
301 -### Option: Alias
302 -# Sets an alias for parameter. It can be useful to substitute long and complex parameter name with a smaller and simpler one.
303 -#
304 -# Mandatory: no
305 -# Range:
306 -# Default:
307 -
308 -### Option: Timeout
309 -# Spend no more than Timeout seconds on processing
310 -#
311 -# Mandatory: no
312 -# Range: 1-30
313 -# Default:
314 -# Timeout=3
315 -
316 -### Option: Include
317 -# You may include individual files or all files in a directory in the configuration file.
318 -# Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
319 -#
320 -# Mandatory: no
321 -# Default:
322 -# Include=
323 -
324 -# Include=/usr/local/etc/zabbix_agent.userparams.conf
325 -# Include=/usr/local/etc/zabbix_agent.conf.d/
326 -
327 -####### USER-DEFINED MONITORED PARAMETERS #######
328 -
329 -### Option: UnsafeUserParameters
330 -# Allow all characters to be passed in arguments to user-defined parameters.
331 -# 0 - do not allow
332 -# 1 - allow
333 -#
334 -# Mandatory: no
335 -# Default:
336 -# UnsafeUserParameters=0
337 -
338 -### Option: UserParameter
339 -# User-defined parameter to monitor. There can be several user-defined parameters.
340 -# Format: UserParameter=<key>,<shell command>
341 -# See 'zabbix_agentd' directory for examples.
342 -#
343 -# Mandatory: no
344 -# Default:
345 -# UserParameter=
346 -
347 -####### LOADABLE MODULES #######
348 -
349 -### Option: LoadModulePath
350 -# Full path to location of agent modules.
351 -# Default depends on compilation options.
352 -#
353 -# Mandatory: no
354 -# Default:
355 -# LoadModulePath=${libdir}/modules
356 -
357 -### Option: LoadModule
358 -# Module to load at agent startup. Modules are used to extend functionality of the agent.
359 -# Format: LoadModule=<module.so>
360 -# The modules must be located in directory specified by LoadModulePath.
361 -# It is allowed to include multiple LoadModule parameters.
362 -#
363 -# Mandatory: no
364 -# Default:
365 -# LoadModule=
366
367 diff --git a/net-analyzer/zabbix/files/2.4/zabbix_agentd.conf b/net-analyzer/zabbix/files/2.4/zabbix_agentd.conf
368 deleted file mode 100644
369 index 4d49d36..00000000
370 --- a/net-analyzer/zabbix/files/2.4/zabbix_agentd.conf
371 +++ /dev/null
372 @@ -1,278 +0,0 @@
373 -# This is a config file for the Zabbix agent daemon (Unix)
374 -# To get more information about Zabbix, visit http://www.zabbix.com
375 -
376 -############ GENERAL PARAMETERS #################
377 -
378 -### Option: PidFile
379 -# Name of PID file.
380 -#
381 -# Mandatory: no
382 -# Default:
383 -PidFile=/run/zabbix/zabbix_agentd.pid
384 -
385 -### Option: LogFile
386 -# Name of log file.
387 -# If not set, syslog is used.
388 -#
389 -# Mandatory: no
390 -# Default:
391 -# LogFile=
392 -
393 -LogFile=/var/log/zabbix/zabbix_agentd.log
394 -
395 -### Option: LogFileSize
396 -# Maximum size of log file in MB.
397 -# 0 - disable automatic log rotation.
398 -#
399 -# Mandatory: no
400 -# Range: 0-1024
401 -# Default:
402 -LogFileSize=128
403 -
404 -### Option: DebugLevel
405 -# Specifies debug level
406 -# 0 - no debug
407 -# 1 - critical information
408 -# 2 - error information
409 -# 3 - warnings
410 -# 4 - for debugging (produces lots of information)
411 -#
412 -# Mandatory: no
413 -# Range: 0-4
414 -# Default:
415 -# DebugLevel=3
416 -
417 -### Option: SourceIP
418 -# Source IP address for outgoing connections.
419 -#
420 -# Mandatory: no
421 -# Default:
422 -# SourceIP=
423 -
424 -### Option: EnableRemoteCommands
425 -# Whether remote commands from Zabbix server are allowed.
426 -# 0 - not allowed
427 -# 1 - allowed
428 -#
429 -# Mandatory: no
430 -# Default:
431 -# EnableRemoteCommands=0
432 -
433 -### Option: LogRemoteCommands
434 -# Enable logging of executed shell commands as warnings.
435 -# 0 - disabled
436 -# 1 - enabled
437 -#
438 -# Mandatory: no
439 -# Default:
440 -# LogRemoteCommands=0
441 -
442 -##### Passive checks related
443 -
444 -### Option: Server
445 -# List of comma delimited IP addresses (or hostnames) of Zabbix servers.
446 -# Incoming connections will be accepted only from the hosts listed here.
447 -# If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
448 -#
449 -# Mandatory: no
450 -# Default:
451 -# Server=
452 -
453 -Server=127.0.0.1
454 -
455 -### Option: ListenPort
456 -# Agent will listen on this port for connections from the server.
457 -#
458 -# Mandatory: no
459 -# Range: 1024-32767
460 -# Default:
461 -# ListenPort=10050
462 -
463 -### Option: ListenIP
464 -# List of comma delimited IP addresses that the agent should listen on.
465 -# First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
466 -#
467 -# Mandatory: no
468 -# Default:
469 -# ListenIP=0.0.0.0
470 -
471 -### Option: StartAgents
472 -# Number of pre-forked instances of zabbix_agentd that process passive checks.
473 -# If set to 0, disables passive checks and the agent will not listen on any TCP port.
474 -#
475 -# Mandatory: no
476 -# Range: 0-100
477 -# Default:
478 -# StartAgents=3
479 -
480 -##### Active checks related
481 -
482 -### Option: ServerActive
483 -# List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks.
484 -# If port is not specified, default port is used.
485 -# IPv6 addresses must be enclosed in square brackets if port for that host is specified.
486 -# If port is not specified, square brackets for IPv6 addresses are optional.
487 -# If this parameter is not specified, active checks are disabled.
488 -# Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
489 -#
490 -# Mandatory: no
491 -# Default:
492 -# ServerActive=
493 -
494 -ServerActive=127.0.0.1
495 -
496 -### Option: Hostname
497 -# Unique, case sensitive hostname.
498 -# Required for active checks and must match hostname as configured on the server.
499 -# Value is acquired from HostnameItem if undefined.
500 -#
501 -# Mandatory: no
502 -# Default:
503 -# Hostname=
504 -
505 -Hostname=Zabbix server
506 -
507 -### Option: HostnameItem
508 -# Item used for generating Hostname if it is undefined.
509 -# Ignored if Hostname is defined.
510 -#
511 -# Mandatory: no
512 -# Default:
513 -# HostnameItem=system.hostname
514 -
515 -### Option: HostMetadata
516 -# Optional parameter that defines host metadata.
517 -# Host metadata is used at host auto-registration process.
518 -# An agent will issue an error and not start if the value is over limit of 255 characters.
519 -# If not defined, value will be acquired from HostMetadataItem.
520 -#
521 -# Mandatory: no
522 -# Range: 0-255 characters
523 -# Default:
524 -# HostMetadata=
525 -
526 -### Option: HostMetadataItem
527 -# Optional parameter that defines an item used for getting host metadata.
528 -# Host metadata is used at host auto-registration process.
529 -# During an auto-registration request an agent will log a warning message if
530 -# the value returned by specified item is over limit of 255 characters.
531 -# This option is only used when HostMetadata is not defined.
532 -#
533 -# Mandatory: no
534 -# Default:
535 -# HostMetadataItem=
536 -
537 -### Option: RefreshActiveChecks
538 -# How often list of active checks is refreshed, in seconds.
539 -#
540 -# Mandatory: no
541 -# Range: 60-3600
542 -# Default:
543 -# RefreshActiveChecks=120
544 -
545 -### Option: BufferSend
546 -# Do not keep data longer than N seconds in buffer.
547 -#
548 -# Mandatory: no
549 -# Range: 1-3600
550 -# Default:
551 -# BufferSend=5
552 -
553 -### Option: BufferSize
554 -# Maximum number of values in a memory buffer. The agent will send
555 -# all collected data to Zabbix Server or Proxy if the buffer is full.
556 -#
557 -# Mandatory: no
558 -# Range: 2-65535
559 -# Default:
560 -# BufferSize=100
561 -
562 -### Option: MaxLinesPerSecond
563 -# Maximum number of new lines the agent will send per second to Zabbix Server
564 -# or Proxy processing 'log' and 'logrt' active checks.
565 -# The provided value will be overridden by the parameter 'maxlines',
566 -# provided in 'log' or 'logrt' item keys.
567 -#
568 -# Mandatory: no
569 -# Range: 1-1000
570 -# Default:
571 -# MaxLinesPerSecond=100
572 -
573 -############ ADVANCED PARAMETERS #################
574 -
575 -### Option: Alias
576 -# Sets an alias for parameter. It can be useful to substitute long and complex parameter name with a smaller and simpler one.
577 -#
578 -# Mandatory: no
579 -# Range:
580 -# Default:
581 -
582 -### Option: Timeout
583 -# Spend no more than Timeout seconds on processing
584 -#
585 -# Mandatory: no
586 -# Range: 1-30
587 -# Default:
588 -# Timeout=3
589 -
590 -### Option: AllowRoot
591 -# Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent
592 -# will try to switch to user 'zabbix' instead. Has no effect if started under a regular user.
593 -# 0 - do not allow
594 -# 1 - allow
595 -#
596 -# Mandatory: no
597 -# Default:
598 -# AllowRoot=0
599 -
600 -### Option: Include
601 -# You may include individual files or all files in a directory in the configuration file.
602 -# Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
603 -#
604 -# Mandatory: no
605 -# Default:
606 -# Include=
607 -
608 -# Include=/usr/local/etc/zabbix_agentd.userparams.conf
609 -# Include=/usr/local/etc/zabbix_agentd.conf.d/
610 -
611 -####### USER-DEFINED MONITORED PARAMETERS #######
612 -
613 -### Option: UnsafeUserParameters
614 -# Allow all characters to be passed in arguments to user-defined parameters.
615 -# 0 - do not allow
616 -# 1 - allow
617 -#
618 -# Mandatory: no
619 -# Range: 0-1
620 -# Default:
621 -# UnsafeUserParameters=0
622 -
623 -### Option: UserParameter
624 -# User-defined parameter to monitor. There can be several user-defined parameters.
625 -# Format: UserParameter=<key>,<shell command>
626 -# See 'zabbix_agentd' directory for examples.
627 -#
628 -# Mandatory: no
629 -# Default:
630 -# UserParameter=
631 -
632 -####### LOADABLE MODULES #######
633 -
634 -### Option: LoadModulePath
635 -# Full path to location of agent modules.
636 -# Default depends on compilation options.
637 -#
638 -# Mandatory: no
639 -# Default:
640 -# LoadModulePath=${libdir}/modules
641 -
642 -### Option: LoadModule
643 -# Module to load at agent startup. Modules are used to extend functionality of the agent.
644 -# Format: LoadModule=<module.so>
645 -# The modules must be located in directory specified by LoadModulePath.
646 -# It is allowed to include multiple LoadModule parameters.
647 -#
648 -# Mandatory: no
649 -# Default:
650 -# LoadModule=
651
652 diff --git a/net-analyzer/zabbix/files/2.4/zabbix_proxy.conf b/net-analyzer/zabbix/files/2.4/zabbix_proxy.conf
653 deleted file mode 100644
654 index d4bae2e..00000000
655 --- a/net-analyzer/zabbix/files/2.4/zabbix_proxy.conf
656 +++ /dev/null
657 @@ -1,519 +0,0 @@
658 -# This is a configuration file for Zabbix Proxy process
659 -# To get more information about Zabbix,
660 -# visit http://www.zabbix.com
661 -
662 -############ GENERAL PARAMETERS #################
663 -
664 -### Option: ProxyMode
665 -# Proxy operating mode
666 -# 0 - proxy in the active mode
667 -# 1 - proxy in the passive mode
668 -#
669 -# Mandatory: no
670 -# Default:
671 -# ProxyMode=0
672 -
673 -### Option: Server
674 -# IP address (or hostname) of Zabbix server.
675 -# Active proxy will get configuration data from the server.
676 -# For a proxy in the passive mode this parameter will be ignored.
677 -#
678 -# Mandatory: yes (if ProxyMode is set to 0)
679 -# Default:
680 -# Server=
681 -
682 -Server=127.0.0.1
683 -
684 -### Option: ServerPort
685 -# Port of Zabbix trapper on Zabbix server.
686 -# For a proxy in the passive mode this parameter will be ignored.
687 -#
688 -# Mandatory: no
689 -# Range: 1024-32767
690 -# Default:
691 -# ServerPort=10051
692 -
693 -### Option: Hostname
694 -# Unique, case sensitive Proxy name. Make sure the Proxy name is known to the server!
695 -# Value is acquired from HostnameItem if undefined.
696 -#
697 -# Mandatory: no
698 -# Default:
699 -# Hostname=
700 -
701 -Hostname=Zabbix proxy
702 -
703 -### Option: HostnameItem
704 -# Item used for generating Hostname if it is undefined.
705 -# Ignored if Hostname is defined.
706 -#
707 -# Mandatory: no
708 -# Default:
709 -# HostnameItem=system.hostname
710 -
711 -### Option: ListenPort
712 -# Listen port for trapper.
713 -#
714 -# Mandatory: no
715 -# Range: 1024-32767
716 -# Default:
717 -# ListenPort=10051
718 -
719 -### Option: SourceIP
720 -# Source IP address for outgoing connections.
721 -#
722 -# Mandatory: no
723 -# Default:
724 -# SourceIP=
725 -
726 -### Option: LogFile
727 -# Name of log file.
728 -# If not set, syslog is used.
729 -#
730 -# Mandatory: no
731 -# Default:
732 -# LogFile=
733 -
734 -LogFile=/var/log/zabbix/zabbix_proxy.log
735 -
736 -### Option: LogFileSize
737 -# Maximum size of log file in MB.
738 -# 0 - disable automatic log rotation.
739 -#
740 -# Mandatory: no
741 -# Range: 0-1024
742 -# Default:
743 -LogFileSize=128
744 -
745 -### Option: DebugLevel
746 -# Specifies debug level
747 -# 0 - no debug
748 -# 1 - critical information
749 -# 2 - error information
750 -# 3 - warnings
751 -# 4 - for debugging (produces lots of information)
752 -#
753 -# Mandatory: no
754 -# Range: 0-4
755 -# Default:
756 -# DebugLevel=3
757 -
758 -### Option: PidFile
759 -# Name of PID file.
760 -#
761 -# Mandatory: no
762 -# Default:
763 -PidFile=/run/zabbix/zabbix_proxy.pid
764 -
765 -### Option: DBHost
766 -# Database host name.
767 -# If set to localhost, socket is used for MySQL.
768 -# If set to empty string, socket is used for PostgreSQL.
769 -#
770 -# Mandatory: no
771 -# Default:
772 -# DBHost=localhost
773 -
774 -### Option: DBName
775 -# Database name.
776 -# For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
777 -# Warning: do not attempt to use the same database Zabbix server is using.
778 -#
779 -# Mandatory: yes
780 -# Default:
781 -# DBName=
782 -
783 -DBName=zabbix_proxy
784 -
785 -### Option: DBSchema
786 -# Schema name. Used for IBM DB2.
787 -#
788 -# Mandatory: no
789 -# Default:
790 -# DBSchema=
791 -
792 -### Option: DBUser
793 -# Database user. Ignored for SQLite.
794 -#
795 -# Default:
796 -# DBUser=
797 -
798 -DBUser=root
799 -
800 -### Option: DBPassword
801 -# Database password. Ignored for SQLite.
802 -# Comment this line if no password is used.
803 -#
804 -# Mandatory: no
805 -# Default:
806 -# DBPassword=
807 -
808 -### Option: DBSocket
809 -# Path to MySQL socket.
810 -#
811 -# Mandatory: no
812 -# Default:
813 -# DBSocket=/tmp/mysql.sock
814 -
815 -# Option: DBPort
816 -# Database port when not using local socket. Ignored for SQLite.
817 -#
818 -# Mandatory: no
819 -# Default (for MySQL):
820 -# DBPort=3306
821 -
822 -######### PROXY SPECIFIC PARAMETERS #############
823 -
824 -### Option: ProxyLocalBuffer
825 -# Proxy will keep data locally for N hours, even if the data have already been synced with the server.
826 -# This parameter may be used if local data will be used by third party applications.
827 -#
828 -# Mandatory: no
829 -# Range: 0-720
830 -# Default:
831 -# ProxyLocalBuffer=0
832 -
833 -### Option: ProxyOfflineBuffer
834 -# Proxy will keep data for N hours in case if no connectivity with Zabbix Server.
835 -# Older data will be lost.
836 -#
837 -# Mandatory: no
838 -# Range: 1-720
839 -# Default:
840 -# ProxyOfflineBuffer=1
841 -
842 -### Option: HeartbeatFrequency
843 -# Frequency of heartbeat messages in seconds.
844 -# Used for monitoring availability of Proxy on server side.
845 -# 0 - heartbeat messages disabled.
846 -# For a proxy in the passive mode this parameter will be ignored.
847 -#
848 -# Mandatory: no
849 -# Range: 0-3600
850 -# Default:
851 -# HeartbeatFrequency=60
852 -
853 -### Option: ConfigFrequency
854 -# How often proxy retrieves configuration data from Zabbix Server in seconds.
855 -# For a proxy in the passive mode this parameter will be ignored.
856 -#
857 -# Mandatory: no
858 -# Range: 1-3600*24*7
859 -# Default:
860 -# ConfigFrequency=3600
861 -
862 -### Option: DataSenderFrequency
863 -# Proxy will send collected data to the Server every N seconds.
864 -# For a proxy in the passive mode this parameter will be ignored.
865 -#
866 -# Mandatory: no
867 -# Range: 1-3600
868 -# Default:
869 -# DataSenderFrequency=1
870 -
871 -############ ADVANCED PARAMETERS ################
872 -
873 -### Option: StartPollers
874 -# Number of pre-forked instances of pollers.
875 -#
876 -# Mandatory: no
877 -# Range: 0-1000
878 -# Default:
879 -# StartPollers=5
880 -
881 -### Option: StartIPMIPollers
882 -# Number of pre-forked instances of IPMI pollers.
883 -#
884 -# Mandatory: no
885 -# Range: 0-1000
886 -# Default:
887 -# StartIPMIPollers=0
888 -
889 -### Option: StartPollersUnreachable
890 -# Number of pre-forked instances of pollers for unreachable hosts (including IPMI).
891 -#
892 -# Mandatory: no
893 -# Range: 0-1000
894 -# Default:
895 -# StartPollersUnreachable=1
896 -
897 -### Option: StartTrappers
898 -# Number of pre-forked instances of trappers.
899 -# Trappers accept incoming connections from Zabbix sender and active agents.
900 -#
901 -# Mandatory: no
902 -# Range: 0-1000
903 -# Default:
904 -# StartTrappers=5
905 -
906 -### Option: StartPingers
907 -# Number of pre-forked instances of ICMP pingers.
908 -#
909 -# Mandatory: no
910 -# Range: 0-1000
911 -# Default:
912 -# StartPingers=1
913 -
914 -### Option: StartDiscoverers
915 -# Number of pre-forked instances of discoverers.
916 -#
917 -# Mandatory: no
918 -# Range: 0-250
919 -# Default:
920 -# StartDiscoverers=1
921 -
922 -### Option: StartHTTPPollers
923 -# Number of pre-forked instances of HTTP pollers.
924 -#
925 -# Mandatory: no
926 -# Range: 0-1000
927 -# Default:
928 -# StartHTTPPollers=1
929 -
930 -### Option: JavaGateway
931 -# IP address (or hostname) of Zabbix Java gateway.
932 -# Only required if Java pollers are started.
933 -#
934 -# Mandatory: no
935 -# Default:
936 -# JavaGateway=
937 -
938 -### Option: JavaGatewayPort
939 -# Port that Zabbix Java gateway listens on.
940 -#
941 -# Mandatory: no
942 -# Range: 1024-32767
943 -# Default:
944 -# JavaGatewayPort=10052
945 -
946 -### Option: StartJavaPollers
947 -# Number of pre-forked instances of Java pollers.
948 -#
949 -# Mandatory: no
950 -# Range: 0-1000
951 -# Default:
952 -# StartJavaPollers=0
953 -
954 -### Option: StartVMwareCollectors
955 -# Number of pre-forked vmware collector instances.
956 -#
957 -# Mandatory: no
958 -# Range: 0-250
959 -# Default:
960 -# StartVMwareCollectors=0
961 -
962 -### Option: VMwareFrequency
963 -# How often Zabbix will connect to VMware service to obtain a new data.
964 -#
965 -# Mandatory: no
966 -# Range: 10-86400
967 -# Default:
968 -# VMwareFrequency=60
969 -
970 -### Option: VMwareCacheSize
971 -# Size of VMware cache, in bytes.
972 -# Shared memory size for storing VMware data.
973 -# Only used if VMware collectors are started.
974 -#
975 -# Mandatory: no
976 -# Range: 256K-2G
977 -# Default:
978 -# VMwareCacheSize=8M
979 -
980 -### Option: SNMPTrapperFile
981 -# Temporary file used for passing data from SNMP trap daemon to the proxy.
982 -# Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
983 -#
984 -# Mandatory: no
985 -# Default:
986 -# SNMPTrapperFile=/tmp/zabbix_traps.tmp
987 -
988 -### Option: StartSNMPTrapper
989 -# If 1, SNMP trapper process is started.
990 -#
991 -# Mandatory: no
992 -# Range: 0-1
993 -# Default:
994 -# StartSNMPTrapper=0
995 -
996 -### Option: ListenIP
997 -# List of comma delimited IP addresses that the trapper should listen on.
998 -# Trapper will listen on all network interfaces if this parameter is missing.
999 -#
1000 -# Mandatory: no
1001 -# Default:
1002 -# ListenIP=0.0.0.0
1003 -
1004 -### Option: HousekeepingFrequency
1005 -# How often Zabbix will perform housekeeping procedure (in hours).
1006 -# Housekeeping is removing unnecessary information from history, alert, and alarms tables.
1007 -#
1008 -# Mandatory: no
1009 -# Range: 1-24
1010 -# Default:
1011 -# HousekeepingFrequency=1
1012 -
1013 -### Option: CacheSize
1014 -# Size of configuration cache, in bytes.
1015 -# Shared memory size, for storing hosts and items data.
1016 -#
1017 -# Mandatory: no
1018 -# Range: 128K-2G
1019 -# Default:
1020 -# CacheSize=8M
1021 -
1022 -### Option: StartDBSyncers
1023 -# Number of pre-forked instances of DB Syncers
1024 -#
1025 -# Mandatory: no
1026 -# Range: 1-100
1027 -# Default:
1028 -# StartDBSyncers=4
1029 -
1030 -### Option: HistoryCacheSize
1031 -# Size of history cache, in bytes.
1032 -# Shared memory size for storing history data.
1033 -#
1034 -# Mandatory: no
1035 -# Range: 128K-2G
1036 -# Default:
1037 -# HistoryCacheSize=8M
1038 -
1039 -### Option: HistoryTextCacheSize
1040 -# Size of text history cache, in bytes.
1041 -# Shared memory size for storing character, text or log history data.
1042 -#
1043 -# Mandatory: no
1044 -# Range: 128K-2G
1045 -# Default:
1046 -# HistoryTextCacheSize=16M
1047 -
1048 -### Option: Timeout
1049 -# Specifies how long we wait for agent, SNMP device or external check (in seconds).
1050 -#
1051 -# Mandatory: no
1052 -# Range: 1-30
1053 -# Default:
1054 -# Timeout=3
1055 -
1056 -### Option: TrapperTimeout
1057 -# Specifies how many seconds trapper may spend processing new data.
1058 -#
1059 -# Mandatory: no
1060 -# Range: 1-300
1061 -# Default:
1062 -# TrapperTimeout=300
1063 -
1064 -### Option: UnreachablePeriod
1065 -# After how many seconds of unreachability treat a host as unavailable.
1066 -#
1067 -# Mandatory: no
1068 -# Range: 1-3600
1069 -# Default:
1070 -# UnreachablePeriod=45
1071 -
1072 -### Option: UnavailableDelay
1073 -# How often host is checked for availability during the unavailability period, in seconds.
1074 -#
1075 -# Mandatory: no
1076 -# Range: 1-3600
1077 -# Default:
1078 -# UnavailableDelay=60
1079 -
1080 -### Option: UnreachableDelay
1081 -# How often host is checked for availability during the unreachability period, in seconds.
1082 -#
1083 -# Mandatory: no
1084 -# Range: 1-3600
1085 -# Default:
1086 -# UnreachableDelay=15
1087 -
1088 -### Option: ExternalScripts
1089 -# Full path to location of external scripts.
1090 -# Default depends on compilation options.
1091 -#
1092 -# Mandatory: no
1093 -# Default:
1094 -# ExternalScripts=${datadir}/zabbix/externalscripts
1095 -
1096 -### Option: FpingLocation
1097 -# Location of fping.
1098 -# Make sure that fping binary has root ownership and SUID flag set.
1099 -#
1100 -# Mandatory: no
1101 -# Default:
1102 -# FpingLocation=/usr/sbin/fping
1103 -
1104 -### Option: Fping6Location
1105 -# Location of fping6.
1106 -# Make sure that fping6 binary has root ownership and SUID flag set.
1107 -# Make empty if your fping utility is capable to process IPv6 addresses.
1108 -#
1109 -# Mandatory: no
1110 -# Default:
1111 -# Fping6Location=/usr/sbin/fping6
1112 -
1113 -### Option: SSHKeyLocation
1114 -# Location of public and private keys for SSH checks and actions.
1115 -#
1116 -# Mandatory: no
1117 -# Default:
1118 -# SSHKeyLocation=
1119 -
1120 -### Option: LogSlowQueries
1121 -# How long a database query may take before being logged (in milliseconds).
1122 -# Only works if DebugLevel set to 3 or 4.
1123 -# 0 - don't log slow queries.
1124 -#
1125 -# Mandatory: no
1126 -# Range: 1-3600000
1127 -# Default:
1128 -# LogSlowQueries=0
1129 -
1130 -### Option: TmpDir
1131 -# Temporary directory.
1132 -#
1133 -# Mandatory: no
1134 -# Default:
1135 -# TmpDir=/tmp
1136 -
1137 -### Option: AllowRoot
1138 -# Allow the proxy to run as 'root'. If disabled and the proxy is started by 'root', the proxy
1139 -# will try to switch to user 'zabbix' instead. Has no effect if started under a regular user.
1140 -# 0 - do not allow
1141 -# 1 - allow
1142 -#
1143 -# Mandatory: no
1144 -# Default:
1145 -# AllowRoot=0
1146 -
1147 -### Option: Include
1148 -# You may include individual files or all files in a directory in the configuration file.
1149 -# Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
1150 -#
1151 -# Mandatory: no
1152 -# Default:
1153 -# Include=
1154 -
1155 -# Include=/usr/local/etc/zabbix_proxy.general.conf
1156 -# Include=/usr/local/etc/zabbix_proxy.conf.d/
1157 -
1158 -####### LOADABLE MODULES #######
1159 -
1160 -### Option: LoadModulePath
1161 -# Full path to location of proxy modules.
1162 -# Default depends on compilation options.
1163 -#
1164 -# Mandatory: no
1165 -# Default:
1166 -# LoadModulePath=${libdir}/modules
1167 -
1168 -### Option: LoadModule
1169 -# Module to load at proxy startup. Modules are used to extend functionality of the proxy.
1170 -# Format: LoadModule=<module.so>
1171 -# The modules must be located in directory specified by LoadModulePath.
1172 -# It is allowed to include multiple LoadModule parameters.
1173 -#
1174 -# Mandatory: no
1175 -# Default:
1176 -# LoadModule=
1177
1178 diff --git a/net-analyzer/zabbix/files/2.4/zabbix_server.conf b/net-analyzer/zabbix/files/2.4/zabbix_server.conf
1179 deleted file mode 100644
1180 index caba019..00000000
1181 --- a/net-analyzer/zabbix/files/2.4/zabbix_server.conf
1182 +++ /dev/null
1183 @@ -1,546 +0,0 @@
1184 -# This is a configuration file for Zabbix Server process
1185 -# To get more information about Zabbix,
1186 -# visit http://www.zabbix.com
1187 -
1188 -############ GENERAL PARAMETERS #################
1189 -
1190 -### Option: NodeID
1191 -# Unique NodeID in distributed setup.
1192 -# 0 - standalone server
1193 -#
1194 -# Mandatory: no
1195 -# Range: 0-999
1196 -# Default:
1197 -# NodeID=0
1198 -
1199 -### Option: ListenPort
1200 -# Listen port for trapper.
1201 -#
1202 -# Mandatory: no
1203 -# Range: 1024-32767
1204 -# Default:
1205 -# ListenPort=10051
1206 -
1207 -### Option: SourceIP
1208 -# Source IP address for outgoing connections.
1209 -#
1210 -# Mandatory: no
1211 -# Default:
1212 -# SourceIP=
1213 -
1214 -### Option: LogFile
1215 -# Name of log file.
1216 -# If not set, syslog is used.
1217 -#
1218 -# Mandatory: no
1219 -# Default:
1220 -# LogFile=
1221 -
1222 -LogFile=/var/log/zabbix/zabbix_server.log
1223 -
1224 -### Option: LogFileSize
1225 -# Maximum size of log file in MB.
1226 -# 0 - disable automatic log rotation.
1227 -#
1228 -# Mandatory: no
1229 -# Range: 0-1024
1230 -# Default:
1231 -LogFileSize=128
1232 -
1233 -### Option: DebugLevel
1234 -# Specifies debug level
1235 -# 0 - no debug
1236 -# 1 - critical information
1237 -# 2 - error information
1238 -# 3 - warnings
1239 -# 4 - for debugging (produces lots of information)
1240 -#
1241 -# Mandatory: no
1242 -# Range: 0-4
1243 -# Default:
1244 -# DebugLevel=3
1245 -
1246 -### Option: PidFile
1247 -# Name of PID file.
1248 -#
1249 -# Mandatory: no
1250 -# Default:
1251 -PidFile=/run/zabbix/zabbix_server.pid
1252 -
1253 -### Option: DBHost
1254 -# Database host name.
1255 -# If set to localhost, socket is used for MySQL.
1256 -# If set to empty string, socket is used for PostgreSQL.
1257 -#
1258 -# Mandatory: no
1259 -# Default:
1260 -# DBHost=localhost
1261 -
1262 -### Option: DBName
1263 -# Database name.
1264 -# For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
1265 -#
1266 -# Mandatory: yes
1267 -# Default:
1268 -# DBName=
1269 -
1270 -DBName=zabbix
1271 -
1272 -### Option: DBSchema
1273 -# Schema name. Used for IBM DB2.
1274 -#
1275 -# Mandatory: no
1276 -# Default:
1277 -# DBSchema=
1278 -
1279 -### Option: DBUser
1280 -# Database user. Ignored for SQLite.
1281 -#
1282 -# Mandatory: no
1283 -# Default:
1284 -# DBUser=
1285 -
1286 -DBUser=root
1287 -
1288 -### Option: DBPassword
1289 -# Database password. Ignored for SQLite.
1290 -# Comment this line if no password is used.
1291 -#
1292 -# Mandatory: no
1293 -# Default:
1294 -# DBPassword=
1295 -
1296 -### Option: DBSocket
1297 -# Path to MySQL socket.
1298 -#
1299 -# Mandatory: no
1300 -# Default:
1301 -# DBSocket=/tmp/mysql.sock
1302 -
1303 -### Option: DBPort
1304 -# Database port when not using local socket. Ignored for SQLite.
1305 -#
1306 -# Mandatory: no
1307 -# Range: 1024-65535
1308 -# Default (for MySQL):
1309 -# DBPort=3306
1310 -
1311 -############ ADVANCED PARAMETERS ################
1312 -
1313 -### Option: StartPollers
1314 -# Number of pre-forked instances of pollers.
1315 -#
1316 -# Mandatory: no
1317 -# Range: 0-1000
1318 -# Default:
1319 -# StartPollers=5
1320 -
1321 -### Option: StartIPMIPollers
1322 -# Number of pre-forked instances of IPMI pollers.
1323 -#
1324 -# Mandatory: no
1325 -# Range: 0-1000
1326 -# Default:
1327 -# StartIPMIPollers=0
1328 -
1329 -### Option: StartPollersUnreachable
1330 -# Number of pre-forked instances of pollers for unreachable hosts (including IPMI).
1331 -#
1332 -# Mandatory: no
1333 -# Range: 0-1000
1334 -# Default:
1335 -# StartPollersUnreachable=1
1336 -
1337 -### Option: StartTrappers
1338 -# Number of pre-forked instances of trappers.
1339 -# Trappers accept incoming connections from Zabbix sender, active agents, active proxies and child nodes.
1340 -# At least one trapper process must be running to display server availability in the frontend.
1341 -#
1342 -# Mandatory: no
1343 -# Range: 0-1000
1344 -# Default:
1345 -# StartTrappers=5
1346 -
1347 -### Option: StartPingers
1348 -# Number of pre-forked instances of ICMP pingers.
1349 -#
1350 -# Mandatory: no
1351 -# Range: 0-1000
1352 -# Default:
1353 -# StartPingers=1
1354 -
1355 -### Option: StartDiscoverers
1356 -# Number of pre-forked instances of discoverers.
1357 -#
1358 -# Mandatory: no
1359 -# Range: 0-250
1360 -# Default:
1361 -# StartDiscoverers=1
1362 -
1363 -### Option: StartHTTPPollers
1364 -# Number of pre-forked instances of HTTP pollers.
1365 -#
1366 -# Mandatory: no
1367 -# Range: 0-1000
1368 -# Default:
1369 -# StartHTTPPollers=1
1370 -
1371 -### Option: StartTimers
1372 -# Number of pre-forked instances of timers.
1373 -# Timers process time-based trigger functions and maintenance periods.
1374 -# Only the first timer process handles the maintenance periods.
1375 -#
1376 -# Mandatory: no
1377 -# Range: 1-1000
1378 -# Default:
1379 -# StartTimers=1
1380 -
1381 -### Option: JavaGateway
1382 -# IP address (or hostname) of Zabbix Java gateway.
1383 -# Only required if Java pollers are started.
1384 -#
1385 -# Mandatory: no
1386 -# Default:
1387 -# JavaGateway=
1388 -
1389 -### Option: JavaGatewayPort
1390 -# Port that Zabbix Java gateway listens on.
1391 -#
1392 -# Mandatory: no
1393 -# Range: 1024-32767
1394 -# Default:
1395 -# JavaGatewayPort=10052
1396 -
1397 -### Option: StartJavaPollers
1398 -# Number of pre-forked instances of Java pollers.
1399 -#
1400 -# Mandatory: no
1401 -# Range: 0-1000
1402 -# Default:
1403 -# StartJavaPollers=0
1404 -
1405 -### Option: StartVMwareCollectors
1406 -# Number of pre-forked vmware collector instances.
1407 -#
1408 -# Mandatory: no
1409 -# Range: 0-250
1410 -# Default:
1411 -# StartVMwareCollectors=0
1412 -
1413 -### Option: VMwareFrequency
1414 -# How often Zabbix will connect to VMware service to obtain a new data.
1415 -#
1416 -# Mandatory: no
1417 -# Range: 10-86400
1418 -# Default:
1419 -# VMwareFrequency=60
1420 -
1421 -### Option: VMwareCacheSize
1422 -# Size of VMware cache, in bytes.
1423 -# Shared memory size for storing VMware data.
1424 -# Only used if VMware collectors are started.
1425 -#
1426 -# Mandatory: no
1427 -# Range: 256K-2G
1428 -# Default:
1429 -# VMwareCacheSize=8M
1430 -
1431 -### Option: SNMPTrapperFile
1432 -# Temporary file used for passing data from SNMP trap daemon to the server.
1433 -# Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
1434 -#
1435 -# Mandatory: no
1436 -# Default:
1437 -# SNMPTrapperFile=/tmp/zabbix_traps.tmp
1438 -
1439 -### Option: StartSNMPTrapper
1440 -# If 1, SNMP trapper process is started.
1441 -#
1442 -# Mandatory: no
1443 -# Range: 0-1
1444 -# Default:
1445 -# StartSNMPTrapper=0
1446 -
1447 -### Option: ListenIP
1448 -# List of comma delimited IP addresses that the trapper should listen on.
1449 -# Trapper will listen on all network interfaces if this parameter is missing.
1450 -#
1451 -# Mandatory: no
1452 -# Default:
1453 -# ListenIP=0.0.0.0
1454 -
1455 -# ListenIP=127.0.0.1
1456 -
1457 -### Option: HousekeepingFrequency
1458 -# How often Zabbix will perform housekeeping procedure (in hours).
1459 -# Housekeeping is removing unnecessary information from history, alert, and alarms tables.
1460 -#
1461 -# Mandatory: no
1462 -# Range: 1-24
1463 -# Default:
1464 -# HousekeepingFrequency=1
1465 -
1466 -### Option: MaxHousekeeperDelete
1467 -# The table "housekeeper" contains "tasks" for housekeeping procedure in the format:
1468 -# [housekeeperid], [tablename], [field], [value].
1469 -# No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value])
1470 -# will be deleted per one task in one housekeeping cycle.
1471 -# SQLite3 does not use this parameter, deletes all corresponding rows without a limit.
1472 -# If set to 0 then no limit is used at all. In this case you must know what you are doing!
1473 -#
1474 -# Mandatory: no
1475 -# Range: 0-1000000
1476 -# Default:
1477 -# MaxHousekeeperDelete=500
1478 -
1479 -### Option: SenderFrequency
1480 -# How often Zabbix will try to send unsent alerts (in seconds).
1481 -#
1482 -# Mandatory: no
1483 -# Range: 5-3600
1484 -# Default:
1485 -# SenderFrequency=30
1486 -
1487 -### Option: CacheSize
1488 -# Size of configuration cache, in bytes.
1489 -# Shared memory size for storing host, item and trigger data.
1490 -#
1491 -# Mandatory: no
1492 -# Range: 128K-2G
1493 -# Default:
1494 -# CacheSize=8M
1495 -
1496 -### Option: CacheUpdateFrequency
1497 -# How often Zabbix will perform update of configuration cache, in seconds.
1498 -#
1499 -# Mandatory: no
1500 -# Range: 1-3600
1501 -# Default:
1502 -# CacheUpdateFrequency=60
1503 -
1504 -### Option: StartDBSyncers
1505 -# Number of pre-forked instances of DB Syncers
1506 -#
1507 -# Mandatory: no
1508 -# Range: 1-100
1509 -# Default:
1510 -# StartDBSyncers=4
1511 -
1512 -### Option: HistoryCacheSize
1513 -# Size of history cache, in bytes.
1514 -# Shared memory size for storing history data.
1515 -#
1516 -# Mandatory: no
1517 -# Range: 128K-2G
1518 -# Default:
1519 -# HistoryCacheSize=8M
1520 -
1521 -### Option: TrendCacheSize
1522 -# Size of trend cache, in bytes.
1523 -# Shared memory size for storing trends data.
1524 -#
1525 -# Mandatory: no
1526 -# Range: 128K-2G
1527 -# Default:
1528 -# TrendCacheSize=4M
1529 -
1530 -### Option: HistoryTextCacheSize
1531 -# Size of text history cache, in bytes.
1532 -# Shared memory size for storing character, text or log history data.
1533 -#
1534 -# Mandatory: no
1535 -# Range: 128K-2G
1536 -# Default:
1537 -# HistoryTextCacheSize=16M
1538 -
1539 -### Option: ValueCacheSize
1540 -# Size of history value cache, in bytes.
1541 -# Shared memory size for caching item history data requests
1542 -# Setting to 0 disables value cache.
1543 -#
1544 -# Mandatory: no
1545 -# Range: 0,128K-64G
1546 -# Default:
1547 -# ValueCacheSize=8M
1548 -
1549 -### Option: NodeNoEvents
1550 -# If set to '1' local events won't be sent to master node.
1551 -# This won't impact ability of this node to propagate events from its child nodes.
1552 -#
1553 -# Mandatory: no
1554 -# Range: 0-1
1555 -# Default:
1556 -# NodeNoEvents=0
1557 -
1558 -### Option: NodeNoHistory
1559 -# If set to '1' local history won't be sent to master node.
1560 -# This won't impact ability of this node to propagate history from its child nodes.
1561 -#
1562 -# Mandatory: no
1563 -# Range: 0-1
1564 -# Default:
1565 -# NodeNoHistory=0
1566 -
1567 -### Option: Timeout
1568 -# Specifies how long we wait for agent, SNMP device or external check (in seconds).
1569 -#
1570 -# Mandatory: no
1571 -# Range: 1-30
1572 -# Default:
1573 -# Timeout=3
1574 -
1575 -### Option: TrapperTimeout
1576 -# Specifies how many seconds trapper may spend processing new data.
1577 -#
1578 -# Mandatory: no
1579 -# Range: 1-300
1580 -# Default:
1581 -# TrapperTimeout=300
1582 -
1583 -### Option: UnreachablePeriod
1584 -# After how many seconds of unreachability treat a host as unavailable.
1585 -#
1586 -# Mandatory: no
1587 -# Range: 1-3600
1588 -# Default:
1589 -# UnreachablePeriod=45
1590 -
1591 -### Option: UnavailableDelay
1592 -# How often host is checked for availability during the unavailability period, in seconds.
1593 -#
1594 -# Mandatory: no
1595 -# Range: 1-3600
1596 -# Default:
1597 -# UnavailableDelay=60
1598 -
1599 -### Option: UnreachableDelay
1600 -# How often host is checked for availability during the unreachability period, in seconds.
1601 -#
1602 -# Mandatory: no
1603 -# Range: 1-3600
1604 -# Default:
1605 -# UnreachableDelay=15
1606 -
1607 -### Option: AlertScriptsPath
1608 -# Full path to location of custom alert scripts.
1609 -# Default depends on compilation options.
1610 -#
1611 -# Mandatory: no
1612 -# Default:
1613 -AlertScriptsPath=/var/lib/zabbix/alertscripts
1614 -
1615 -### Option: ExternalScripts
1616 -# Full path to location of external scripts.
1617 -# Default depends on compilation options.
1618 -#
1619 -# Mandatory: no
1620 -# Default:
1621 -ExternalScripts=/var/lib/zabbix/externalscripts
1622 -
1623 -### Option: FpingLocation
1624 -# Location of fping.
1625 -# Make sure that fping binary has root ownership and SUID flag set.
1626 -#
1627 -# Mandatory: no
1628 -# Default:
1629 -# FpingLocation=/usr/sbin/fping
1630 -
1631 -### Option: Fping6Location
1632 -# Location of fping6.
1633 -# Make sure that fping6 binary has root ownership and SUID flag set.
1634 -# Make empty if your fping utility is capable to process IPv6 addresses.
1635 -#
1636 -# Mandatory: no
1637 -# Default:
1638 -# Fping6Location=/usr/sbin/fping6
1639 -
1640 -### Option: SSHKeyLocation
1641 -# Location of public and private keys for SSH checks and actions.
1642 -#
1643 -# Mandatory: no
1644 -# Default:
1645 -# SSHKeyLocation=
1646 -
1647 -### Option: LogSlowQueries
1648 -# How long a database query may take before being logged (in milliseconds).
1649 -# Only works if DebugLevel set to 3 or 4.
1650 -# 0 - don't log slow queries.
1651 -#
1652 -# Mandatory: no
1653 -# Range: 1-3600000
1654 -# Default:
1655 -# LogSlowQueries=0
1656 -
1657 -### Option: TmpDir
1658 -# Temporary directory.
1659 -#
1660 -# Mandatory: no
1661 -# Default:
1662 -# TmpDir=/tmp
1663 -
1664 -### Option: StartProxyPollers
1665 -# Number of pre-forked instances of pollers for passive proxies.
1666 -#
1667 -# Mandatory: no
1668 -# Range: 0-250
1669 -# Default:
1670 -# StartProxyPollers=1
1671 -
1672 -### Option: ProxyConfigFrequency
1673 -# How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.
1674 -# This parameter is used only for proxies in the passive mode.
1675 -#
1676 -# Mandatory: no
1677 -# Range: 1-3600*24*7
1678 -# Default:
1679 -# ProxyConfigFrequency=3600
1680 -
1681 -### Option: ProxyDataFrequency
1682 -# How often Zabbix Server requests history data from a Zabbix Proxy in seconds.
1683 -# This parameter is used only for proxies in the passive mode.
1684 -#
1685 -# Mandatory: no
1686 -# Range: 1-3600
1687 -# Default:
1688 -# ProxyDataFrequency=1
1689 -
1690 -### Option: AllowRoot
1691 -# Allow the server to run as 'root'. If disabled and the server is started by 'root', the server
1692 -# will try to switch to user 'zabbix' instead. Has no effect if started under a regular user.
1693 -# 0 - do not allow
1694 -# 1 - allow
1695 -#
1696 -# Mandatory: no
1697 -# Default:
1698 -# AllowRoot=0
1699 -
1700 -### Option: Include
1701 -# You may include individual files or all files in a directory in the configuration file.
1702 -# Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
1703 -#
1704 -# Mandatory: no
1705 -# Default:
1706 -# Include=
1707 -
1708 -# Include=/usr/local/etc/zabbix_server.general.conf
1709 -#Include=/etc/zabbix/zabbix_server.conf.d/
1710 -
1711 -####### LOADABLE MODULES #######
1712 -
1713 -### Option: LoadModulePath
1714 -# Full path to location of server modules.
1715 -# Default depends on compilation options.
1716 -#
1717 -# Mandatory: no
1718 -# Default:
1719 -# LoadModulePath=${libdir}/modules
1720 -
1721 -### Option: LoadModule
1722 -# Module to load at server startup. Modules are used to extend functionality of the server.
1723 -# Format: LoadModule=<module.so>
1724 -# The modules must be located in directory specified by LoadModulePath.
1725 -# It is allowed to include multiple LoadModule parameters.
1726 -#
1727 -# Mandatory: no
1728 -# Default:
1729 -# LoadModule=
1730
1731 diff --git a/net-analyzer/zabbix/zabbix-2.4.5.ebuild b/net-analyzer/zabbix/zabbix-2.4.5.ebuild
1732 deleted file mode 100644
1733 index eec6b6b..00000000
1734 --- a/net-analyzer/zabbix/zabbix-2.4.5.ebuild
1735 +++ /dev/null
1736 @@ -1,362 +0,0 @@
1737 -# Copyright 1999-2016 Gentoo Foundation
1738 -# Distributed under the terms of the GNU General Public License v2
1739 -# $Id$
1740 -
1741 -EAPI="5"
1742 -
1743 -# needed to make webapp-config dep optional
1744 -WEBAPP_OPTIONAL="yes"
1745 -inherit flag-o-matic webapp autotools java-pkg-opt-2 user systemd toolchain-funcs
1746 -
1747 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1748 -HOMEPAGE="http://www.zabbix.com/"
1749 -MY_P=${P/_/}
1750 -MY_PV=${PV/_/}
1751 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1752 -LICENSE="GPL-2"
1753 -SLOT="0"
1754 -WEBAPP_MANUAL_SLOT="yes"
1755 -KEYWORDS="~amd64 ~x86"
1756 -IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
1757 -
1758 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1759 - ldap? (
1760 - net-nds/openldap
1761 - =dev-libs/cyrus-sasl-2*
1762 - net-libs/gnutls
1763 - )
1764 - mysql? ( >=virtual/mysql-5.0.3 )
1765 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1766 - postgres? ( dev-db/postgresql:* )
1767 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1768 - xmpp? ( dev-libs/iksemel )
1769 - libxml2? ( dev-libs/libxml2 )
1770 - curl? ( net-misc/curl )
1771 - openipmi? ( sys-libs/openipmi )
1772 - ssh? ( net-libs/libssh2 )
1773 - java? ( virtual/jdk:* )
1774 - odbc? ( dev-db/unixODBC )"
1775 -
1776 -RDEPEND="${COMMON_DEPEND}
1777 - proxy? ( <=net-analyzer/fping-2.9 )
1778 - server? ( <=net-analyzer/fping-2.9
1779 - app-admin/webapp-config )
1780 - java? (
1781 - >=virtual/jre-1.6
1782 - dev-java/slf4j-api
1783 - )
1784 - frontend? (
1785 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1786 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1787 - media-libs/gd[png]
1788 - app-admin/webapp-config )"
1789 -DEPEND="${COMMON_DEPEND}
1790 - virtual/pkgconfig"
1791 -
1792 -S=${WORKDIR}/${MY_P}
1793 -
1794 -ZABBIXJAVA_BASE="opt/zabbix_java"
1795 -
1796 -java_prepare() {
1797 - cd "${S}/src/zabbix_java/lib"
1798 - rm -v *.jar || die
1799 -
1800 - java-pkg_jar-from slf4j-api
1801 -}
1802 -
1803 -src_prepare() {
1804 - eautoreconf
1805 -}
1806 -
1807 -pkg_setup() {
1808 - if use server || use proxy ; then
1809 - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype
1810 - declare -i dbnum=0
1811 - for dbtype in ${dbtypes}; do
1812 - use ${dbtype} && let dbnum++
1813 - done
1814 - if [ ${dbnum} -gt 1 ]; then
1815 - eerror
1816 - eerror "You can't use more than one database type in Zabbix."
1817 - eerror "Select exactly one database type out of these: ${dbtypes}"
1818 - eerror
1819 - die "Multiple database types selected."
1820 - elif [ ${dbnum} -lt 1 ]; then
1821 - eerror
1822 - eerror "Select exactly one database type out of these: ${dbtypes}"
1823 - eerror
1824 - die "No database type selected."
1825 - fi
1826 - if use oracle; then
1827 - if [ -z "${ORACLE_HOME}" ]; then
1828 - eerror
1829 - eerror "The environment variable ORACLE_HOME must be set"
1830 - eerror "and point to the correct location."
1831 - eerror "It looks like you don't have Oracle installed."
1832 - eerror
1833 - die "Environment variable ORACLE_HOME is not set"
1834 - fi
1835 - if has_version 'dev-db/oracle-instantclient-basic'; then
1836 - ewarn
1837 - ewarn "Please ensure you have a full install of the Oracle client."
1838 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1839 - ewarn
1840 - fi
1841 - fi
1842 - fi
1843 -
1844 - if use frontend; then
1845 - webapp_pkg_setup
1846 - fi
1847 -
1848 - enewgroup zabbix
1849 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1850 -}
1851 -
1852 -pkg_postinst() {
1853 - if use server || use proxy ; then
1854 - elog
1855 - elog "You may need to configure your database for Zabbix,"
1856 - elog "if you have not already done so. "
1857 - elog
1858 -
1859 - zabbix_homedir=$(egethome zabbix)
1860 - if [ -n "${zabbix_homedir}" ] && \
1861 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1862 - ewarn
1863 - ewarn "The user 'zabbix' should have his homedir changed"
1864 - ewarn "to /var/lib/zabbix/home if you want to use"
1865 - ewarn "custom alert scripts."
1866 - ewarn
1867 - ewarn "A real homedir might be needed for configfiles"
1868 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1869 - ewarn "using sendxmpp for Jabber alerts)."
1870 - ewarn
1871 - ewarn "To change the homedir use:"
1872 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1873 - ewarn
1874 - fi
1875 - fi
1876 -
1877 - if use server; then
1878 - elog
1879 - elog "For distributed monitoring you have to run:"
1880 - elog
1881 - elog "zabbix_server -n <nodeid>"
1882 - elog
1883 - elog "This will convert database data for use with Node ID"
1884 - elog "and also adds a local node."
1885 - elog
1886 - fi
1887 -
1888 - elog "--"
1889 - elog
1890 - elog "You may need to add these lines to /etc/services:"
1891 - elog
1892 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1893 - elog "zabbix-agent 10050/udp Zabbix Agent"
1894 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1895 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1896 - elog
1897 -
1898 - elog "Feel free to download or contribute gentoo specific zabbix templates"
1899 - elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
1900 -
1901 - # repeat fowners/fperms functionality from src_install()
1902 - # here to catch wrong permissions on existing files in
1903 - # the live filesystem (yeah, that sucks).
1904 - chown -R zabbix:zabbix \
1905 - "${ROOT}"/etc/zabbix \
1906 - "${ROOT}"/var/lib/zabbix \
1907 - "${ROOT}"/var/lib/zabbix/home \
1908 - "${ROOT}"/var/lib/zabbix/scripts \
1909 - "${ROOT}"/var/log/zabbix
1910 - chmod 0750 \
1911 - "${ROOT}"/etc/zabbix \
1912 - "${ROOT}"/var/lib/zabbix \
1913 - "${ROOT}"/var/lib/zabbix/home \
1914 - "${ROOT}"/var/lib/zabbix/scripts \
1915 - "${ROOT}"/var/log/zabbix
1916 -
1917 - chmod 0640 \
1918 - "${ROOT}"/etc/zabbix/zabbix_*
1919 -
1920 - if use server || use proxy ; then
1921 - # check for fping
1922 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1923 - case "${fping_perms}" in
1924 - 4[157][157][157])
1925 - ;;
1926 - *)
1927 - ewarn
1928 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1929 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1930 - ewarn "by everyone. Run the following command to fix it:"
1931 - ewarn
1932 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1933 - ewarn
1934 - ewarn "Please be aware that this might impose a security risk,"
1935 - ewarn "depending on the code quality of fping."
1936 - ewarn
1937 - ;;
1938 - esac
1939 - fi
1940 -}
1941 -
1942 -src_configure() {
1943 -
1944 - econf \
1945 - $(use_enable server) \
1946 - $(use_enable proxy) \
1947 - $(use_enable agent) \
1948 - $(use_enable ipv6) \
1949 - $(use_enable static) \
1950 - $(use_enable java) \
1951 - $(use_with ldap) \
1952 - $(use_with snmp net-snmp) \
1953 - $(use_with mysql) \
1954 - $(use_with postgres postgresql) \
1955 - $(use_with oracle) \
1956 - $(use_with sqlite sqlite3) \
1957 - $(use_with xmpp jabber) \
1958 - $(use_with curl libcurl) \
1959 - $(use_with openipmi openipmi) \
1960 - $(use_with ssh ssh2) \
1961 - $(use_with libxml2) \
1962 - $(use_with odbc unixodbc) \
1963 - || die "econf failed"
1964 -}
1965 -
1966 -src_install() {
1967 - dodir \
1968 - /etc/zabbix \
1969 - /var/lib/zabbix \
1970 - /var/lib/zabbix/home \
1971 - /var/lib/zabbix/scripts \
1972 - /var/lib/zabbix/alertscripts \
1973 - /var/lib/zabbix/externalscripts \
1974 - /var/log/zabbix
1975 -
1976 - keepdir \
1977 - /etc/zabbix \
1978 - /var/lib/zabbix \
1979 - /var/lib/zabbix/home \
1980 - /var/lib/zabbix/scripts \
1981 - /var/lib/zabbix/alertscripts \
1982 - /var/lib/zabbix/externalscripts \
1983 - /var/log/zabbix
1984 -
1985 - if use server; then
1986 - insinto /etc/zabbix
1987 - doins "${FILESDIR}/2.4"/zabbix_server.conf
1988 - doinitd "${FILESDIR}/2.4"/init.d/zabbix-server
1989 - dosbin src/zabbix_server/zabbix_server
1990 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1991 - fperms 0640 /etc/zabbix/zabbix_server.conf
1992 - dodir /usr/share/zabbix
1993 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1994 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1995 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1996 - fi
1997 -
1998 - if use proxy; then
1999 - doinitd \
2000 - "${FILESDIR}/2.4"/init.d/zabbix-proxy
2001 - dosbin \
2002 - src/zabbix_proxy/zabbix_proxy
2003 - insinto /etc/zabbix
2004 - doins \
2005 - "${FILESDIR}/2.4"/zabbix_proxy.conf
2006 - dodir /usr/share/zabbix
2007 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2008 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2009 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2010 - fi
2011 -
2012 - if use agent; then
2013 - insinto /etc/zabbix
2014 - doins \
2015 - "${FILESDIR}/2.4"/zabbix_agent.conf \
2016 - "${FILESDIR}/2.4"/zabbix_agentd.conf
2017 - doinitd "${FILESDIR}/2.4"/init.d/zabbix-agentd
2018 - dosbin \
2019 - src/zabbix_agent/zabbix_agent \
2020 - src/zabbix_agent/zabbix_agentd
2021 - dobin \
2022 - src/zabbix_sender/zabbix_sender \
2023 - src/zabbix_get/zabbix_get
2024 - fowners zabbix:zabbix \
2025 - /etc/zabbix/zabbix_agent.conf \
2026 - /etc/zabbix/zabbix_agentd.conf
2027 - fperms 0640 \
2028 - /etc/zabbix/zabbix_agent.conf \
2029 - /etc/zabbix/zabbix_agentd.conf
2030 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2031 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2032 - fi
2033 -
2034 - fowners zabbix:zabbix \
2035 - /etc/zabbix \
2036 - /var/lib/zabbix \
2037 - /var/lib/zabbix/home \
2038 - /var/lib/zabbix/scripts \
2039 - /var/lib/zabbix/alertscripts \
2040 - /var/lib/zabbix/externalscripts \
2041 - /var/log/zabbix
2042 - fperms 0750 \
2043 - /etc/zabbix \
2044 - /var/lib/zabbix \
2045 - /var/lib/zabbix/home \
2046 - /var/lib/zabbix/scripts \
2047 - /var/lib/zabbix/alertscripts \
2048 - /var/lib/zabbix/externalscripts \
2049 - /var/log/zabbix
2050 -
2051 - dodoc README INSTALL NEWS ChangeLog \
2052 - conf/zabbix_agent.conf \
2053 - conf/zabbix_agentd.conf \
2054 - conf/zabbix_proxy.conf \
2055 - conf/zabbix_agentd/userparameter_examples.conf \
2056 - conf/zabbix_agentd/userparameter_mysql.conf \
2057 - conf/zabbix_server.conf
2058 -
2059 - if use frontend; then
2060 - webapp_src_preinst
2061 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2062 - webapp_configfile \
2063 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2064 - "${MY_HTDOCSDIR}"/include/config.inc.php
2065 - webapp_src_install
2066 - fi
2067 -
2068 - if use java; then
2069 - dodir \
2070 - /${ZABBIXJAVA_BASE} \
2071 - /${ZABBIXJAVA_BASE}/bin \
2072 - /${ZABBIXJAVA_BASE}/lib
2073 - keepdir /${ZABBIXJAVA_BASE}
2074 - exeinto /${ZABBIXJAVA_BASE}/bin
2075 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2076 - exeinto /${ZABBIXJAVA_BASE}/lib
2077 - doexe \
2078 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2079 - src/zabbix_java/lib/logback-console.xml \
2080 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2081 - src/zabbix_java/lib/logback.xml \
2082 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2083 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2084 - exeinto /${ZABBIXJAVA_BASE}/
2085 - doexe \
2086 - src/zabbix_java/settings.sh \
2087 - src/zabbix_java/startup.sh \
2088 - src/zabbix_java/shutdown.sh
2089 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2090 - fi
2091 -
2092 -}
2093 -
2094 -src_compile() {
2095 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2096 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2097 - fi
2098 -}
2099
2100 diff --git a/net-analyzer/zabbix/zabbix-2.4.7.ebuild b/net-analyzer/zabbix/zabbix-2.4.7.ebuild
2101 deleted file mode 100644
2102 index eec6b6b..00000000
2103 --- a/net-analyzer/zabbix/zabbix-2.4.7.ebuild
2104 +++ /dev/null
2105 @@ -1,362 +0,0 @@
2106 -# Copyright 1999-2016 Gentoo Foundation
2107 -# Distributed under the terms of the GNU General Public License v2
2108 -# $Id$
2109 -
2110 -EAPI="5"
2111 -
2112 -# needed to make webapp-config dep optional
2113 -WEBAPP_OPTIONAL="yes"
2114 -inherit flag-o-matic webapp autotools java-pkg-opt-2 user systemd toolchain-funcs
2115 -
2116 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2117 -HOMEPAGE="http://www.zabbix.com/"
2118 -MY_P=${P/_/}
2119 -MY_PV=${PV/_/}
2120 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2121 -LICENSE="GPL-2"
2122 -SLOT="0"
2123 -WEBAPP_MANUAL_SLOT="yes"
2124 -KEYWORDS="~amd64 ~x86"
2125 -IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
2126 -
2127 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2128 - ldap? (
2129 - net-nds/openldap
2130 - =dev-libs/cyrus-sasl-2*
2131 - net-libs/gnutls
2132 - )
2133 - mysql? ( >=virtual/mysql-5.0.3 )
2134 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2135 - postgres? ( dev-db/postgresql:* )
2136 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2137 - xmpp? ( dev-libs/iksemel )
2138 - libxml2? ( dev-libs/libxml2 )
2139 - curl? ( net-misc/curl )
2140 - openipmi? ( sys-libs/openipmi )
2141 - ssh? ( net-libs/libssh2 )
2142 - java? ( virtual/jdk:* )
2143 - odbc? ( dev-db/unixODBC )"
2144 -
2145 -RDEPEND="${COMMON_DEPEND}
2146 - proxy? ( <=net-analyzer/fping-2.9 )
2147 - server? ( <=net-analyzer/fping-2.9
2148 - app-admin/webapp-config )
2149 - java? (
2150 - >=virtual/jre-1.6
2151 - dev-java/slf4j-api
2152 - )
2153 - frontend? (
2154 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2155 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2156 - media-libs/gd[png]
2157 - app-admin/webapp-config )"
2158 -DEPEND="${COMMON_DEPEND}
2159 - virtual/pkgconfig"
2160 -
2161 -S=${WORKDIR}/${MY_P}
2162 -
2163 -ZABBIXJAVA_BASE="opt/zabbix_java"
2164 -
2165 -java_prepare() {
2166 - cd "${S}/src/zabbix_java/lib"
2167 - rm -v *.jar || die
2168 -
2169 - java-pkg_jar-from slf4j-api
2170 -}
2171 -
2172 -src_prepare() {
2173 - eautoreconf
2174 -}
2175 -
2176 -pkg_setup() {
2177 - if use server || use proxy ; then
2178 - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype
2179 - declare -i dbnum=0
2180 - for dbtype in ${dbtypes}; do
2181 - use ${dbtype} && let dbnum++
2182 - done
2183 - if [ ${dbnum} -gt 1 ]; then
2184 - eerror
2185 - eerror "You can't use more than one database type in Zabbix."
2186 - eerror "Select exactly one database type out of these: ${dbtypes}"
2187 - eerror
2188 - die "Multiple database types selected."
2189 - elif [ ${dbnum} -lt 1 ]; then
2190 - eerror
2191 - eerror "Select exactly one database type out of these: ${dbtypes}"
2192 - eerror
2193 - die "No database type selected."
2194 - fi
2195 - if use oracle; then
2196 - if [ -z "${ORACLE_HOME}" ]; then
2197 - eerror
2198 - eerror "The environment variable ORACLE_HOME must be set"
2199 - eerror "and point to the correct location."
2200 - eerror "It looks like you don't have Oracle installed."
2201 - eerror
2202 - die "Environment variable ORACLE_HOME is not set"
2203 - fi
2204 - if has_version 'dev-db/oracle-instantclient-basic'; then
2205 - ewarn
2206 - ewarn "Please ensure you have a full install of the Oracle client."
2207 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2208 - ewarn
2209 - fi
2210 - fi
2211 - fi
2212 -
2213 - if use frontend; then
2214 - webapp_pkg_setup
2215 - fi
2216 -
2217 - enewgroup zabbix
2218 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2219 -}
2220 -
2221 -pkg_postinst() {
2222 - if use server || use proxy ; then
2223 - elog
2224 - elog "You may need to configure your database for Zabbix,"
2225 - elog "if you have not already done so. "
2226 - elog
2227 -
2228 - zabbix_homedir=$(egethome zabbix)
2229 - if [ -n "${zabbix_homedir}" ] && \
2230 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2231 - ewarn
2232 - ewarn "The user 'zabbix' should have his homedir changed"
2233 - ewarn "to /var/lib/zabbix/home if you want to use"
2234 - ewarn "custom alert scripts."
2235 - ewarn
2236 - ewarn "A real homedir might be needed for configfiles"
2237 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2238 - ewarn "using sendxmpp for Jabber alerts)."
2239 - ewarn
2240 - ewarn "To change the homedir use:"
2241 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2242 - ewarn
2243 - fi
2244 - fi
2245 -
2246 - if use server; then
2247 - elog
2248 - elog "For distributed monitoring you have to run:"
2249 - elog
2250 - elog "zabbix_server -n <nodeid>"
2251 - elog
2252 - elog "This will convert database data for use with Node ID"
2253 - elog "and also adds a local node."
2254 - elog
2255 - fi
2256 -
2257 - elog "--"
2258 - elog
2259 - elog "You may need to add these lines to /etc/services:"
2260 - elog
2261 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2262 - elog "zabbix-agent 10050/udp Zabbix Agent"
2263 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2264 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2265 - elog
2266 -
2267 - elog "Feel free to download or contribute gentoo specific zabbix templates"
2268 - elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
2269 -
2270 - # repeat fowners/fperms functionality from src_install()
2271 - # here to catch wrong permissions on existing files in
2272 - # the live filesystem (yeah, that sucks).
2273 - chown -R zabbix:zabbix \
2274 - "${ROOT}"/etc/zabbix \
2275 - "${ROOT}"/var/lib/zabbix \
2276 - "${ROOT}"/var/lib/zabbix/home \
2277 - "${ROOT}"/var/lib/zabbix/scripts \
2278 - "${ROOT}"/var/log/zabbix
2279 - chmod 0750 \
2280 - "${ROOT}"/etc/zabbix \
2281 - "${ROOT}"/var/lib/zabbix \
2282 - "${ROOT}"/var/lib/zabbix/home \
2283 - "${ROOT}"/var/lib/zabbix/scripts \
2284 - "${ROOT}"/var/log/zabbix
2285 -
2286 - chmod 0640 \
2287 - "${ROOT}"/etc/zabbix/zabbix_*
2288 -
2289 - if use server || use proxy ; then
2290 - # check for fping
2291 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2292 - case "${fping_perms}" in
2293 - 4[157][157][157])
2294 - ;;
2295 - *)
2296 - ewarn
2297 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2298 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2299 - ewarn "by everyone. Run the following command to fix it:"
2300 - ewarn
2301 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2302 - ewarn
2303 - ewarn "Please be aware that this might impose a security risk,"
2304 - ewarn "depending on the code quality of fping."
2305 - ewarn
2306 - ;;
2307 - esac
2308 - fi
2309 -}
2310 -
2311 -src_configure() {
2312 -
2313 - econf \
2314 - $(use_enable server) \
2315 - $(use_enable proxy) \
2316 - $(use_enable agent) \
2317 - $(use_enable ipv6) \
2318 - $(use_enable static) \
2319 - $(use_enable java) \
2320 - $(use_with ldap) \
2321 - $(use_with snmp net-snmp) \
2322 - $(use_with mysql) \
2323 - $(use_with postgres postgresql) \
2324 - $(use_with oracle) \
2325 - $(use_with sqlite sqlite3) \
2326 - $(use_with xmpp jabber) \
2327 - $(use_with curl libcurl) \
2328 - $(use_with openipmi openipmi) \
2329 - $(use_with ssh ssh2) \
2330 - $(use_with libxml2) \
2331 - $(use_with odbc unixodbc) \
2332 - || die "econf failed"
2333 -}
2334 -
2335 -src_install() {
2336 - dodir \
2337 - /etc/zabbix \
2338 - /var/lib/zabbix \
2339 - /var/lib/zabbix/home \
2340 - /var/lib/zabbix/scripts \
2341 - /var/lib/zabbix/alertscripts \
2342 - /var/lib/zabbix/externalscripts \
2343 - /var/log/zabbix
2344 -
2345 - keepdir \
2346 - /etc/zabbix \
2347 - /var/lib/zabbix \
2348 - /var/lib/zabbix/home \
2349 - /var/lib/zabbix/scripts \
2350 - /var/lib/zabbix/alertscripts \
2351 - /var/lib/zabbix/externalscripts \
2352 - /var/log/zabbix
2353 -
2354 - if use server; then
2355 - insinto /etc/zabbix
2356 - doins "${FILESDIR}/2.4"/zabbix_server.conf
2357 - doinitd "${FILESDIR}/2.4"/init.d/zabbix-server
2358 - dosbin src/zabbix_server/zabbix_server
2359 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2360 - fperms 0640 /etc/zabbix/zabbix_server.conf
2361 - dodir /usr/share/zabbix
2362 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2363 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2364 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2365 - fi
2366 -
2367 - if use proxy; then
2368 - doinitd \
2369 - "${FILESDIR}/2.4"/init.d/zabbix-proxy
2370 - dosbin \
2371 - src/zabbix_proxy/zabbix_proxy
2372 - insinto /etc/zabbix
2373 - doins \
2374 - "${FILESDIR}/2.4"/zabbix_proxy.conf
2375 - dodir /usr/share/zabbix
2376 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2377 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2378 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2379 - fi
2380 -
2381 - if use agent; then
2382 - insinto /etc/zabbix
2383 - doins \
2384 - "${FILESDIR}/2.4"/zabbix_agent.conf \
2385 - "${FILESDIR}/2.4"/zabbix_agentd.conf
2386 - doinitd "${FILESDIR}/2.4"/init.d/zabbix-agentd
2387 - dosbin \
2388 - src/zabbix_agent/zabbix_agent \
2389 - src/zabbix_agent/zabbix_agentd
2390 - dobin \
2391 - src/zabbix_sender/zabbix_sender \
2392 - src/zabbix_get/zabbix_get
2393 - fowners zabbix:zabbix \
2394 - /etc/zabbix/zabbix_agent.conf \
2395 - /etc/zabbix/zabbix_agentd.conf
2396 - fperms 0640 \
2397 - /etc/zabbix/zabbix_agent.conf \
2398 - /etc/zabbix/zabbix_agentd.conf
2399 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2400 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2401 - fi
2402 -
2403 - fowners zabbix:zabbix \
2404 - /etc/zabbix \
2405 - /var/lib/zabbix \
2406 - /var/lib/zabbix/home \
2407 - /var/lib/zabbix/scripts \
2408 - /var/lib/zabbix/alertscripts \
2409 - /var/lib/zabbix/externalscripts \
2410 - /var/log/zabbix
2411 - fperms 0750 \
2412 - /etc/zabbix \
2413 - /var/lib/zabbix \
2414 - /var/lib/zabbix/home \
2415 - /var/lib/zabbix/scripts \
2416 - /var/lib/zabbix/alertscripts \
2417 - /var/lib/zabbix/externalscripts \
2418 - /var/log/zabbix
2419 -
2420 - dodoc README INSTALL NEWS ChangeLog \
2421 - conf/zabbix_agent.conf \
2422 - conf/zabbix_agentd.conf \
2423 - conf/zabbix_proxy.conf \
2424 - conf/zabbix_agentd/userparameter_examples.conf \
2425 - conf/zabbix_agentd/userparameter_mysql.conf \
2426 - conf/zabbix_server.conf
2427 -
2428 - if use frontend; then
2429 - webapp_src_preinst
2430 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2431 - webapp_configfile \
2432 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2433 - "${MY_HTDOCSDIR}"/include/config.inc.php
2434 - webapp_src_install
2435 - fi
2436 -
2437 - if use java; then
2438 - dodir \
2439 - /${ZABBIXJAVA_BASE} \
2440 - /${ZABBIXJAVA_BASE}/bin \
2441 - /${ZABBIXJAVA_BASE}/lib
2442 - keepdir /${ZABBIXJAVA_BASE}
2443 - exeinto /${ZABBIXJAVA_BASE}/bin
2444 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2445 - exeinto /${ZABBIXJAVA_BASE}/lib
2446 - doexe \
2447 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2448 - src/zabbix_java/lib/logback-console.xml \
2449 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2450 - src/zabbix_java/lib/logback.xml \
2451 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2452 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2453 - exeinto /${ZABBIXJAVA_BASE}/
2454 - doexe \
2455 - src/zabbix_java/settings.sh \
2456 - src/zabbix_java/startup.sh \
2457 - src/zabbix_java/shutdown.sh
2458 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2459 - fi
2460 -
2461 -}
2462 -
2463 -src_compile() {
2464 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2465 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2466 - fi
2467 -}
2468
2469 diff --git a/net-analyzer/zabbix/zabbix-2.4.8.ebuild b/net-analyzer/zabbix/zabbix-2.4.8.ebuild
2470 deleted file mode 100644
2471 index 85599b2..00000000
2472 --- a/net-analyzer/zabbix/zabbix-2.4.8.ebuild
2473 +++ /dev/null
2474 @@ -1,342 +0,0 @@
2475 -# Copyright 1999-2016 Gentoo Foundation
2476 -# Distributed under the terms of the GNU General Public License v2
2477 -# $Id$
2478 -
2479 -EAPI="6"
2480 -
2481 -# needed to make webapp-config dep optional
2482 -WEBAPP_OPTIONAL="yes"
2483 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2484 -
2485 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2486 -HOMEPAGE="http://www.zabbix.com/"
2487 -MY_P=${P/_/}
2488 -MY_PV=${PV/_/}
2489 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2490 -LICENSE="GPL-2"
2491 -SLOT="0"
2492 -WEBAPP_MANUAL_SLOT="yes"
2493 -KEYWORDS="~amd64 ~x86"
2494 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
2495 -REQUIRED_USE="|| ( agent frontend proxy server )
2496 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2497 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2498 - static? ( !oracle !snmp )"
2499 -
2500 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2501 - ldap? (
2502 - net-nds/openldap
2503 - =dev-libs/cyrus-sasl-2*
2504 - net-libs/gnutls
2505 - )
2506 - mysql? ( >=virtual/mysql-5.0.3 )
2507 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2508 - postgres? ( dev-db/postgresql:* )
2509 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2510 - xmpp? ( dev-libs/iksemel )
2511 - libxml2? ( dev-libs/libxml2 )
2512 - curl? ( net-misc/curl )
2513 - openipmi? ( sys-libs/openipmi )
2514 - ssh? ( net-libs/libssh2 )
2515 - java? ( virtual/jdk:* )
2516 - odbc? ( dev-db/unixODBC )"
2517 -
2518 -RDEPEND="${COMMON_DEPEND}
2519 - proxy? ( net-analyzer/fping )
2520 - server? ( net-analyzer/fping
2521 - app-admin/webapp-config )
2522 - java? (
2523 - >=virtual/jre-1.4
2524 - dev-java/slf4j-api
2525 - )
2526 - frontend? (
2527 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2528 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2529 - mysql? ( dev-lang/php[mysqli] )
2530 - odbc? ( dev-lang/php[odbc] )
2531 - oracle? ( dev-lang/php[oci8-instant-client] )
2532 - postgres? ( dev-lang/php[postgres] )
2533 - sqlite? ( dev-lang/php[sqlite] )
2534 - media-libs/gd[png]
2535 - app-admin/webapp-config )"
2536 -DEPEND="${COMMON_DEPEND}
2537 - static? (
2538 - ldap? (
2539 - net-nds/openldap[static-libs]
2540 - =dev-libs/cyrus-sasl-2*[static-libs]
2541 - net-libs/gnutls[static-libs]
2542 - )
2543 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
2544 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2545 - postgres? ( dev-db/postgresql:*[static-libs] )
2546 - libxml2? ( dev-libs/libxml2[static-libs] )
2547 - curl? ( net-misc/curl[static-libs] )
2548 - ssh? ( net-libs/libssh2[static-libs] )
2549 - odbc? ( dev-db/unixODBC[static-libs] )
2550 - )
2551 - virtual/pkgconfig"
2552 -
2553 -S=${WORKDIR}/${MY_P}
2554 -
2555 -ZABBIXJAVA_BASE="opt/zabbix_java"
2556 -
2557 -pkg_setup() {
2558 - if use oracle; then
2559 - if [ -z "${ORACLE_HOME}" ]; then
2560 - eerror
2561 - eerror "The environment variable ORACLE_HOME must be set"
2562 - eerror "and point to the correct location."
2563 - eerror "It looks like you don't have Oracle installed."
2564 - eerror
2565 - die "Environment variable ORACLE_HOME is not set"
2566 - fi
2567 - if has_version 'dev-db/oracle-instantclient-basic'; then
2568 - ewarn
2569 - ewarn "Please ensure you have a full install of the Oracle client."
2570 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2571 - ewarn
2572 - fi
2573 - fi
2574 -
2575 - if use frontend; then
2576 - webapp_pkg_setup
2577 - fi
2578 -
2579 - enewgroup zabbix
2580 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2581 -}
2582 -
2583 -java_prepare() {
2584 - cd "${S}/src/zabbix_java/lib"
2585 - rm -v *.jar || die
2586 -
2587 - java-pkg_jar-from slf4j-api
2588 -}
2589 -
2590 -src_prepare() {
2591 - default
2592 -}
2593 -
2594 -src_configure() {
2595 - econf \
2596 - $(use_enable server) \
2597 - $(use_enable proxy) \
2598 - $(use_enable agent) \
2599 - $(use_enable ipv6) \
2600 - $(use_enable static) \
2601 - $(use_enable java) \
2602 - $(use_with ldap) \
2603 - $(use_with snmp net-snmp) \
2604 - $(use_with mysql) \
2605 - $(use_with postgres postgresql) \
2606 - $(use_with oracle) \
2607 - $(use_with sqlite sqlite3) \
2608 - $(use_with xmpp jabber) \
2609 - $(use_with curl libcurl) \
2610 - $(use_with openipmi openipmi) \
2611 - $(use_with ssh ssh2) \
2612 - $(use_with libxml2) \
2613 - $(use_with odbc unixodbc) \
2614 - || die "econf failed"
2615 -}
2616 -
2617 -src_compile() {
2618 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2619 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2620 - fi
2621 -}
2622 -
2623 -src_install() {
2624 - dodir \
2625 - /etc/zabbix \
2626 - /var/lib/zabbix \
2627 - /var/lib/zabbix/home \
2628 - /var/lib/zabbix/scripts \
2629 - /var/lib/zabbix/alertscripts \
2630 - /var/lib/zabbix/externalscripts \
2631 - /var/log/zabbix
2632 -
2633 - keepdir \
2634 - /etc/zabbix \
2635 - /var/lib/zabbix \
2636 - /var/lib/zabbix/home \
2637 - /var/lib/zabbix/scripts \
2638 - /var/lib/zabbix/alertscripts \
2639 - /var/lib/zabbix/externalscripts \
2640 - /var/log/zabbix
2641 -
2642 - if use server; then
2643 - insinto /etc/zabbix
2644 - doins "${FILESDIR}/2.4"/zabbix_server.conf
2645 - doinitd "${FILESDIR}/2.4"/init.d/zabbix-server
2646 - dosbin src/zabbix_server/zabbix_server
2647 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2648 - fperms 0640 /etc/zabbix/zabbix_server.conf
2649 - dodir /usr/share/zabbix
2650 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2651 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2652 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2653 - fi
2654 -
2655 - if use proxy; then
2656 - doinitd \
2657 - "${FILESDIR}/2.4"/init.d/zabbix-proxy
2658 - dosbin \
2659 - src/zabbix_proxy/zabbix_proxy
2660 - insinto /etc/zabbix
2661 - doins \
2662 - "${FILESDIR}/2.4"/zabbix_proxy.conf
2663 - dodir /usr/share/zabbix
2664 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2665 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2666 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2667 - fi
2668 -
2669 - if use agent; then
2670 - insinto /etc/zabbix
2671 - doins \
2672 - "${FILESDIR}/2.4"/zabbix_agent.conf \
2673 - "${FILESDIR}/2.4"/zabbix_agentd.conf
2674 - doinitd "${FILESDIR}/2.4"/init.d/zabbix-agentd
2675 - dosbin \
2676 - src/zabbix_agent/zabbix_agent \
2677 - src/zabbix_agent/zabbix_agentd
2678 - dobin \
2679 - src/zabbix_sender/zabbix_sender \
2680 - src/zabbix_get/zabbix_get
2681 - fowners zabbix:zabbix \
2682 - /etc/zabbix/zabbix_agent.conf \
2683 - /etc/zabbix/zabbix_agentd.conf
2684 - fperms 0640 \
2685 - /etc/zabbix/zabbix_agent.conf \
2686 - /etc/zabbix/zabbix_agentd.conf
2687 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2688 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2689 - fi
2690 -
2691 - fowners zabbix:zabbix \
2692 - /etc/zabbix \
2693 - /var/lib/zabbix \
2694 - /var/lib/zabbix/home \
2695 - /var/lib/zabbix/scripts \
2696 - /var/lib/zabbix/alertscripts \
2697 - /var/lib/zabbix/externalscripts \
2698 - /var/log/zabbix
2699 - fperms 0750 \
2700 - /etc/zabbix \
2701 - /var/lib/zabbix \
2702 - /var/lib/zabbix/home \
2703 - /var/lib/zabbix/scripts \
2704 - /var/lib/zabbix/alertscripts \
2705 - /var/lib/zabbix/externalscripts \
2706 - /var/log/zabbix
2707 -
2708 - dodoc README INSTALL NEWS ChangeLog \
2709 - conf/zabbix_agent.conf \
2710 - conf/zabbix_agentd.conf \
2711 - conf/zabbix_proxy.conf \
2712 - conf/zabbix_agentd/userparameter_examples.conf \
2713 - conf/zabbix_agentd/userparameter_mysql.conf \
2714 - conf/zabbix_server.conf
2715 -
2716 - if use frontend; then
2717 - webapp_src_preinst
2718 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2719 - webapp_configfile \
2720 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2721 - "${MY_HTDOCSDIR}"/include/config.inc.php
2722 - webapp_src_install
2723 - fi
2724 -
2725 - if use java; then
2726 - dodir \
2727 - /${ZABBIXJAVA_BASE} \
2728 - /${ZABBIXJAVA_BASE}/bin \
2729 - /${ZABBIXJAVA_BASE}/lib
2730 - keepdir /${ZABBIXJAVA_BASE}
2731 - exeinto /${ZABBIXJAVA_BASE}/bin
2732 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2733 - exeinto /${ZABBIXJAVA_BASE}/lib
2734 - doexe \
2735 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2736 - src/zabbix_java/lib/logback-console.xml \
2737 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2738 - src/zabbix_java/lib/logback.xml \
2739 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2740 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2741 - exeinto /${ZABBIXJAVA_BASE}/
2742 - doexe \
2743 - src/zabbix_java/settings.sh \
2744 - src/zabbix_java/startup.sh \
2745 - src/zabbix_java/shutdown.sh
2746 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2747 - fi
2748 -}
2749 -
2750 -pkg_postinst() {
2751 - if use server || use proxy ; then
2752 - elog
2753 - elog "You may need to configure your database for Zabbix,"
2754 - elog "if you have not already done so. "
2755 - elog
2756 -
2757 - zabbix_homedir=$(egethome zabbix)
2758 - if [ -n "${zabbix_homedir}" ] && \
2759 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2760 - ewarn
2761 - ewarn "The user 'zabbix' should have his homedir changed"
2762 - ewarn "to /var/lib/zabbix/home if you want to use"
2763 - ewarn "custom alert scripts."
2764 - ewarn
2765 - ewarn "A real homedir might be needed for configfiles"
2766 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2767 - ewarn "using sendxmpp for Jabber alerts)."
2768 - ewarn
2769 - ewarn "To change the homedir use:"
2770 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2771 - ewarn
2772 - fi
2773 - fi
2774 -
2775 - if use server; then
2776 - elog
2777 - elog "For distributed monitoring you have to run:"
2778 - elog
2779 - elog "zabbix_server -n <nodeid>"
2780 - elog
2781 - elog "This will convert database data for use with Node ID"
2782 - elog "and also adds a local node."
2783 - elog
2784 - fi
2785 -
2786 - elog "--"
2787 - elog
2788 - elog "You may need to add these lines to /etc/services:"
2789 - elog
2790 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2791 - elog "zabbix-agent 10050/udp Zabbix Agent"
2792 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2793 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2794 - elog
2795 -
2796 - if use server || use proxy ; then
2797 - # check for fping
2798 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2799 - case "${fping_perms}" in
2800 - 4[157][157][157])
2801 - ;;
2802 - *)
2803 - ewarn
2804 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2805 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2806 - ewarn "by everyone. Run the following command to fix it:"
2807 - ewarn
2808 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2809 - ewarn
2810 - ewarn "Please be aware that this might impose a security risk,"
2811 - ewarn "depending on the code quality of fping."
2812 - ewarn
2813 - ;;
2814 - esac
2815 - fi
2816 -}