This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Zabbix ====== [[https://www.zabbix.com|Zabbix]] is a comprehensive monitor tool that collects data, store it and displays nicely. Zabbix comes as a server and an agent, the server store data and displays it using a PHP based web interface, while the agents collects data from hosts and send it to the server. ==== Server Installation ==== Zabbix is available in Gentoo portage, but for installing the Zabbix server i prefer to use a podman container approach, because: * Zabbix server depends on PostgreSQL or MariaDB, and i don't want to manage either directly * Zabbix web UI is based on PHP, and i don't want to share a PHP instance between two services nor manually run multiple PHP instances * Zabbix is managed by Gentoo's webroot stuff, and i don't like it Using a container is pretty easy for the server part and better suited to my approach. Read [[https://www.zabbix.com/documentation/current/en/manual/installation/containers#docker-compose|this]] page to understand what i will be doing here. The Zabbix docker repository is [[https://github.com/zabbix/zabbix-docker|here]], you need to create (as usual) a dedicated user and clone the repo: <code bash> useradd -d /data/daemons/zabbixserver -m zabbixserver su - zabbixserver git clone https://github.com/zabbix/zabbix-docker.git cd zabbix-docker </code> Now you need to choose which version on base OS and database you want in the container... The Zabbix people like to make things complex, so you can choose beween many Linux flavours and both MariaDB or PostgreSQL. I choose Alpine (the smallest) and PostgreSQL. Then you need to go trough all the mess they did with compose (yes i know, it's advanced compose usage to leverage blah blah blah) and extrapolate a single, linear, working compose file. I did it for you, here it is: <file - docker-compose.yml> </file> TBD Pull the images: <code bash> su - tubearchivist podman compose pull </code> ==== Reverse Proxy ==== Follow the [[selfhost:nginx|The Reverse Proxy concept]] and the [[selfhost:sso|Authentication]] pages. TBD ==== Agent Installation ==== TBD ===== Autostart ===== To start it, and set it up on boot, as usual follow my indications [[gentoo:containers|Using Containers on Gentoo]], so link the **user-containers** init script: <code> ln -s /etc/init.d/user-containers /etc/init.d/user-containers.zabbixserver </code> and create the following config file: <file - /etc/conf.d/user-containers.zabbixserver> USER=zabbixserver DESCRIPTION="Zabbix server and frontend" </file> Add the service to the default runlevel and start it now: <code bash> rc-update add user-containers.zabbixserver default rc-service user-containers.zabbixserver start </code>