diff options
author | Brian Jackson <iggy@gentoo.org> | 2005-04-26 22:06:07 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2005-04-26 22:06:07 +0000 |
commit | b3a8fdc4b0f11d8a85e6d4bf6e82fea0328bcdc1 (patch) | |
tree | ee56b4982c3771e2b087374af261f8a4df8f7fdf /net-analyzer/zabbix-server | |
parent | Version bump, bug #88772 (diff) | |
download | historical-b3a8fdc4b0f11d8a85e6d4bf6e82fea0328bcdc1.tar.gz historical-b3a8fdc4b0f11d8a85e6d4bf6e82fea0328bcdc1.tar.bz2 historical-b3a8fdc4b0f11d8a85e6d4bf6e82fea0328bcdc1.zip |
Initial commit to Gentoo's cvs, huge thanks to Norguhtar <sauronATinfocentr.ru> (bug #90005), and all the people on bug #58123
Package-Manager: portage-2.0.51.20-r4
Diffstat (limited to 'net-analyzer/zabbix-server')
19 files changed, 760 insertions, 0 deletions
diff --git a/net-analyzer/zabbix-server/ChangeLog b/net-analyzer/zabbix-server/ChangeLog new file mode 100644 index 000000000000..cb703bfc6256 --- /dev/null +++ b/net-analyzer/zabbix-server/ChangeLog @@ -0,0 +1,56 @@ +# ChangeLog for net-analyzer/zabbix-server +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/ChangeLog,v 1.1 2005/04/26 22:06:07 iggy Exp $ + +*zabbix-server-1.1_alpha7 (26 Apr 2005) +*zabbix-server-1.0 (26 Apr 2005) + + 26 Apr 2005; Brian Jackson <iggy@gentoo.org> + +files/1.0/conf.d/zabbix-suckerd, +files/1.0/conf.d/zabbix-trapperd, + +files/1.0/init.d/zabbix-suckerd, +files/1.0/init.d/zabbix-trapperd, + +files/1.0/zabbix_suckerd.conf, +files/1.0/zabbix_trapper.conf, + +files/1.1_alpha7/conf.d/zabbix-server, +files/1.0/zabbix_trapperd.conf, + +files/1.1_alpha7/init.d/zabbix-server, + +files/1.1_alpha7/zabbix-snmpv3.fix.patch, + +files/1.1_alpha7/zabbix_server.conf, + +files/1.1_alpha7/zabbix_trapper.conf, +metadata.xml, + +zabbix-server-1.0.ebuild, +zabbix-server-1.1_alpha7.ebuild: + Initial commit to Gentoo's cvs, huge thanks to Norguhtar + <sauronATinfocentr.ru> (bug #90005), and all the people on bug #58123 + +*zabbix-server-1.0-r1 (22 Apr 2005) + + 22 Apr 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-server-1.0-r1.ebuild : + Revision bump; Remove installation frontend. Now frontend porvide by zabbix-frontend. + +*zabbix-server-1.1_alpha7-r1 (15 Apr 2005) + + 15 Apr 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-server-1.1_alpha7-r1.ebuild : + Revision bump; Remove installation frontend. Now frontend porvide by zabbix-frontend. + + 21 Mar 2005; Kirill Tikhonov zabbix-agent-1.1_alpha7.ebuild: + Add ~sparc to KEYWORD. + +*zabbix-server-1.1_alpha7 (21 Mar 2005) + + 21 Mar 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-server-1.1_alpha7.ebuild : + Version bump. + + 20 Mar 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-server-1.0.ebuild, zabbix-server-1.1_alpha5.ebuild: + Portage tree now contains only net-snmp change depends from virtual/snmp to net-analyzer/net-snmp. + Fix bugs on reemerge. + +*zabbix-server-1.1_alpha5-r1 (16 Feb 2005) + + 16 Mar 2005; Kirill Tikhonov zabbix-server-1.1_alpha5-r1.ebuild: + Add ~sparc to KEYWORD. + +*zabbix-server-1.1_alpha5 (8 Feb 2005) + + 8 Feb 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-server-1.1_alpha5.ebuild : + Version bump. + +*zabbix-server-1.0 (7 Feb 2005) + + 7 Feb 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-server-1.0.ebuild : + Initial import. Ebuild submitted by Anatoly Shipitsin <sauron@infocentr.ru>. diff --git a/net-analyzer/zabbix-server/Manifest b/net-analyzer/zabbix-server/Manifest new file mode 100644 index 000000000000..1ee8d382ee74 --- /dev/null +++ b/net-analyzer/zabbix-server/Manifest @@ -0,0 +1,18 @@ +MD5 398d5b2459964351fd302178c99b8a69 zabbix-server-1.0.ebuild 3108 +MD5 116cb7551c239d1d94a70bb4751bb5aa ChangeLog 2392 +MD5 7336ce4cfc26231004431efa51887468 zabbix-server-1.1_alpha7.ebuild 2924 +MD5 00648db30cf75f155ed226e0d42c8626 metadata.xml 341 +MD5 44d6c3f823d9eee301130916100fd8fb files/digest-zabbix-server-1.0 63 +MD5 4990ea7476a1a66671f7faf9b1c93719 files/digest-zabbix-server-1.1_alpha7 68 +MD5 4dbd247f56a8f798505fcd22a47a5b64 files/1.0/zabbix_suckerd.conf 1825 +MD5 1efa7eb89acc8800f985323d3193fa2e files/1.0/zabbix_trapper.conf 770 +MD5 1a70ae90c2e9f4e94bc5798c80a01697 files/1.0/zabbix_trapperd.conf 1197 +MD5 6fcb3e9aa99f741618094b6d5e482e2f files/1.1_alpha7/zabbix-snmpv3.fix.patch 2010 +MD5 9832a81e134c8e2c11e2a06b7adbf88f files/1.1_alpha7/zabbix_trapper.conf 762 +MD5 cdfb81599cdbef1978ae712aba19d878 files/1.1_alpha7/zabbix_server.conf 2063 +MD5 ee29fececd9e7e7b108b691b854020b0 files/1.0/conf.d/zabbix-suckerd 334 +MD5 982b22f8da53a2810028d9561177fdbb files/1.0/conf.d/zabbix-trapperd 337 +MD5 ad09743d6e57844d88965baa9d3149ac files/1.0/init.d/zabbix-suckerd 391 +MD5 22319696aa92352a8ffe14a35c8e657e files/1.0/init.d/zabbix-trapperd 394 +MD5 e4dd6d5b2b1a84b5b1f74ab450e2b50b files/1.1_alpha7/conf.d/zabbix-server 338 +MD5 d4845b8a0f65827489a1d61ca8805c4e files/1.1_alpha7/init.d/zabbix-server 389 diff --git a/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-suckerd b/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-suckerd new file mode 100644 index 000000000000..21aaa67cf544 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-suckerd @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-suckerd,v 1.1 2005/04/26 22:06:07 iggy Exp $ + +# Config file for /etc/conf.d/zabbix-suckerd + +PID="/var/run/zabbix/zabbix_suckerd.pid" diff --git a/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-trapperd b/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-trapperd new file mode 100644 index 000000000000..3ac0f41e73cd --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-trapperd @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/files/1.0/conf.d/zabbix-trapperd,v 1.1 2005/04/26 22:06:07 iggy Exp $ + +# Config file for /etc/conf.d/zabbix-trapperd + +PID="/var/run/zabbix/zabbix_trapperd.pid" diff --git a/net-analyzer/zabbix-server/files/1.0/init.d/zabbix-suckerd b/net-analyzer/zabbix-server/files/1.0/init.d/zabbix-suckerd new file mode 100644 index 000000000000..fce258189046 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/init.d/zabbix-suckerd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +opts="${opts} reload" + +depend() { + need net mysql +} + +start() { + ebegin "Starting Zabbix suckerd" + start-stop-daemon --start --exec /usr/sbin/zabbix_suckerd + eend +} +stop() { + ebegin "Stopping Zabbix suckerd" + start-stop-daemon --stop --pid $PID + eend +} diff --git a/net-analyzer/zabbix-server/files/1.0/init.d/zabbix-trapperd b/net-analyzer/zabbix-server/files/1.0/init.d/zabbix-trapperd new file mode 100644 index 000000000000..380a6e9acd37 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/init.d/zabbix-trapperd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +opts="${opts} reload" + +depend() { + need net mysql +} + +start() { + ebegin "Starting Zabbix trapperd" + start-stop-daemon --start --exec /usr/sbin/zabbix_trapperd + eend +} +stop() { + ebegin "Stopping Zabbix trapperd" + start-stop-daemon --stop --pid $PID + eend +} diff --git a/net-analyzer/zabbix-server/files/1.0/zabbix_suckerd.conf b/net-analyzer/zabbix-server/files/1.0/zabbix_suckerd.conf new file mode 100644 index 000000000000..cfce584be708 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/zabbix_suckerd.conf @@ -0,0 +1,87 @@ +# This is config file for zabbix_suckerd +# To get more information about Zabbix, +# go http://zabbix.sourceforge.net + +############ GENERAL PARAMETERS ################# + +# Number of pre-forked instances of zabbix_suckerd +# Default value is 5 +# This parameter must be between 5 and 255 +StartSuckers=5 + +# How often Zabbix will perform housekeeping procedure +# (in hours) +# Default value is 1 hour +# Housekeeping is removing unnecessary information from +# tables history, laert, and alarms +# This parameter must be between 1 and 24 + +HousekeepingFrequency=1 + +# How often Zabbix will try to send unsent alerts +# (in seconds) +# Default value is 30 seconds +SenderFrequency=30 + +# Uncomment this line to disable housekeeping procedure + +#DisableHousekeeping=1 + +# Specifies debug level +# 0 - debug is not created +# 1 - critical information +# 2 - error information +# 3 - warnings (default) +# 4 - for debugging (produces lots of information) + +DebugLevel=3 + +# Specifies how long we wait for agent (in sec) +# Must be between 1 and 30 +Timeout=5 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_suckerd.pid + +# Name of log file +# If not set, syslog is used + +LogFile=/var/log/zabbix/zabbix_suckerd.log + +#Location for custom alert scripts +AlertScriptsPath=/usr/share/zabbix/sripts/ + +#Location of 'fping. Default is /usr/sbin/fping +FpingLocation=/usr/sbin/fping + +# Frequency of ICMP pings. Defauls is 30 second. +PingerFrequency=30 + +# Database host name +# Default is localhost + +DBHost=localhost + +# Database name + +DBName=zabbix + +# Database user + +DBUser=zabbix + +# Database password +# Comment this line if no password used + +DBPassword=<password> + +# Connect to MySQL using Unix socket? + +#DBSocket=/tmp/mysql.sock + +# Experimental options. Use with care ! + +# Get rid of sockets in TIME_WAIT state +# This will set socket option SO_LINGER +NoTimeWait=1 diff --git a/net-analyzer/zabbix-server/files/1.0/zabbix_trapper.conf b/net-analyzer/zabbix-server/files/1.0/zabbix_trapper.conf new file mode 100644 index 000000000000..4e4c4e521f84 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/zabbix_trapper.conf @@ -0,0 +1,44 @@ +# This is config file for zabbix_trapper +# To get more information about Zabbix, +# go http://zabbix.sourceforge.net + +############ GENERAL PARAMETERS ################# + +# Specifies debug level +# 1 - critical information +# 2 - warnings (default) +# 3 - for debugging (produces lots of information) + +DebugLevel=2 + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +# Name of log file +# If not set, syslog will be used + +LogFile=/var/log/zabbix/zabbix_trapper.log + +# Database host name +# Default is localhost + +DBHost=localhost + +# Database name + +DBName=zabbix + +# Database user + +DBUser=zabbix + +# Database password +# Comment this line if no password used + +DBPassword=zabbix + +# Connect to MySQL usig Unix socket? + +#DBSocket=/tmp/mysql.sock diff --git a/net-analyzer/zabbix-server/files/1.0/zabbix_trapperd.conf b/net-analyzer/zabbix-server/files/1.0/zabbix_trapperd.conf new file mode 100644 index 000000000000..f8d9f8b13341 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.0/zabbix_trapperd.conf @@ -0,0 +1,65 @@ +# This is config file for zabbix_suckerd +# To get more information about Zabbix, +# go http://zabbix.sourceforge.net + +############ GENERAL PARAMETERS ################# + +# Number of pre-forked instances of zabbix_trapperd +# Default value is 5 +# This parameter must be between 2 and 255 + +StartTrappers=5 + +# Listen port. Default port number is 10001. This parameter +# must be between 1024 and 32767 + +ListenPort=10001 + +# Specifies debug level +# 0 - debug is not created +# 1 - critical information +# 2 - error information +# 3 - warnings (default) +# 4 - for debugging (produces lots of information) + +DebugLevel=3 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_trapperd.pid + +# Name of log file +# If not set, syslog will be used + +LogFile=/var/log/zabbix/zabbix_trapperd.log + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +# Database host name +# Default is localhost + +DBHost=localhost + +# Database name + +DBName=zabbix + +# Database user + +DBUser=zabbix + +# Database password +# Comment this line if no password used + +DBPassword=zabbix + +# Connect to MySQL using Unix socket? + +#DBSocket=/tmp/mysql.sock + +# Reconnect to DB for each value received + +DBConnectOnEach=1 diff --git a/net-analyzer/zabbix-server/files/1.1_alpha7/conf.d/zabbix-server b/net-analyzer/zabbix-server/files/1.1_alpha7/conf.d/zabbix-server new file mode 100644 index 000000000000..3baba1223abe --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.1_alpha7/conf.d/zabbix-server @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/files/1.1_alpha7/conf.d/zabbix-server,v 1.1 2005/04/26 22:06:07 iggy Exp $ + +# Config file for /etc/conf.d/zabbix-server + +PID="/var/run/zabbix/zabbix_server.pid" diff --git a/net-analyzer/zabbix-server/files/1.1_alpha7/init.d/zabbix-server b/net-analyzer/zabbix-server/files/1.1_alpha7/init.d/zabbix-server new file mode 100644 index 000000000000..f272d74b5ebe --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.1_alpha7/init.d/zabbix-server @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +#opts="${opts} reload" + +depend() { + need net mysql +} + +start() { + ebegin "Starting Zabbix daemon" + start-stop-daemon --start --exec /usr/sbin/zabbix_server + eend +} +stop() { + ebegin "Stopping Zabbix daemon" + start-stop-daemon --stop --pid $PID + eend +} diff --git a/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix-snmpv3.fix.patch b/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix-snmpv3.fix.patch new file mode 100644 index 000000000000..b397a037c55e --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix-snmpv3.fix.patch @@ -0,0 +1,44 @@ +diff -ruN zabbix-1.1alpha7.orig/src/zabbix_server/checks_snmp.c zabbix-1.1alpha7/src/zabbix_server/checks_snmp.c +--- zabbix-1.1alpha7.orig/src/zabbix_server/checks_snmp.c 2005-04-12 16:00:44.421235088 +0600 ++++ zabbix-1.1alpha7/src/zabbix_server/checks_snmp.c 2005-04-12 16:48:24.312465536 +0600 +@@ -59,6 +59,10 @@ + { + session.version = SNMP_VERSION_2c; + } ++ else if (item->type == ITEM_TYPE_SNMPv3) ++ { ++ session.version = SNMP_VERSION_3; ++ } + else + { + zabbix_log( LOG_LEVEL_ERR, "Error in get_value_SNMP. Wrong item type [%d]. Must be SNMP.", item->type); +@@ -146,8 +150,15 @@ + return FAIL; + } + +- zabbix_log( LOG_LEVEL_DEBUG, "SNMP [%s@%s:%d]",session.community, session.peername, session.remote_port); +- zabbix_log( LOG_LEVEL_DEBUG, "OID [%s]", item->snmp_oid); ++ if ((session.version == SNMP_VERSION_1) || (session.version == SNMP_VERSION_2c)){ ++ zabbix_log( LOG_LEVEL_DEBUG, "SNMP [%s@%s:%d]",session.community, session.peername, session.remote_port); ++ zabbix_log( LOG_LEVEL_DEBUG, "OID [%s]", item->snmp_oid); ++ }; ++ ++ if (session.version == SNMP_VERSION_3){ ++ zabbix_log( LOG_LEVEL_DEBUG, "SNMP [%s@%s (l:%s):%d]",session.securityName, session.peername, session.securityLevel, session.remote_port); ++ zabbix_log( LOG_LEVEL_DEBUG, "OID [%s]", item->snmp_oid); ++ }; + + SOCK_STARTUP; + ss = snmp_open(&session); +diff -ruN zabbix-1.1alpha7.orig/src/zabbix_server/server.c zabbix-1.1alpha7/src/zabbix_server/server.c +--- zabbix-1.1alpha7.orig/src/zabbix_server/server.c 2005-04-12 16:00:44.422234936 +0600 ++++ zabbix-1.1alpha7/src/zabbix_server/server.c 2005-04-12 16:01:31.024150368 +0600 +@@ -320,7 +320,7 @@ + { + res=get_value_agent(result,result_str,item,error,max_error_len); + } +- else if( (item->type == ITEM_TYPE_SNMPv1) || (item->type == ITEM_TYPE_SNMPv2c)) ++ else if( (item->type == ITEM_TYPE_SNMPv1) || (item->type == ITEM_TYPE_SNMPv2c) || (item->type == ITEM_TYPE_SNMPv3)) + { + #ifdef HAVE_SNMP + res=get_value_snmp(result,result_str,item,error, max_error_len); diff --git a/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix_server.conf b/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix_server.conf new file mode 100644 index 000000000000..dc7e4adbb096 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix_server.conf @@ -0,0 +1,97 @@ +# This is config file for ZABBIX server process +# To get more information about ZABBIX, +# go http://www.zabbix.com + +############ GENERAL PARAMETERS ################# + +# Number of pre-forked instances of pollers +# Default value is 5 +# This parameter must be between 5 and 255 +StartSuckers=5 + +# Number of pre-forked instances of trappers +# Default value is 5 +# This parameter must be between 2 and 255 +StartTrappers=5 + +# Listen port for trapping. Default port number is 10051. This parameter +# must be between 1024 and 32767 + +ListenPort=10051 + +# How often ZABBIX will perform housekeeping procedure +# (in hours) +# Default value is 1 hour +# Housekeeping is removing unnecessary information from +# tables history, laert, and alarms +# This parameter must be between 1 and 24 + +HousekeepingFrequency=1 + +# How often ZABBIX will try to send unsent alerts +# (in seconds) +# Default value is 30 seconds +SenderFrequency=30 + +# Uncomment this line to disable housekeeping procedure + +#DisableHousekeeping=1 + +# Specifies debug level +# 0 - debug is not created +# 1 - critical information +# 2 - error information +# 3 - warnings (default) +# 4 - for debugging (produces lots of information) + +DebugLevel=3 + +# Specifies how long we wait for agent (in sec) +# Must be between 1 and 30 +Timeout=5 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_server.pid + +# Name of log file +# If not set, syslog is used + +LogFile=/var/log/zabbix/zabbix_server.log + +#Location for custom alert scripts +AlertScriptsPath=/usr/share/zabbix/scripts + +#Location of 'fping. Default is /usr/sbin/fping +FpingLocation=/usr/sbin/fping + +# Frequency of ICMP pings. Defauls is 30 second. +PingerFrequency=30 + +# Database host name +# Default is localhost + +DBHost=localhost + +# Database name + +DBName=zabbix + +# Database user + +DBUser=zabbix + +# Database password +# Comment this line if no password used + +DBPassword=zabbix + +# Connect to MySQL using Unix socket? + +#DBSocket=/tmp/mysql.sock + +# Experimental options. Use with care ! + +# Get rid of sockets in TIME_WAIT state +# This will set socket option SO_LINGER +NoTimeWait=1 diff --git a/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix_trapper.conf b/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix_trapper.conf new file mode 100644 index 000000000000..7f235f66bc48 --- /dev/null +++ b/net-analyzer/zabbix-server/files/1.1_alpha7/zabbix_trapper.conf @@ -0,0 +1,44 @@ +# This is config file for zabbix_trapper +# To get more information about ZABBIX, +# go http://www.zabbix.com + +############ GENERAL PARAMETERS ################# + +# Specifies debug level +# 1 - critical information +# 2 - warnings (default) +# 3 - for debugging (produces lots of information) + +DebugLevel=2 + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +# Name of log file +# If not set, syslog will be used + +LogFile=/var/log/zabbix/zabbix_trapper.log + +# Database host name +# Default is localhost + +DBHost=localhost + +# Database name + +DBName=zabbix + +# Database user + +DBUser=zabbix + +# Database password +# Comment this line if no password used + +DBPassword=zabbix + +# Connect to MySQL usig Unix socket? + +#DBSocket=/tmp/mysql.sock diff --git a/net-analyzer/zabbix-server/files/digest-zabbix-server-1.0 b/net-analyzer/zabbix-server/files/digest-zabbix-server-1.0 new file mode 100644 index 000000000000..283aa4fd7570 --- /dev/null +++ b/net-analyzer/zabbix-server/files/digest-zabbix-server-1.0 @@ -0,0 +1 @@ +MD5 e83a3b92f13942081ed2f3fe3f3084d8 zabbix-1.0.tar.gz 1847471 diff --git a/net-analyzer/zabbix-server/files/digest-zabbix-server-1.1_alpha7 b/net-analyzer/zabbix-server/files/digest-zabbix-server-1.1_alpha7 new file mode 100644 index 000000000000..bee9b9502bd8 --- /dev/null +++ b/net-analyzer/zabbix-server/files/digest-zabbix-server-1.1_alpha7 @@ -0,0 +1 @@ +MD5 a900c9838075690a8d04849cda42c67c zabbix-1.1alpha7.tar.gz 654347 diff --git a/net-analyzer/zabbix-server/metadata.xml b/net-analyzer/zabbix-server/metadata.xml new file mode 100644 index 000000000000..ec5e1eecd67c --- /dev/null +++ b/net-analyzer/zabbix-server/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>no-herd</herd> + <maintainer> + <email>iggy@gentoo.org</email> + </maintainer> + <longdescription>ZABBIX is software for monitoring of your applications, network and servers.</longdescription> +</pkgmetadata> diff --git a/net-analyzer/zabbix-server/zabbix-server-1.0.ebuild b/net-analyzer/zabbix-server/zabbix-server-1.0.ebuild new file mode 100644 index 000000000000..535b8564cdcf --- /dev/null +++ b/net-analyzer/zabbix-server/zabbix-server-1.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/zabbix-server-1.0.ebuild,v 1.1 2005/04/26 22:06:07 iggy Exp $ + +inherit eutils + +MY_P=${PN//-server/} +DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers. Server part." + +HOMEPAGE="http://zabbix.com/" +SRC_URI="mirror://sourceforge/zabbix/${MY_P}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~x86 ~amd64" + +IUSE="snmp mysql postgres" + +DEPEND="snmp? ( net-analyzer/net-snmp ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql )" + +# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:" +RDEPEND="net-analyzer/fping" + +S=${WORKDIR}/${MY_P}-${PV} + +pkg_setup() { + enewgroup zabbix + enewuser zabbix -1 /bin/false /dev/null zabbix +} + +src_unpack() { + if ( use mysql && use postgres ) + then + eerror "You can't use both database in zabbix. Select one database" + die "Set both database" + fi + if (( ! use mysql ) && ( ! use postgres )) + then + eerror "Selected mysql or postgresql database" + die "No select database" + fi + unpack ${A} +} + +src_compile() { + local myconf="" + if use mysql; then + myconf="--with-mysql" + einfo "using mysql backend" + fi + if use postgres; then + myconf="--with-pgsql" + einfo "using postgresql backend" + fi + if use snmp; then + myconf="${myconf} --with-net-snmp" + einfo "using net-snmp for snmp request" + fi + ./configure ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dodir /etc/zabbix /var/log/zabbix /var/run/zabbix /usr/share/zabbix/sripts /usr/share/zabbix/dbms + keepdir /etc/zabbix /var/log/zabbix /var/run/zabbix + insinto /etc/zabbix + doins ${FILESDIR}/${PV}/zabbix_suckerd.conf ${FILESDIR}/${PV}/zabbix_trapper.conf ${FILESDIR}/${PV}/zabbix_trapperd.conf + insinto /etc/conf.d + doins ${FILESDIR}/${PV}/conf.d/zabbix-suckerd ${FILESDIR}/${PV}/conf.d/zabbix-trapperd + exeinto /etc/init.d + doexe ${FILESDIR}/${PV}/init.d/zabbix-suckerd ${FILESDIR}/${PV}/init.d/zabbix-trapperd + fowners zabbix:zabbix /etc/zabbix /var/log/zabbix /var/run/zabbix /usr/share/zabbix/sripts /usr/share/zabbix/dbms /etc/zabbix/zabbix_suckerd.conf /etc/zabbix/zabbix_trapper.conf /etc/zabbix/zabbix_trapperd.conf + fperms 0640 /etc/zabbix/zabbix_suckerd.conf /etc/zabbix/zabbix_trapper.conf /etc/zabbix/zabbix_trapperd.conf + dosbin bin/zabbix_suckerd bin/zabbix_trapper bin/zabbix_trapperd + fperms 0750 /var/log/zabbix /var/run/zabbix + dodoc README INSTALL NEWS ChangeLog + insinto /usr/share/doc/${P} + doins doc/Zabbix\ Manual.pdf + insinto /usr/share/zabbix/dbms + doins create/data/data.sql + if use mysql; then + doins create/mysql/schema.sql + fi + if use postgres; then + doins create/postgresql/schema.sql + fi +} + + +pkg_postinst(){ + if ( use mysql ); then + einfo "You need configure mysql for zabbix." + einfo "For more info read Zabbix Manual (/usr/share/doc/${P}/Zabbix Manual.pdf)" + fi + if ( use postgres ); then + einfo "You need configure postgresql for zabbix." + einfo "For more info read Zabbix Manual (/usr/share/doc/${P}/Zabbix Manual.pdf)" + fi + +} diff --git a/net-analyzer/zabbix-server/zabbix-server-1.1_alpha7.ebuild b/net-analyzer/zabbix-server/zabbix-server-1.1_alpha7.ebuild new file mode 100644 index 000000000000..b9dbd88a4a86 --- /dev/null +++ b/net-analyzer/zabbix-server/zabbix-server-1.1_alpha7.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/zabbix-server-1.1_alpha7.ebuild,v 1.1 2005/04/26 22:06:07 iggy Exp $ + +inherit eutils + +MY_P=${PN//-server/} +MY_PV=${PV//_/} +DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers. Server part." + +HOMEPAGE="http://zabbix.com/" +SRC_URI="mirror://sourceforge/zabbix/${MY_P}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~x86 ~sparc ~amd64" + +IUSE="snmp mysql postgres" + +DEPEND="snmp? ( net-analyzer/net-snmp ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql )" + +# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:" +RDEPEND="net-analyzer/fping" + +S=${WORKDIR}/${MY_P}-${MY_PV} + +pkg_setup() { + enewgroup zabbix + enewuser zabbix -1 /bin/false /dev/null zabbix +} + +src_unpack() { + if ( use mysql && use postgres ) + then + eerror "You can't use both database in zabbix. Select one database" + die "Set both database" + fi + if (( ! use mysql ) && ( ! use postgres )) + then + eerror "Selected mysql or postgresql database" + die "No select database" + fi + unpack ${A} + epatch ${FILESDIR}/${PV}/zabbix-snmpv3.fix.patch +} + +src_compile() { + local myconf="" + if use mysql; then + myconf="--with-mysql" + einfo "using mysql backend" + fi + if use postgres; then + myconf="--with-pgsql" + einfo "using postgresql backend" + fi + if use snmp; then + myconf="${myconf} --with-net-snmp" + einfo "using net-snmp for snmp request" + fi + ./configure ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dodir /etc/zabbix /var/log/zabbix /var/run/zabbix /usr/share/zabbix/sripts /usr/share/zabbix/dbms + keepdir /etc/zabbix /var/log/zabbix /var/run/zabbix + insinto /etc/zabbix + doins ${FILESDIR}/${PV}/zabbix_server.conf ${FILESDIR}/${PV}/zabbix_trapper.conf + + insinto /etc/conf.d + doins ${FILESDIR}/${PV}/conf.d/zabbix-server + + exeinto /etc/init.d + doexe ${FILESDIR}/${PV}/init.d/zabbix-server + + fowners zabbix:zabbix /etc/zabbix /var/log/zabbix /var/run/zabbix /usr/share/zabbix/sripts /usr/share/zabbix/dbms /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_trapper.conf + fperms 0640 /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_trapper.conf + + dosbin bin/zabbix_server bin/zabbix_sender + fperms 0750 /var/log/zabbix /var/run/zabbix + dodoc README INSTALL NEWS ChangeLog + insinto /usr/share/zabbix/dbms + doins create/data/data.sql + if use mysql; then + doins create/mysql/schema.sql + fi + if use postgres; then + doins create/postgresql/schema.sql + fi +} + + +pkg_postinst(){ + if ( use mysql ); then + einfo "You need configure mysql for zabbix." + einfo "For more info read Zabbix Manual (/usr/share/doc/${P}/Zabbix Manual.pdf)" + fi + if ( use postgres ); then + einfo "You need configure postgresql for zabbix." + einfo "For more info read Zabbix Manual (/usr/share/doc/${P}/Zabbix Manual.pdf)" + fi +} |