Professional Documents
Culture Documents
DBUser=<usuariozabbix>
DBPassorw=<senha>
Copie a pasta com os scripts php e páginas
HTML para o raiz do servidor Web:
# cd zabbix-1.8.2
# cp –r frontends/php /var/www/zabbix
# chown –R www-data.www-data
/var/www/zabbix
Copie os scripts para a pasta de inicialização:
# cd zabbix-1.8.2
# cp misc/init.d/debian/zabbix-agent /etc/init.d
# cp misc/init.d/debian/zabbix-server /etc/init.d
# chmod 755 /etc/init.d/zabbix-agent
# chmod 755 /etc/init.d/zabbix-server
# cd /etc/init.d
# update-rc.d zabbix-agent defaults
# update-rc.d zabbix-server defaults
Edite /etc/init.d/zabbix-agent para adaptar
alguns parâmetros:
DAEMON=/usr/local/zabbix/sbin/${NAME}
PID=/tmp/$NAME.pid
case "$1" in
start)
echo "Starting $DESC: $NAME"
start-stop-daemon --oknodo --exec $DAEMON --pidfile $PID -
-start -- -c /usr/local/zabbix/etc/zabbix_agentd.conf
;;
stop)
echo "Stopping $DESC: $NAME"
start-stop-daemon --oknodo --exec $DAEMON --pidfile $PID -
-stop -- -c /usr/local/zabbix/etc/zabbix_agentd.conf
;;
Edite /etc/init.d/zabbix-server para adaptar
alguns parâmetros:
DAEMON=/usr/local/zabbix/sbin/${NAME}
PID=/tmp/$NAME.pid
case "$1" in
start)
echo "Starting $DESC: $NAME"
start-stop-daemon --oknodo --exec $DAEMON --pidfile $PID -
-start -- -c /usr/local/zabbix/etc/zabbix_server.conf
;;
stop)
echo "Stopping $DESC: $NAME"
start-stop-daemon --oknodo --exec $DAEMON --pidfile $PID -
-stop -- -c /usr/local/zabbix/etc/zabbix_server.conf
;;
Após a configuração, inicie os serviços e
confirme se estão sendo executados:
# /etc/init.d/zabbix-server start
# /etc/init.d/zabbix-agent start