Advertising:
Compilar el modulo zabbix module docker.so: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 2: | Line 2: | ||
'''ORIGEN:''' https://github.com/monitoringartist/zabbix-docker-monitoring#compilation | '''ORIGEN:''' https://github.com/monitoringartist/zabbix-docker-monitoring#compilation | ||
# git clone -b 4.2.2 --depth 1 https://git.zabbix.com/scm/zbx/zabbix.git /usr/src/ | # 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/ | # cd /usr/src/zabbix_4.2.2 | ||
# ./bootstrap.sh | # ./bootstrap.sh | ||
# ./configure --enable-agent | # ./configure --enable-agent | ||
Line 11: | Line 11: | ||
# wget https://raw.githubusercontent.com/monitoringartist/zabbix-docker-monitoring/master/src/modules/zabbix_module_docker/Makefile | # wget https://raw.githubusercontent.com/monitoringartist/zabbix-docker-monitoring/master/src/modules/zabbix_module_docker/Makefile | ||
# make | # make | ||
===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 |
Revision as of 09:43, 5 June 2020
Compilar el modulo zabbix_module_docker.so
ORIGEN: https://github.com/monitoringartist/zabbix-docker-monitoring#compilation
# 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
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