diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-10-05 15:55:23 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-10-05 15:55:23 +0000 |
commit | b1e32b89d8d1a701b70c61db83250cbede0c4f92 (patch) | |
tree | 862cd04405a3f92454f0b777f26d069bff11c6e2 /net-analyzer | |
parent | Add ~ia64/~sparc wrt #271000 (diff) | |
download | historical-b1e32b89d8d1a701b70c61db83250cbede0c4f92.tar.gz historical-b1e32b89d8d1a701b70c61db83250cbede0c4f92.tar.bz2 historical-b1e32b89d8d1a701b70c61db83250cbede0c4f92.zip |
Bump to 1.6.6, closes #286655
Package-Manager: portage-2.2_rc43/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/zabbix/ChangeLog | 12 | ||||
-rw-r--r-- | net-analyzer/zabbix/Manifest | 12 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd | 22 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/init.d/zabbix-server | 21 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/postinstall-en.txt | 8 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/zabbix_agent.conf | 27 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/zabbix_agentd.conf | 90 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/zabbix_proxy.conf | 175 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/zabbix_server.conf | 155 | ||||
-rw-r--r-- | net-analyzer/zabbix/files/1.6.6/zabbix_trapper.conf | 44 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-1.6.6.ebuild | 296 |
11 files changed, 860 insertions, 2 deletions
diff --git a/net-analyzer/zabbix/ChangeLog b/net-analyzer/zabbix/ChangeLog index d3bcf2fbfef1..6a0b9f43825f 100644 --- a/net-analyzer/zabbix/ChangeLog +++ b/net-analyzer/zabbix/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for net-analyzer/zabbix # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.13 2009/10/05 14:48:03 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.14 2009/10/05 15:55:23 patrick Exp $ + +*zabbix-1.6.6 (05 Oct 2009) + + 05 Oct 2009; Patrick Lauer <patrick@gentoo.org> + +files/1.6.6/init.d/zabbix-agentd, +files/1.6.6/postinstall-en.txt, + +files/1.6.6/zabbix_agent.conf, +zabbix-1.6.6.ebuild, + +files/1.6.6/init.d/zabbix-server, +files/1.6.6/zabbix_agentd.conf, + +files/1.6.6/zabbix_proxy.conf, +files/1.6.6/zabbix_server.conf, + +files/1.6.6/zabbix_trapper.conf: + Bump to 1.6.6, closes #286655 *zabbix-1.6.5-r1 (05 Oct 2009) diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest index 9a6ee9224b33..90892e97a27d 100644 --- a/net-analyzer/zabbix/Manifest +++ b/net-analyzer/zabbix/Manifest @@ -12,10 +12,20 @@ AUX 1.6.5/zabbix_agentd.conf 2515 RMD160 bdf4e66de1355f9b05f8ca228bdae3e592aca5f AUX 1.6.5/zabbix_proxy.conf 4509 RMD160 9efacc29f9e592484cfd4e7cf1cb121886f7318b SHA1 1d619d6d7789be4290245b8bdb8bddf0e93b6a80 SHA256 d7f5d87f3ad9860b0dc8fe2175303b9e83464a5a0b51010a87a759f3b6de46e9 AUX 1.6.5/zabbix_server.conf 3922 RMD160 a38ff076d34a9807d60b67ec3df3a428f03a8095 SHA1 48fbeabd262d0552f0cb86c39b3f645788077a11 SHA256 4210390a0400b86b090945abab6fdbfe91965d6746a46cf92434dacee4dfe3cb AUX 1.6.5/zabbix_trapper.conf 755 RMD160 c50714a2b95af303737adb117734872ef2545fea SHA1 4acb5a3d01c797f38c278d903430b5ec13557550 SHA256 76af8f79fa28b02c65107753d959c5404faee67c28219e9bce1b29014fab3ca8 +AUX 1.6.6/init.d/zabbix-agentd 581 RMD160 d0060b9a130c324a521742bebe2558dd1bee5171 SHA1 f5ac53cf685dc40bb92eaed5812b9b73dac6d794 SHA256 c69a7b6bb64633af898bf6ba6fe0f3714249bd1a4b73f08b48eda99a564bfd6c +AUX 1.6.6/init.d/zabbix-server 563 RMD160 1cd0739f7d8fab838a0d60a6a5867936b9fe6480 SHA1 148685244bc8008ddfba2613e7d3091fcaf5aa09 SHA256 daa094a042ed03d6a037d28fe1208a193c407492f79e0128518b3058ca171ee7 +AUX 1.6.6/postinstall-en.txt 147 RMD160 c0aa1d85021eb046f9c92415fa8e95f9296b046d SHA1 cb5e16baa4cc0a1bf728d94a14fe5e0a85aebcf4 SHA256 3855cb33f7ca570a44e42d578894aba9ebe22fd2992f9f009ca954286f4ba38f +AUX 1.6.6/zabbix_agent.conf 1121 RMD160 09c6842c9846b5506ebeef7bea6f596e875b9a9f SHA1 64a513652d2cd7e764db67a4dde519499e554cd2 SHA256 0bbeabf0a3b9a7a3a2c71d384d785c9c1b9da420e1fb46445a15ce952d6c7790 +AUX 1.6.6/zabbix_agentd.conf 2515 RMD160 bdf4e66de1355f9b05f8ca228bdae3e592aca5f1 SHA1 df20ca520c05cc02ba1fcd872abe31be5b7f25a4 SHA256 7853fd3a22bdca6c05ff5326bf0d3f7d80cb3fe854c872a086f7f05484720f1f +AUX 1.6.6/zabbix_proxy.conf 4509 RMD160 9efacc29f9e592484cfd4e7cf1cb121886f7318b SHA1 1d619d6d7789be4290245b8bdb8bddf0e93b6a80 SHA256 d7f5d87f3ad9860b0dc8fe2175303b9e83464a5a0b51010a87a759f3b6de46e9 +AUX 1.6.6/zabbix_server.conf 3922 RMD160 a38ff076d34a9807d60b67ec3df3a428f03a8095 SHA1 48fbeabd262d0552f0cb86c39b3f645788077a11 SHA256 4210390a0400b86b090945abab6fdbfe91965d6746a46cf92434dacee4dfe3cb +AUX 1.6.6/zabbix_trapper.conf 755 RMD160 c50714a2b95af303737adb117734872ef2545fea SHA1 4acb5a3d01c797f38c278d903430b5ec13557550 SHA256 76af8f79fa28b02c65107753d959c5404faee67c28219e9bce1b29014fab3ca8 DIST zabbix-1.4.6.tar.gz 3784072 RMD160 c53973e8fcabfb04b22256650e278e594853ca04 SHA1 b9b573b24fdee182b99cd8ee83fa1cc5c55eab87 SHA256 c91aa005fbe2e7df3945890234e574ceb4d160eb11d284ad0402d97ca3faaca7 DIST zabbix-1.6.5.tar.gz 8246218 RMD160 503c1159c7f3da7a24650dd55296cf05d3b88636 SHA1 b4a224cd9037911c1e68799a13518896de675d3d SHA256 1680dd625a140c97ea945f78c3e614dfe5b42261e0ba4fcf5c9b277870716a3b +DIST zabbix-1.6.6.tar.gz 8255436 RMD160 96be023ab87d83de28e23d96ae363d65462c32e1 SHA1 3bcecc210f79e70c2c366cd3310a2492d7ab4cd1 SHA256 9eb7bbe99c516c11020d5c95c8f8783fb1dc1123ce9c7e2135db7bfd0ea0aa75 EBUILD zabbix-1.4.6.ebuild 6988 RMD160 6ba14f5d7707aa647857923c08dfa62216f2d4ec SHA1 cc6334b9311fa8ea08120c65c48033c6802da9bf SHA256 1f7f6245429fa0dfae013898d9d2358ea721b639a1982dff660021cd77b97217 EBUILD zabbix-1.6.5-r1.ebuild 7660 RMD160 b8254a03803aef34804b6b550e64b0a7c500ee4c SHA1 64f07906928a3a84bf912c2e2678ab687388cec7 SHA256 57748bdee05ee7673e52229ea60da5c061faedf2cc2a9ed0cc6ccef60053f519 EBUILD zabbix-1.6.5.ebuild 7395 RMD160 3124ebd985d91cb6c26e4296dc9521b7be142183 SHA1 864b2dda99361bbcc361a2f0bff1e35fd75169b2 SHA256 c30329bcb6c5752b73ac0a35639835e4f9b8de272ce4a2426af8abf3a2c066e5 -MISC ChangeLog 5307 RMD160 515298e0905443c84e0431a759398d887aa4aa3c SHA1 82c23a9dd31ffa69fcce7d294f8a16f564d6cfe2 SHA256 5476a2431ea47aa17a90d3ade1807f96ca9a8ab8c17bac8bb477c53b0079f88d +EBUILD zabbix-1.6.6.ebuild 7657 RMD160 072d84c8324e729342218dfedd8a8c1103592028 SHA1 62cbeb8a31bdf684df686deb039000731e85335a SHA256 d963b3b1066a299692bcf85e2b7bc9e5c99edf2895804fbb165dcdc9550e5510 +MISC ChangeLog 5718 RMD160 08fbe54e9708c1218ae68582a044f7195a99f336 SHA1 ee57c90a3803821349085124f16d824cfdd6f980 SHA256 6948357ed30475110f593e98c681b37b2ba6670ecc2d8bd256186184b8850c35 MISC metadata.xml 788 RMD160 97edb987a7a3446100920b0e226cc71efa052156 SHA1 5d06de92e254edfce22bfc3620416e831359d93c SHA256 379998ca8ba8bc8710f39485fb164d89c7d996b3126c323f81f87003f43c643c diff --git a/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd b/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd new file mode 100644 index 000000000000..b14b5fe74b31 --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd,v 1.1 2009/10/05 15:55:23 patrick Exp $ + +depend() { + need net + provide zabbix-agent + use zabbix-server +} + +start() { + ebegin "Starting Zabbix agent" + start-stop-daemon --start -c zabbix:zabbix --exec /usr/sbin/zabbix_agentd + eend $? +} + +stop() { + ebegin "Stopping Zabbix agent" + start-stop-daemon --stop -u zabbix --pidfile /var/run/zabbix/zabbix_agentd.pid + eend $? +} diff --git a/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-server b/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-server new file mode 100644 index 000000000000..a661cd233d25 --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-server @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-server,v 1.1 2009/10/05 15:55:23 patrick Exp $ + +depend() { + need net + use mysql postgresql +} + +start() { + ebegin "Starting Zabbix server" + start-stop-daemon --start -c zabbix:zabbix --exec /usr/sbin/zabbix_server + eend $? +} + +stop() { + ebegin "Stopping Zabbix server" + start-stop-daemon --stop -u zabbix --pidfile /var/run/zabbix/zabbix_server.pid + eend $? +} diff --git a/net-analyzer/zabbix/files/1.6.6/postinstall-en.txt b/net-analyzer/zabbix/files/1.6.6/postinstall-en.txt new file mode 100644 index 000000000000..9d13a9f3dbce --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/postinstall-en.txt @@ -0,0 +1,8 @@ +Please change the values of the following variables in +${MY_HTDOCSDIR}/include/db.inc.php: + + DB_TYPE + DB_SERVER + DB_DATABASE + DB_USER + DB_PASSWORD diff --git a/net-analyzer/zabbix/files/1.6.6/zabbix_agent.conf b/net-analyzer/zabbix/files/1.6.6/zabbix_agent.conf new file mode 100644 index 000000000000..dfa5c1bd3dee --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/zabbix_agent.conf @@ -0,0 +1,27 @@ +# This is config file for zabbix_agent +# To get more information about ZABBIX, +# go http://www.zabbix.com + +# IP address of ZABBIX server +# Connections from other hosts will be denied + +Server=127.0.0.1 + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +####### USER-DEFINED MONITORED PARAMETERS ####### +# Format: UserParameter=<key>,<shell command> +# Note that shell command must not return empty string or EOL only +#UserParameter=system.test,who|wc -l +### Set of parameter for monitoring MySQL server (v3.23.42 and later) +### Change -u<username> and add -p<password> if required +#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l +#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" +#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" +#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" +#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O" +#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":" +#UserParameter=mysql.version,mysql -V diff --git a/net-analyzer/zabbix/files/1.6.6/zabbix_agentd.conf b/net-analyzer/zabbix/files/1.6.6/zabbix_agentd.conf new file mode 100644 index 000000000000..44ce9d89a5e9 --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/zabbix_agentd.conf @@ -0,0 +1,90 @@ +# This is config file for zabbix_agentd +# To get more information about ZABBIX, go http://www.zabbix.com + +############ GENERAL PARAMETERS ################# + +# List of comma delimited IP addresses (or hostnames) of ZABBIX servers. +# No spaces allowed. First entry is used for sending active checks. +# Note that hostnames must resolve hostname->IP address and +# IP address->hostname. + +Server=127.0.0.1 + +# Server port for sending active checks + +#ServerPort=10051 + +# Unique hostname. Required for active checks. + +Hostname=ZABBIX Server + +# Listen port. Default is 10050 + +#ListenPort=10050 + +# IP address to bind agent +# If missing, bind to all available IPs + +#ListenIP=127.0.0.1 + +# Source IP address for outgouing connections +#SourceIP= + +# Number of pre-forked instances of zabbix_agentd. +# Default value is 5 +# This parameter must be between 1 and 16 + +StartAgents=5 + +# How often refresh list of active checks. 2 minutes by default. + +#RefreshActiveChecks=120 + +# Disable active checks. The agent will work in passive mode listening server. + +#DisableActive=1 + +# Enable remote commands for ZABBIX agent. By default remote commands disabled. + +#EnableRemoteCommands=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 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_agentd.pid + +# Name of log file. +# If not set, syslog will be used + +LogFile=/tmp/zabbix_agentd.log + +# Maximum size of log file in MB. Set to 0 to disable automatic log rotation. +#LogFileSize=1 + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +####### USER-DEFINED MONITORED PARAMETERS ####### +# Format: UserParameter=<key>,<shell command> +# Note that shell command must not return empty string or EOL only +#UserParameter=system.test,who|wc -l +### Set of parameter for monitoring MySQL server (v3.23.42 and later) +### Change -u<username> and add -p<password> if required +#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l +#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" +#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" +#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" +#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O" +#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":" +#UserParameter=mysql.version,mysql -V + diff --git a/net-analyzer/zabbix/files/1.6.6/zabbix_proxy.conf b/net-analyzer/zabbix/files/1.6.6/zabbix_proxy.conf new file mode 100644 index 000000000000..a09a7b623243 --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/zabbix_proxy.conf @@ -0,0 +1,175 @@ +# This is config file for ZABBIX server process +# To get more information about ZABBIX, +# go http://www.zabbix.com + +############ GENERAL PARAMETERS ################# + +# IP address (or hostname) of ZABBIX servers. + +Server=127.0.0.1 + +# Server port for sending active checks + +ServerPort=10051 + +# Unique hostname. + +Hostname=proxy + +# Number of pre-forked instances of pollers +# Default value is 5 +# This parameter must be between 0 and 255 +#StartPollers=5 + +# Number of pre-forked instances of IPMI pollers +# Default value is 0 +# This parameter must be between 0 and 255 +#StartIPMIPollers=0 + +# Number of pre-forked instances of pollers for unreachable hosts +# Default value is 1 +# This parameter must be between 0 and 255 +#StartPollersUnreachable=1 + +# Number of pre-forked instances of trappers +# Default value is 5 +# This parameter must be between 0 and 255 +#StartTrappers=5 + +# Number of pre-forked instances of ICMP pingers +# Default value is 1 +# This parameter must be between 0 and 255 +#StartPingers=1 + +# Number of pre-forked instances of discoverers +# Default value is 1 +# This parameter must be between 0 and 255 +#StartDiscoverers=1 + +# Number of pre-forked instances of HTTP pollers +# Default value is 1 +# This parameter must be between 0 and 255 +#StartHTTPPollers=1 + +# Listen port for trapper. Default port number is 10051. This parameter +# must be between 1024 and 32767 +#ListenPort=10051 + +# Source IP address for outgouing connections +#SourceIP= + +# Listen interface for trapper. Trapper will listen all network interfaces +# if this parameter is missing. +#ListenIP=127.0.0.1 + +# How often ZABBIX will perform sending hearbeat message +# (in seconds) +# Default value is 60 seconds +# Set to 0 to disable heartbeat messages +# This parameter must be between 0 and 3600 +#HeartbeatFrequency=60 + +# How often ZABBIX will perform sync configuration data +# (in seconds) +# Default value is 3600 seconds (1h) +# This parameter must be between 1 and 604800 (1 week) +#ConfigFrequency=3600 + +# How often ZABBIX will perform housekeeping procedure +# (in hours) +# Default value is 1 hour +# Housekeeping is removing unnecessary information from +# tables history, alert, 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 + +# Local bufer size in hours. Proxy will keep collected data N hours. +# Default value is 0 hours +#ProxyLocalBuffer=0 + +# Offline buffer size in hours. It is used when server is not available. +# Older data is removed. +# Default value is 1 hours +#ProxyOfflineBuffer=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 response (in sec) +# Must be between 1 and 30 +Timeout=5 + +# Specifies how many seconds trapper may spend processing new data +# Must be between 1 and 30 +#TrapperTimeout=5 + +# After how many seconds of unreachability treat a host as unavailable +#UnreachablePeriod=45 + +# How ofter check host for availability during the unreachability period +#UnavailableDelay=15 + +# How ofter check host for availability during the unavailability period +#UnavailableDelay=60 + +# Name of PID file +PidFile=/var/tmp/zabbix_proxy.pid + +# Name of log file +# If not set, syslog is used +LogFile=/tmp/zabbix_proxy.log + +# Maximum size of log file in MB. Set to 0 to disable automatic log rotation. +#LogFileSize=1 + +# Location for custom alert scripts +AlertScriptsPath=/home/zabbix/bin/ + +# Location of external scripts +#ExternalScripts=/etc/zabbix/externalscripts + +# Location of 'fping. Default is /usr/sbin/fping +# Make sure that fping binary has root permissions and SUID flag set +#FpingLocation=/usr/sbin/fping + +# Location of fping6. Default is /usr/sbin/fping6 +# Make sure that fping binary has root permissions and SUID flag set +#Fping6Location=/usr/sbin/fping6 + +# Temporary directory. Default is /tmp +#TmpDir=/tmp + +# Frequency of ICMP pings (item keys 'icmpping' and 'icmppingsec'). Defauls is 60 seconds. +#PingerFrequency=60 + +# Database host name +# Default is localhost + +#DBHost=localhost + +# Database name +# SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored. +DBName=proxy + +# Database user + +DBUser=root + +# Database password +# Comment this line if no password used + +#DBPassword=<password> + +# Connect to MySQL using Unix socket? + +#DBSocket=/tmp/mysql.sock diff --git a/net-analyzer/zabbix/files/1.6.6/zabbix_server.conf b/net-analyzer/zabbix/files/1.6.6/zabbix_server.conf new file mode 100644 index 000000000000..2821ed2f1510 --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/zabbix_server.conf @@ -0,0 +1,155 @@ +# This is config file for ZABBIX server process +# To get more information about ZABBIX, +# go http://www.zabbix.com + +############ GENERAL PARAMETERS ################# + +# This defines unique NodeID in distributed setup, +# Default value 0 (standalone server) +# This parameter must be between 0 and 999 +#NodeID=0 + +# Number of pre-forked instances of pollers +# Default value is 5 +# This parameter must be between 0 and 255 +#StartPollers=5 + +# Number of pre-forked instances of IPMI pollers +# Default value is 0 +# This parameter must be between 0 and 255 +#StartIPMIPollers=0 + +# Number of pre-forked instances of pollers for unreachable hosts +# Default value is 1 +# This parameter must be between 0 and 255 +#StartPollersUnreachable=1 + +# Number of pre-forked instances of trappers +# Default value is 5 +# This parameter must be between 0 and 255 +#StartTrappers=5 + +# Number of pre-forked instances of ICMP pingers +# Default value is 1 +# This parameter must be between 0 and 255 +#StartPingers=1 + +# Number of pre-forked instances of discoverers +# Default value is 1 +# This parameter must be between 0 and 255 +#StartDiscoverers=1 + +# Number of pre-forked instances of HTTP pollers +# Default value is 1 +# This parameter must be between 0 and 255 +#StartHTTPPollers=1 + +# Listen port for trapper. Default port number is 10051. This parameter +# must be between 1024 and 32767 + +#ListenPort=10051 + +# Source IP address for outgouing connections +#SourceIP= + +# Listen interface for trapper. Trapper will listen all network interfaces +# if this parameter is missing. + +#ListenIP=127.0.0.1 + +# How often ZABBIX will perform housekeeping procedure +# (in hours) +# Default value is 1 hour +# Housekeeping is removing unnecessary information from +# tables history, alert, 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 response (in sec) +# Must be between 1 and 30 +Timeout=5 + +# Specifies how many seconds trapper may spend processing new data +# Must be between 1 and 30 +#TrapperTimeout=5 + +# After how many seconds of unreachability treat a host as unavailable +#UnreachablePeriod=45 + +# How ofter check host for availability during the unreachability period +#UnavailableDelay=15 + +# How ofter check host for availability during the unavailability period +#UnavailableDelay=60 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_server.pid + +# Name of log file +# If not set, syslog is used + +LogFile=/tmp/zabbix_server.log + +# Maximum size of log file in MB. Set to 0 to disable automatic log rotation. +#LogFileSize=1 + +# Location for custom alert scripts +AlertScriptsPath=/home/zabbix/bin/ + +# Location of external scripts +#ExternalScripts=/etc/zabbix/externalscripts + +# Location of fping. Default is /usr/sbin/fping +# Make sure that fping binary has root permissions and SUID flag set +#FpingLocation=/usr/sbin/fping + +# Location of fping6. Default is /usr/sbin/fping6 +# Make sure that fping binary has root permissions and SUID flag set +#Fping6Location=/usr/sbin/fping6 + +# Temporary directory. Default is /tmp +#TmpDir=/tmp + +# Frequency of ICMP pings (item keys 'icmpping' and 'icmppingsec'). Defauls is 60 seconds. +#PingerFrequency=60 + +# Database host name +# Default is localhost + +#DBHost=localhost + +# Database name +# SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored. +DBName=zabbix + +# Database user + +DBUser=root + +# Database password +# Comment this line if no password used + +#DBPassword=<password> + +# Connect to MySQL using Unix socket? + +#DBSocket=/tmp/mysql.sock diff --git a/net-analyzer/zabbix/files/1.6.6/zabbix_trapper.conf b/net-analyzer/zabbix/files/1.6.6/zabbix_trapper.conf new file mode 100644 index 000000000000..20222950bb96 --- /dev/null +++ b/net-analyzer/zabbix/files/1.6.6/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=/tmp/zabbix_trapper.log + +# Database host name +# Default is localhost + +#DBHost=localhost + +# Database name + +DBName=zabbix + +# Database user + +DBUser=root + +# Database password +# Comment this line if no password used + +#DBPassword=<password> + +# Connect to MySQL usig Unix socket? + +#DBSocket=/tmp/mysql.sock diff --git a/net-analyzer/zabbix/zabbix-1.6.6.ebuild b/net-analyzer/zabbix/zabbix-1.6.6.ebuild new file mode 100644 index 000000000000..6154d3c71a25 --- /dev/null +++ b/net-analyzer/zabbix/zabbix-1.6.6.ebuild @@ -0,0 +1,296 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.6.6.ebuild,v 1.1 2009/10/05 15:55:23 patrick Exp $ + +EAPI="2" + +inherit eutils flag-o-matic webapp depend.php + +DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers." +HOMEPAGE="http://www.zabbix.com/" +SRC_URI="mirror://sourceforge/zabbix/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +WEBAPP_MANUAL_SLOT="yes" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="agent curl frontend jabber ldap mysql oracle postgres proxy server snmp +sqlite3 openipmi" +DEPEND="snmp? ( net-analyzer/net-snmp ) + ldap? ( + net-nds/openldap + =dev-libs/cyrus-sasl-2* + net-libs/gnutls + ) + mysql? ( virtual/mysql ) + sqlite3? ( =dev-db/sqlite-3* ) + postgres? ( virtual/postgresql-base ) + jabber? ( dev-libs/iksemel ) + curl? ( net-misc/curl ) + openipmi? ( sys-libs/openipmi )" +RDEPEND="${RDEPEND} + proxy? ( net-analyzer/fping ) + server? ( net-analyzer/fping )" + +useq frontend && need_php_httpd + +pkg_setup() { + if useq server || useq proxy ; then + local dbnum dbtypes="mysql oracle postgres sqlite3" dbtype + declare -i dbnum=0 + for dbtype in ${dbtypes}; do + useq ${dbtype} && let dbnum++ + done + if [ ${dbnum} -gt 1 ]; then + eerror + eerror "You can't use more than one database type in Zabbix." + eerror "Select exactly one database type out of these: ${dbtypes}" + eerror + die "Multiple database types selected." + elif [ ${dbnum} -lt 1 ]; then + eerror + eerror "Select exactly one database type out of these: ${dbtypes}" + eerror + die "No database type selected." + fi + if useq oracle; then + if [ -z "${ORACLE_HOME}" ]; then + eerror + eerror "The environment variable ORACLE_HOME must be set" + eerror "and point to the correct location." + eerror "It looks like you don't have Oracle installed." + eerror + die "Environment variable ORACLE_HOME is not set" + fi + if has_version 'dev-db/oracle-instantclient-basic'; then + ewarn + ewarn "Please ensure you have a full install of the Oracle client." + ewarn "dev-db/oracle-instantclient* is NOT sufficient." + ewarn + fi + fi + fi + + if useq frontend; then + webapp_pkg_setup + require_gd + fi + + enewgroup zabbix + enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix +} + +pkg_postinst() { + if useq server || useq proxy ; then + elog + elog "You need to configure your database for Zabbix." + elog + elog "Have a look at /usr/share/zabbix/database for" + elog "database creation and upgrades." + elog + elog "For more info read the Zabbix manual at" + elog "http://www.zabbix.com/documentation.php" + elog + + zabbix_homedir="$(egetent passwd zabbix | cut -d : -f 6 )" + if [ -n "${zabbix_homedir}" ] && \ + [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then + ewarn + ewarn "The user 'zabbix' should have his homedir changed" + ewarn "to /var/lib/zabbix/home if you want to use" + ewarn "custom alert scripts." + ewarn + ewarn "A real homedir might be needed for configfiles" + ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" + ewarn "using sendxmpp for Jabber alerts)." + ewarn + ewarn "To change the homedir use:" + ewarn " usermod -d /var/lib/zabbix/home zabbix" + ewarn + fi + fi + + if useq server; then + elog + elog "For distributed monitoring you have to run:" + elog + elog "zabbix_server -n <nodeid>" + elog + elog "This will convert database data for use with Node ID" + elog "and also adds a local node." + elog + fi + + elog "--" + elog + elog "Add these lines in the /etc/services :" + elog + elog "zabbix-agent 10050/tcp Zabbix Agent" + elog "zabbix-agent 10050/udp Zabbix Agent" + elog "zabbix-trapper 10051/tcp Zabbix Trapper" + elog "zabbix-trapper 10051/udp Zabbix Trapper" + elog + + # repeat fowners/fperms functionality from src_install() + # here to catch wrong permissions on existing files in + # the live filesystem (yeah, that sucks). + chown -R zabbix:zabbix \ + "${ROOT}"/etc/zabbix \ + "${ROOT}"/var/lib/zabbix \ + "${ROOT}"/var/lib/zabbix/home \ + "${ROOT}"/var/lib/zabbix/scripts \ + "${ROOT}"/var/log/zabbix \ + "${ROOT}"/var/run/zabbix + chmod 0750 \ + "${ROOT}"/etc/zabbix \ + "${ROOT}"/var/lib/zabbix \ + "${ROOT}"/var/lib/zabbix/home \ + "${ROOT}"/var/lib/zabbix/scripts \ + "${ROOT}"/var/log/zabbix \ + "${ROOT}"/var/run/zabbix + + chmod 0640 \ + "${ROOT}"/etc/zabbix/zabbix_* + + if useq server || useq proxy ; then + # check for fping + fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null) + case "${fping_perms}" in + 4[157][157][157]) + ;; + *) + ewarn + ewarn "If you want to use the checks 'icmpping' and 'icmppingsec'," + ewarn "you have to make /usr/sbin/fping setuid root and executable" + ewarn "by everyone. Run the following command to fix it:" + ewarn + ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" + ewarn + ewarn "Please be aware that this might impose a security risk," + ewarn "depending on the code quality of fping." + ewarn + ebeep 3 + epause 5 + ;; + esac + fi +} + +src_configure() { + econf \ + $(use_enable server) \ + $(use_enable proxy) \ + $(use_enable agent) \ + $(use_with ldap) \ + $(use_with snmp net-snmp) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with oracle) \ + $(use_with sqlite3) \ + $(use_with jabber) \ + $(use_with curl libcurl) \ + $(use_with openipmi openipmi) \ + || die "econf failed" +} + +src_install() { + dodir \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + + keepdir \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + + if useq server; then + insinto /etc/zabbix + doins \ + "${FILESDIR}/${PV}"/zabbix_server.conf \ + "${FILESDIR}/${PV}"/zabbix_trapper.conf + doinitd \ + "${FILESDIR}/${PV}"/init.d/zabbix-server + dosbin \ + src/zabbix_server/zabbix_server + dodir \ + /usr/share/zabbix/database + insinto /usr/share/zabbix/database + doins -r \ + upgrades \ + create + fowners zabbix:zabbix \ + /etc/zabbix/zabbix_server.conf \ + /etc/zabbix/zabbix_trapper.conf + fperms 0640 \ + /etc/zabbix/zabbix_server.conf \ + /etc/zabbix/zabbix_trapper.conf + fi + + if useq proxy; then + echo "Proxy stuff" + dosbin \ + src/zabbix_proxy/zabbix_proxy + insinto /etc/zabbix + doins \ + "${FILESDIR}/${PV}"/zabbix_proxy.conf + dodir \ + /usr/share/zabbix/database + insinto /usr/share/zabbix/database + doins -r \ + upgrades \ + create + fi + + if useq agent; then + insinto /etc/zabbix + doins \ + "${FILESDIR}/${PV}"/zabbix_agent.conf \ + "${FILESDIR}/${PV}"/zabbix_agentd.conf + doinitd \ + "${FILESDIR}/${PV}"/init.d/zabbix-agentd + dosbin \ + src/zabbix_agent/zabbix_agent \ + src/zabbix_agent/zabbix_agentd + dobin \ + src/zabbix_sender/zabbix_sender \ + src/zabbix_get/zabbix_get + fowners zabbix:zabbix \ + /etc/zabbix/zabbix_agent.conf \ + /etc/zabbix/zabbix_agentd.conf + fperms 0640 \ + /etc/zabbix/zabbix_agent.conf \ + /etc/zabbix/zabbix_agentd.conf + fi + + fowners zabbix:zabbix \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + fperms 0750 \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + + dodoc README INSTALL NEWS ChangeLog + + if useq frontend; then + webapp_src_preinst + cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}" + webapp_postinst_txt en "${FILESDIR}/${PV}"/postinstall-en.txt + webapp_configfile \ + "${MY_HTDOCSDIR}"/include/db.inc.php \ + "${MY_HTDOCSDIR}"/include/config.inc.php + webapp_src_install + fi +} |