quarta-feira, 23 de setembro de 2009

Instalacao do ZABBIX

Zabbix é um software de monitoramento de rede. Com ele podemos monitorar Roteadores, Servidores Linux e Windows, Links de Internet, Switches e qualquer outro equipamento que possui o protocolo SNMP.

apt-get install apache2
apt-get install mysql-server

colocar no /etc/apt/sources.list a linha

deb http://mirror.opf.slu.cz/zabbix unstable contrib deb http://mirror.opf.slu.cz/zabbix unstable contrib

# Atualiza o repositorio

apt-get update

# Instalacao das biliotecas

apt-get install libldap2-dev libmysqlclient-dev libssl-dev libsnmp-dev

apt-get install libapache2-mod-php5 php5-gd php5-mysql

# Instalar o FrontEnd PHP

apt-get install zabbix-frontend-php

# Instalar o ZABBIX

apt-get install zabbix-server-mysql

# Modificar o PHP. ini

/etc/php5/apache2/php.ini
Descomentar a linha date.timezone = America/Sao_Paulo

Instalacao do Agente Windows

1. Fazer download em :

http://www.zabbix.com/download.php

2. Instalar o winzip para descompactar o arquivo

3. Extrair os arquivo para c:\zabbix

4 . Criar um arquivo de nome zabbix_agentd.conf com o conteudo abaixo


# 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=localhost

# Spend no more than Timeout seconds on processing
# Must be between 1 and 30

Timeout=3

####### USER-DEFINED MONITORED PARAMETERS #######
# Format: UserParameter=,
# 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 and add -p 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


Vá no prompt do DOS (cmd) e instale o agente da seguinte forma:

cd\zabbix

C:\zabbix>zabbix_agentd.exe -i -c c:\zabbix\zabbix_agentd.conf
zabbix_agentd.exe [2092]: Service “ZABBIX Agent” installed successfully.
zabbix_agentd.exe [2092]: Event source “ZABBIX Agent” installed successfully.

inicie o serviço do zabbix pelo services.msc


Apos iniciar , va para interface de administracao do Zabbix entre em configuration, hosts, create hosts. Adicione o host recem criado.



Nenhum comentário:

Postar um comentário