Advertising:
Compilar el modulo zabbix module docker.so: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
==Compilar el modulo zabbix_module_docker.so== | ==Compilar el modulo zabbix_module_docker.so== | ||
'''ORIGEN:''' https://github.com/monitoringartist/zabbix-docker-monitoring#compilation | '''ORIGEN:''' https://github.com/monitoringartist/zabbix-docker-monitoring#compilation | ||
# Required CentOS/RHEL apps: yum install -y wget autoconf automake gcc git pcre-devel | |||
# Required Debian/Ubuntu apps: apt-get install -y wget autoconf automake gcc git make pkg-config libpcre3-dev | |||
# Required Fedora apps: dnf install -y wget autoconf automake gcc git make pcre-devel | |||
# Required openSUSE apps: zypper install -y wget autoconf automake gcc git make pkg-config pcre-devel | |||
# Required Gentoo apps 1: emerge net-misc/wget sys-devel/autoconf sys-devel/automake sys-devel/gcc | |||
# Required Gentoo apps 2: emerge dev-vcs/git sys-devel/make dev-util/pkgconfig dev-libs/libpcre | |||
# Source, use your version: git clone -b 4.2.2 --depth 1 https://git.zabbix.com/scm/zbx/zabbix.git /usr/src/zabbix_4.2.2 | |||
# git clone -b 4.2.2 --depth 1 https://git.zabbix.com/scm/zbx/zabbix.git /usr/src/zabbix_4.2.2 | # git clone -b 4.2.2 --depth 1 https://git.zabbix.com/scm/zbx/zabbix.git /usr/src/zabbix_4.2.2 |
Revision as of 09:49, 5 June 2020
Compilar el modulo zabbix_module_docker.so
ORIGEN: https://github.com/monitoringartist/zabbix-docker-monitoring#compilation
# Required CentOS/RHEL apps: yum install -y wget autoconf automake gcc git pcre-devel # Required Debian/Ubuntu apps: apt-get install -y wget autoconf automake gcc git make pkg-config libpcre3-dev # Required Fedora apps: dnf install -y wget autoconf automake gcc git make pcre-devel # Required openSUSE apps: zypper install -y wget autoconf automake gcc git make pkg-config pcre-devel # Required Gentoo apps 1: emerge net-misc/wget sys-devel/autoconf sys-devel/automake sys-devel/gcc # Required Gentoo apps 2: emerge dev-vcs/git sys-devel/make dev-util/pkgconfig dev-libs/libpcre # Source, use your version: git clone -b 4.2.2 --depth 1 https://git.zabbix.com/scm/zbx/zabbix.git /usr/src/zabbix_4.2.2
# git clone -b 4.2.2 --depth 1 https://git.zabbix.com/scm/zbx/zabbix.git /usr/src/zabbix_4.2.2 # cd /usr/src/zabbix_4.2.2 # ./bootstrap.sh # ./configure --enable-agent # mkdir src/modules/zabbix_module_docker # cd src/modules/zabbix_module_docker # wget https://raw.githubusercontent.com/monitoringartist/zabbix-docker-monitoring/master/src/modules/zabbix_module_docker/zabbix_module_docker.c # wget https://raw.githubusercontent.com/monitoringartist/zabbix-docker-monitoring/master/src/modules/zabbix_module_docker/Makefile # make
- El modulo solo funciona con el Agente 4.4.2 que es el que utilizamos para compilarlo. Para compilar el agente necesitamos hacer lo siguiente. # cd /usr/src/zabbix_4.2.2/src # make - Los nuevos binarios están en: zabbix_agentd -> /usr/src/zabbix_4.2.2/src/zabbix_agent zabbix_sender -> /usr/src/zabbix_4.2.2/src/zabbix_sender zabbix_get -> /usr/src/zabbix_4.2.2/src/zabbix_get
Configuracion del Agente
# vi /etc/zabbix/zabbix_agent.conf LoadModulePath=/etc/zabbix/modules/ LoadModule=zabbix_module_docker.so AllowRoot=1
Configuracion a nivel de OS
# usermod -aG docker zabbix
Agregamos el Template de Monitoring Artist
https://raw.githubusercontent.com/monitoringartist/zabbix-docker-monitoring/master/template/Zabbix-Template-App-Docker.xml