User:MalakymR/Zabbix
From Gentoo Wiki
Jump to:navigation
Jump to:search
Resources
USE flags
USE flags for net-analyzer/zabbix ZABBIX is software for monitoring of your applications, network and servers
+agent
|
Enable zabbix agent (for to-be-monitored machines) |
+agent2
|
Enable go-based zabbix agent 2 (for to-be-monitored machines) |
+openssl
|
Use dev-libs/openssl as TLS backend |
+postgres
|
Add support for the postgresql database |
curl
|
Add support for client-side URL transfer library |
frontend
|
Enable zabbix web frontend |
gnutls
|
Prefer net-libs/gnutls as SSL/TLS provider (ineffective with USE=-ssl) |
ipv6
|
Turn on support of IPv6 |
java
|
Enable Zabbix Java JMX Management Gateway |
ldap
|
Add LDAP support (Lightweight Directory Access Protocol) |
libxml2
|
Use libxml2 client library |
mysql
|
Add mySQL Database support |
odbc
|
Enable Database Monitor and use UnixODBC Library by default |
openipmi
|
Enable openipmi things |
oracle
|
Enable Oracle Database support |
proxy
|
Enable proxy support |
selinux
|
!!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur |
server
|
Enable zabbix server |
snmp
|
Add support for the Simple Network Management Protocol if available |
sqlite
|
Add support for sqlite - embedded sql database |
ssh
|
SSH v2 based checks |
static
|
Build statically linked binaries |
Prepare zabbix server
net-analyzer/zabbix agent frontend server mysql
#feel free to use another database. it is example.
root #
emerge --ask net-analyzer/zabbix
Adding info about zabbix services into /etc/service
...
# Local services
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
installation web interface (frontend)
root #
cp -r /usr/share/webapps/zabbix/<version>/htdocs/* /var/www/<place for>/zabbix
php req
dev-lang/php gd bcmath session sockets xml xmlwriter xmlreader mysql #feel free to change database
create mysql backend database for zabbix
root #
mysql -u root -p <password>
root #
create database zabbix character set utf8 collate utf8_bin;
root #
grant all privileges on zabbix.* to zabbix@localhost identified by '<zabbix-user-password>';
root #
quit;
root #
mysql -u zabbix -p zabbix < /usr/share/zabbix/database/mysql/schema.sql
root #
mysql -u zabbix -p zabbix < /usr/share/zabbix/database/mysql/images.sql
root #
mysql -u zabbix -p zabbix < /usr/share/zabbix/database/mysql/data.sql