Install Ubuntu 9.04 (Jaunty)
USER: zabbix / password123
with: OpenSSH Server (for Putty and WinSCP) and PostgreSQL
Login: sudo passwd root ( rootpass123 ) ; Set your own Root Password
LOGIN on as root ; not necessary but I use root...
apt-get update
apt-get dist-upgrade
apt-get install gnustep-make
apt-get install build-essential
apt-get install linux-headers-$(uname -r)
aptitude install ntp ntp-simple ntpdate ; Time server service
Change/Add in file: /etc/ntp.conf ; I used WinSCP
server xxx.xxx.xxx.xxx.xxx ; local NTP server1
server xxx.xxx.xxx.xxx.xxx ; local NTP server2
/etc/init.d/ntp restart
reboot now
LOGIN on as zabbix
sudo apt-get install apache2
sudo apt-get install postgresql-server-dev-8.3
sudo apt-get install php5 php5-gd php5-pgsql snmp libsnmp-dev snmpd libcurl4-openssl-dev fping
sudo apt-get install libiksemel3 libiksemel-dev
sudo apt-get install phppgadmin
; Download Zabbix, I used my browser and WinSCP, place in /home/zabbix
tar zxvpf zabbix-1.6.5.tar.gz
sudo -u postgres psql postgres
\password postgres
password123
\q
sudo -u postgres createuser --superuser zabbix
createdb zabbix
================ Now you can login to psql without sudo... SEE: https://help.ubuntu.com/community/PostgreSQL
cd zabbix-1.6.5/create/schema
cat postgresql.sql | psql zabbix
cd ../data
cat data.sql | psql zabbix
cat images_pgsql.sql | psql zabbix
cd ..
cd ..
sudo ./configure --enable-server --enable-agent --with-pgsql --with-net-snmp -with-jabber=/usr/ -with-libcurl # for PostgreSQL + Jabber + WEB monitoring
sudo make install
sudo nano /etc/services ; open zabbix's ports
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
sudo mkdir /etc/zabbix
sudo chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_* /etc/zabbix/
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
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 user
DBUser=zabbix
# Database password
# Comment this line if no password used
DBPassword=password123
sudo cp misc/init.d/debian/zabbix-server /etc/init.d
sudo cp misc/init.d/debian/zabbix-agent /etc/init.d
sudo nano /etc/init.d/zabbix-server ; change of destination path for later versions of Ubuntu...
Look for the following line:
DAEMON=/home/zabbix/bin/${NAME}
and replace it with:
DAEMON=/usr/sbin/${NAME} (old versions use /usr/bin/${NAME})
sudo nano /etc/init.d/zabbix-agent
***** DO THE SAME AGAIN LIKE ABOVE WITH FILE: zabbix-server
sudo chmod 755 /etc/init.d/zabbix-server
sudo update-rc.d zabbix-server defaults
sudo chmod 755 /etc/init.d/zabbix-agent
sudo update-rc.d zabbix-agent defaults
sudo /etc/init.d/zabbix-server start
sudo /etc/init.d/zabbix-agent start
ps -aux | grep zabbix
cd /home/zabbix/zabbix-1.6.5/
mkdir /home/zabbix/public_html
cp -R frontends/php/* /home/zabbix/public_html/
sudo nano /etc/apache2/sites-enabled/000-default ; Zabbix is default site
REPLACE: ====================================
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
REPLACE: ====================================
WITH: ====================================
DocumentRoot /home/zabbix/public_html
<Directory /home/zabbix/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
WITH: ====================================
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 = Europe/Copenhagen ; Choose your time zone and remove the semi-colon...
sudo nano /usr/share/phppgadmin/conf/config.inc.php ; login for postgres user allowed in the Web-Admin module...
CHANGE:
$conf['extra_login_security'] = true;
TO:
$conf['extra_login_security'] = false;
sudo nano /etc/phppgadmin/apache.conf
CHANGE:
deny from all
TO:
allow from all
sudo /etc/init.d/apache2 restart OR reboot now
LOG ON to Zabbix: http://xxx.xxx.xxx.xxx --- Admin / zabbix
LOG ON to PostGreSQL Admin: http://xxx.xxx.xxx.xxx/phppgadmin --- postgres / password123
USER: zabbix / password123
with: OpenSSH Server (for Putty and WinSCP) and PostgreSQL
Login: sudo passwd root ( rootpass123 ) ; Set your own Root Password
LOGIN on as root ; not necessary but I use root...
apt-get update
apt-get dist-upgrade
apt-get install gnustep-make
apt-get install build-essential
apt-get install linux-headers-$(uname -r)
aptitude install ntp ntp-simple ntpdate ; Time server service
Change/Add in file: /etc/ntp.conf ; I used WinSCP
server xxx.xxx.xxx.xxx.xxx ; local NTP server1
server xxx.xxx.xxx.xxx.xxx ; local NTP server2
/etc/init.d/ntp restart
reboot now
LOGIN on as zabbix
sudo apt-get install apache2
sudo apt-get install postgresql-server-dev-8.3
sudo apt-get install php5 php5-gd php5-pgsql snmp libsnmp-dev snmpd libcurl4-openssl-dev fping
sudo apt-get install libiksemel3 libiksemel-dev
sudo apt-get install phppgadmin
; Download Zabbix, I used my browser and WinSCP, place in /home/zabbix
tar zxvpf zabbix-1.6.5.tar.gz
sudo -u postgres psql postgres
\password postgres
password123
\q
sudo -u postgres createuser --superuser zabbix
createdb zabbix
================ Now you can login to psql without sudo... SEE: https://help.ubuntu.com/community/PostgreSQL
cd zabbix-1.6.5/create/schema
cat postgresql.sql | psql zabbix
cd ../data
cat data.sql | psql zabbix
cat images_pgsql.sql | psql zabbix
cd ..
cd ..
sudo ./configure --enable-server --enable-agent --with-pgsql --with-net-snmp -with-jabber=/usr/ -with-libcurl # for PostgreSQL + Jabber + WEB monitoring
sudo make install
sudo nano /etc/services ; open zabbix's ports
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
sudo mkdir /etc/zabbix
sudo chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_* /etc/zabbix/
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
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 user
DBUser=zabbix
# Database password
# Comment this line if no password used
DBPassword=password123
sudo cp misc/init.d/debian/zabbix-server /etc/init.d
sudo cp misc/init.d/debian/zabbix-agent /etc/init.d
sudo nano /etc/init.d/zabbix-server ; change of destination path for later versions of Ubuntu...
Look for the following line:
DAEMON=/home/zabbix/bin/${NAME}
and replace it with:
DAEMON=/usr/sbin/${NAME} (old versions use /usr/bin/${NAME})
sudo nano /etc/init.d/zabbix-agent
***** DO THE SAME AGAIN LIKE ABOVE WITH FILE: zabbix-server
sudo chmod 755 /etc/init.d/zabbix-server
sudo update-rc.d zabbix-server defaults
sudo chmod 755 /etc/init.d/zabbix-agent
sudo update-rc.d zabbix-agent defaults
sudo /etc/init.d/zabbix-server start
sudo /etc/init.d/zabbix-agent start
ps -aux | grep zabbix
cd /home/zabbix/zabbix-1.6.5/
mkdir /home/zabbix/public_html
cp -R frontends/php/* /home/zabbix/public_html/
sudo nano /etc/apache2/sites-enabled/000-default ; Zabbix is default site
REPLACE: ====================================
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
REPLACE: ====================================
WITH: ====================================
DocumentRoot /home/zabbix/public_html
<Directory /home/zabbix/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
WITH: ====================================
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 = Europe/Copenhagen ; Choose your time zone and remove the semi-colon...
sudo nano /usr/share/phppgadmin/conf/config.inc.php ; login for postgres user allowed in the Web-Admin module...
CHANGE:
$conf['extra_login_security'] = true;
TO:
$conf['extra_login_security'] = false;
sudo nano /etc/phppgadmin/apache.conf
CHANGE:
deny from all
TO:
allow from all
sudo /etc/init.d/apache2 restart OR reboot now
LOG ON to Zabbix: http://xxx.xxx.xxx.xxx --- Admin / zabbix
LOG ON to PostGreSQL Admin: http://xxx.xxx.xxx.xxx/phppgadmin --- postgres / password123
I setup a machine and did exactly what you have written, but when i get to this point :
Comment