ZABBIX EN DEBIAN-UBUNTU
Install pre-requisites:
Apache
MySQL-Server
PHP5
Net-Snmp libraries
aptitude install build-essentials mysql-server php5 php5-gd snmp libsnmp9-dev snmpd php5-mysql libmysqlclient15-dev (error de librerias )
1 - Make the zabbix user and group:
sudo adduser zabbix
enter in new password
confirm
use the remaining defaults.
Add zabbix to the admin group:
sudo adduser zabbix admin
2 - Download and Untar the sources:
su - zabbix
wget http://internap.dl.sourceforge.net/s...bix-1.4.tar.gz
tar zxvpf zabbix-1.4.tar.gz
3 - Create a zabbix database and populate it:
mysql -u root -p
create database zabbix;
quit;
mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/schema/mysql.sql
mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/data/data.sql
4 - Configure, compile and install the server:
cd zabbix-1.4/
./configure --prefix=/usr --with-mysql --with-net-snmp \
--enable-server --enable-agent &&
make
sudo make install
5 - Prepare the rest of the system:
sudo nano /etc/services
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
Save and exit.
sudo mkdir /etc/zabbix
sudo chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_* /etc/zabbix/
Edit /etc/zabbix/zabbix_agentd.conf:
nano /etc/zabbix/zabbix_agentd.conf
Make sure that the Server parameter points to the server address, for the agent that runs on the server it is like this:
Server=127.0.0.1
Edit /etc/zabbix/zabbix_server.conf:
nano /etc/zabbix/zabbix_server.conf
For small sites this default file will do, however if you are into tweaking your config for your 10+ hosts site, this is the place.
Change this:
# Database password
# Comment this line if no password used
DBPassword=Secret
Start the server :
zabbix_server
Start the client:
zabbix_agentd &
6 - Configure web interface
mkdir /home/zabbix/public_html
cp -R frontends/php/* /home/zabbix/public_html/
Edit /etc/apache2/sites-enabled/000-default:
sudo nano /etc/apache2/sites-enabled/000-default
Work into file:
Alias /zabbix/ /home/zabbix/public_html/
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order allow,deny
Allow from all
Order deny,allow
Deny from all
Save and exit.
Make php.ini adjustments:
sudo nano /etc/php5/apache2/php.ini
Change the following values:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
date.timezone = America/Kentucky/Louisville
(use this url to find your correct timezone format: http://us3.php.net/manual/en/timezones.php )
Restart Apache:
sudo /etc/init.d/apache2 restart
Install pre-requisites:
Apache
MySQL-Server
PHP5
Net-Snmp libraries
aptitude install build-essentials mysql-server php5 php5-gd snmp libsnmp9-dev snmpd php5-mysql libmysqlclient15-dev (error de librerias )
1 - Make the zabbix user and group:
sudo adduser zabbix
enter in new password
confirm
use the remaining defaults.
Add zabbix to the admin group:
sudo adduser zabbix admin
2 - Download and Untar the sources:
su - zabbix
wget http://internap.dl.sourceforge.net/s...bix-1.4.tar.gz
tar zxvpf zabbix-1.4.tar.gz
3 - Create a zabbix database and populate it:
mysql -u root -p
create database zabbix;
quit;
mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/schema/mysql.sql
mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/data/data.sql
4 - Configure, compile and install the server:
cd zabbix-1.4/
./configure --prefix=/usr --with-mysql --with-net-snmp \
--enable-server --enable-agent &&
make
sudo make install
5 - Prepare the rest of the system:
sudo nano /etc/services
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
Save and exit.
sudo mkdir /etc/zabbix
sudo chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_* /etc/zabbix/
Edit /etc/zabbix/zabbix_agentd.conf:
nano /etc/zabbix/zabbix_agentd.conf
Make sure that the Server parameter points to the server address, for the agent that runs on the server it is like this:
Server=127.0.0.1
Edit /etc/zabbix/zabbix_server.conf:
nano /etc/zabbix/zabbix_server.conf
For small sites this default file will do, however if you are into tweaking your config for your 10+ hosts site, this is the place.
Change this:
# Database password
# Comment this line if no password used
DBPassword=Secret
Start the server :
zabbix_server
Start the client:
zabbix_agentd &
6 - Configure web interface
mkdir /home/zabbix/public_html
cp -R frontends/php/* /home/zabbix/public_html/
Edit /etc/apache2/sites-enabled/000-default:
sudo nano /etc/apache2/sites-enabled/000-default
Work into file:
Alias /zabbix/ /home/zabbix/public_html/
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order allow,deny
Allow from all
Order deny,allow
Deny from all
Save and exit.
Make php.ini adjustments:
sudo nano /etc/php5/apache2/php.ini
Change the following values:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
date.timezone = America/Kentucky/Louisville
(use this url to find your correct timezone format: http://us3.php.net/manual/en/timezones.php )
Restart Apache:
sudo /etc/init.d/apache2 restart
Comentarios