zabbix_agentd: updated to 1.4.4

This commit is contained in:
Mikhail Kolesnik 2008-02-23 01:02:28 +02:00
parent 428ac844f7
commit 4629b41d98
7 changed files with 54 additions and 42 deletions

View File

@ -8,6 +8,9 @@ drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/zabbix_agentd
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/log/
-rw------- daemon/daemon var/log/zabbix_agentd.log (EMPTY)
drwxr-xr-x root/root var/log/zabbix/
-rw------- daemon/daemon var/log/zabbix/zabbix_agentd.log (EMPTY)
-rw------- daemon/daemon var/log/zabbix/zabbix_agentd.log.old (EMPTY)
drwxr-xr-x root/root var/run/
drwxr-xr-x daemon/daemon var/run/zabbix_agentd/
drwx------ daemon/daemon var/run/zabbix_agentd/
-rw-r--r-- daemon/daemon var/run/zabbix_agentd/zabbix_agentd.pid (EMPTY)

View File

@ -1,3 +1,3 @@
ac24ab58ef1a985c1e2a5217386d5dba zabbix-1.1.7.tar.gz
d045d678625b21360fdb479166929f26 zabbix_agentd
39332900705c928549b95e3dfd124934 zabbix_agentd.conf
2b787b88c6cbf21283c1c24657b0d130 zabbix-1.4.4.tar.gz
9581d0439563883e13dd748d8ba0938f zabbix_agentd
8509a8d5141d72fe033e334fd90fde4f zabbix_agentd.conf

View File

@ -1,10 +1,10 @@
# Description: zabbix agentd
# Description: zabbix agent daemon
# URL: http://www.zabbix.com
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
# Depends on:
name=zabbix_agentd
version=1.1.7
version=1.4.4
release=1
source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \
zabbix_agentd.conf zabbix_agentd)
@ -14,10 +14,17 @@ build() {
./configure --prefix=/usr \
--enable-agent
make
mkdir -p $PKG/{var/log,var/run/zabbix_agentd,usr/bin}
chown daemon:daemon $PKG/var/run/zabbix_agentd
touch zabbix_agentd.log
install -m 600 -o daemon -g daemon zabbix_agentd.log $PKG/var/log
mkdir -p $PKG/{var/log/zabbix,var/run/zabbix_agentd,usr/bin}
touch $PKG/var/log/zabbix/{zabbix_agentd.log,zabbix_agentd.log.old}
chmod 600 $PKG/var/log/zabbix/*
chown -R daemon:daemon $PKG/var/log/zabbix/*
touch $PKG/var/run/zabbix_agentd/zabbix_agentd.pid
chmod 700 $PKG/var/run/zabbix_agentd
chown -R daemon:daemon $PKG/var/run/zabbix_agentd
install -m 755 src/zabbix_agent/zabbix_agentd $PKG/usr/bin
install -D -m 644 $SRC/zabbix_agentd.conf $PKG/etc/zabbix/zabbix_agentd.conf
install -D -m 755 $SRC/zabbix_agentd $PKG/etc/rc.d/zabbix_agentd

View File

@ -3,9 +3,7 @@ README for zabbix agent daemon
REQUIREMENTS
PRE-INSTALL
This port include zabbix_agentd. For other apps see my zabbix_agents port.
Do not combine zabbix_agentd with zabbix_agents and zabbix_server with
zabbix_agents ports.
This port include zabbix_agentd. For other apps see my zabbix_utils port.
POST-INSTALL
1. Change Hostname, ListenIP and Server in /etc/zabbix_agentd.conf to something useful.

View File

@ -41,8 +41,8 @@ if [ -z `getent passwd | gawk -F: '{ print $1 }' | grep ^$ADD_USER$` ]; then
fi
# additional
chown $ADD_USER:$ADD_GROUP /var/log/zabbix_agentd.log
chown $ADD_USER:$ADD_GROUP /var/run/zabbix_agentd
sed -i s/"su\ daemon\ \-c\ \/usr\/bin\/zabbix_agentd$"/"su\ $ADD_USER\ \-c\ \/usr\/bin\/zabbix_agentd"/ /etc/rc.d/zabbix_agentd
chown $ADD_USER:$ADD_GROUP /var/log/zabbix/zabbix_agentd.*
chown -R $ADD_USER:$ADD_GROUP /var/run/zabbix_agentd
sed -i "s|su daemon -c /usr/bin/zabbix_agentd|su $ADD_USER -c /usr/bin/zabbix_agentd|" /etc/rc.d/zabbix_agentd
exit $ADD_STATUS

View File

@ -12,7 +12,7 @@ stop)
;;
restart)
$0 stop
sleep 1
sleep 2
$0 start
;;
*)

View File

@ -7,67 +7,70 @@
# 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. Default is 10051
#
# Server port for sending active checks
#ServerPort=10051
# Unique hostname. Required for active checks.
#
Hostname=localhost
# Listen port. Default is 10050
#
#ListenPort=10050
# IP address to bind agent
# If missing, bind to all available IPs
#
ListenIP=127.0.0.1
#ListenIP=127.0.0.1
# Number of pre-forked instances of zabbix_agentd.
# Default value is 5
# This parameter must be between 1 and 16
#
# This parameter must be between 5 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.
# Default is 0
#
#DisableActive=1
# Enable remote commands for ZABBIX agent. By default remote commands are disabled.
#
# 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
# 3 - warnings
# 4 - information (default)
# 5 - for debugging (produces lots of information)
DebugLevel=3
# Name of PID file
#
PidFile=/var/run/zabbix_agentd/zabbix_agentd.pid
# Name of log file.
# If not set, syslog will be used
#
LogFile=/var/log/zabbix_agentd.log
LogFile=/var/log/zabbix/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. Default is 3
#
#Timeout=3
# Must be between 1 and 30
Timeout=3
####### USER-DEFINED MONITORED PARAMETERS #######
# Format: UserParameter=<key>,<shell command>
@ -82,3 +85,4 @@ LogFile=/var/log/zabbix_agentd.log
#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