Zabbix Appliance
Zabbix Appliance
Zabbix Appliance
1/8
5. Zabbix appliance
5. Zabbix appliance
Overview
As an alternative to setting up manually or reusing an existing server for Zabbix, users may download
a Zabbix appliance or Zabbix appliance installation CD image. Zabbix appliance installation CD could
be used for instant deployment of Zabbix server (MySQL), Zabbix server (PostgreSQL), Zabbix proxy
(MySQL) and Zabbix proxy (SQLite 3).
Zabbix Appliance virtual machines have prepared Zabbix server with MySQL support. It is built using
Zabbix appliance installation CD.
vmdk (VMware/Virtualbox)
OVF (Open Virtualisation Format)
KVM
HDD/flash image, USB stick
Live CD/DVD
Xen guest
Microsoft VHD (Azure)
Microsoft VHD (Hyper-V)
To get started, boot the appliance and point your browser at the IP it has received over DHCP:
http://<host_ip>/zabbix
It has Zabbix server configured and running on MySQL, as well as frontend available.
The appliance has been built using standard Ubuntu/Debian feature called Preseed files.
1 Changes to Ubuntu configuration
There are some changes applied to the base Ubuntu configuration.
1.1 Repositories
manual:appliance https://www.zabbix.com/documentation/3.0/manual/appliance
1.2 Firewall
Various basic utilities have been added that could make working with Zabbix and monitoring in
general easier:
iptables-persistent
mc
htop
snmptrapfmt
snmp-mibs-downloader
Some of these packages are used by Zabbix, some of them are installed to help users to
configure/manage appliance settings.
By default the appliance uses DHCP to obtain the IP address. To specify a static IP address:
For more information about other possible options see the official Ubuntu documentation.
https://www.zabbix.com/documentation/3.0/
2016/11/03 10:53
3/8
5. Zabbix appliance
To configure DNS, add nameserver entries in /etc/resolv.conf, specifying each nameserver on its own
line: nameserver 192.168.1.2.
By default the appliance uses UTC for the system clock. To change the time zone, copy the
appropriate file from /usr/share/zoneinfo to /etc/localtime, for example:
cp /usr/share/zoneinfo/Europe/Riga /etc/localtime
2 Zabbix configuration
Appliance Zabbix setup has the following passwords and other configuration changes:
System:
appliance:zabbix
Use sudo su command with appliance user name password to get root access rights
manual:appliance https://www.zabbix.com/documentation/3.0/manual/appliance
Database:
root:<random>
zabbix:<random>
Admin:zabbix
To change the database user password it has to be changed in the following locations:
MySQL;
/etc/zabbix/zabbix_server.conf;
/etc/zabbix/web/zabbix.conf.php.
If you are running a Live CD/DVD version of the appliance or for some other reason cannot have
persistent storage, you can create a backup of the whole database, including all configuration and
gathered data.
To create the backup, run:
sudo mysqldump zabbix | bzip2 -9 > dbdump.bz2
Now you can transfer the dbdump.bz2 file to another machine.
To restore from the backup, transfer it to the appliance and execute:
bzcat dbdump.bz2 | sudo mysql zabbix
https://www.zabbix.com/documentation/3.0/
2016/11/03 10:53
5/8
5. Zabbix appliance
Make sure that Zabbix server is stopped while performing the restore.
3 Frontend access
Access to frontend by default is allowed from everywhere.
The frontend can be accessed http://<host>/zabbix.
This can be customised in /etc/apache2/conf-available/zabbix.conf. You have to restart the
webserver after modifying this file. To do so, log in using SSH as root user and execute:
service apache2 restart
4 Firewall
By default, only the ports listed in changes are open. To open additional ports just modify
/etc/iptables/rules.v4 or /etc/iptables/rules.v6 files and reload firewall rules:
service iptables-persistent reload
5 Monitoring capabilities
Zabbix installation is provided with the support for the following:
SNMP
IPMI
Web monitoring
VMware monitoring
Jabber notifications
EZ Texting notifications
ODBC
SSH2
IPv6
SNMP Traps
Zabbix Java Gateway
6 SNMP traps
Zabbix appliance uses snmptrapfmt to handle SNMP traps. It is configured to receive all traps from
everywhere.
Authentication is not required. If you would like to enable authentication, you need to change the
/etc/snmp/snmptrapd.conf file and specify required auth settings.
All traps are stored in the /var/log/zabbix/snmptrapfmt.log file. It is rotated by logrotate before
reaching 2GB file size.
manual:appliance https://www.zabbix.com/documentation/3.0/manual/appliance
7 Upgrading
The appliance Zabbix packages may be upgraded. To do so, run:
sudo apt-get --only-upgrade install zabbix*
8 Naming, init and other scripts
Appropriate init scripts are provided. To control Zabbix server, use any of these:
service zabbix-server status
Replace server with agent for Zabbix agent daemon or with proxy for Zabbix proxy daemon.
Don't disable DOS compatibility mode by entering c. Proceeding with it disabled will damage the
partition.
Then delete the existing partition and create a new one with the desired size. In the majority of cases
you will accept the available maximum, which will expand the filesystem to whatever size you made
available for the virtual disk. To do so, enter the following sequence in fdisk prompt:
d
n
p
1
(accept default 63)
(accept default max)
https://www.zabbix.com/documentation/3.0/
2016/11/03 10:53
7/8
5. Zabbix appliance
If you wish to leave some space for additional partitions (swap etc), you can enter another value for
last sector. When done, save the changes by issuing:
w
After partition creation (new disk or extended existing) create physical volume:
pvcreate /dev/sdb1
Partition name /dev/sdb1 is used in the example; in your case disk name and partition number could
be different. You can check partition number using fdisk -l /dev/sdb command.
Check newly created physical volume:
pvdisplay /dev/sdb1
Check available physical volumes. There must be 2 volumes zabbix-vg and newly created:
pvs
Extend your existing volume group with the newly created physical volume:
vgextend zabbix-vg /dev/sdb1
Check zabbix-vg volume group:
vgdisplay
Now extend your logical volume with the free PE space:
lvextend -l +100%FREE /dev/mapper/zabbix--vg-root
Resize your root volume (can be done on a live sysyem):
resize2fs /dev/mapper/zabbix--vg-root
Reboot the virtual machine (as the partition we modified is in use currently). That's it, filesystem
should be grown to the partition size now. Check /dev/mapper/zabbixvg-root volume:
df -h
9 Format-specific notes
9.1 Xen
manual:appliance https://www.zabbix.com/documentation/3.0/manual/appliance
To use Xen images with Citrix Xenserver you have to convert the disk image. To do so:
xe vdi-list params=all
If there are lots of disks, they can be filtered by the name parameter name-label, as assigned when
creating the virtual disk
Import the image
9.2 VMware
The images in vmdk format are usable directly in VMware Player, Server and Workstation products.
For use in ESX, ESXi and vSphere they must be converted using VMware converter.
From:
https://www.zabbix.com/documentation/3.0/ - Zabbix Documentation 3.0
Permanent link:
https://www.zabbix.com/documentation/3.0/manual/appliance
Last update: 2016/08/09 12:46
https://www.zabbix.com/documentation/3.0/