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)
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
openssl Use dev-libs/openssl as TLS backend
oracle Enable Oracle Database support
pcre2 Use dev-libs/libpcre2 instead of dev-libs/libpcre
postgres Add support for the postgresql database
proxy Enable proxy support
server Enable zabbix server
snmp Add support for the Simple Network Management Protocol if available
sqlite Add support for sqliteembedded sql database
ssh SSH v2 based checks
static Build statically linked binaries

Prepare zabbix server

FILE /etc/portage/package.useEnable
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

FILE /etc/servicesAdding info about zabbix services
...
# 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

FILE /etc/portage/package.usePHP USE flag's
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