Giter VIP home page Giter VIP logo

docker-zabbix-agent's Introduction

Zabbix Agent Docker Image

Circle CI GitHub Open Issues GitHub Stars GitHub Forks
Stars on Docker Hub Pulls on Docker Hub
Docker Layers

Deploy to Docker Cloud

This is a million12/zabbix-agent docker image with Zabbix Agent. It's based on CentOS-7 official image.

The Zabbix agent has been patched to read system informations from these directories:

/data/proc mapped from /proc on the real host
/data/dev mapped from /dev on the real host
/data/sys mapped from /sys on the real host

Zabbix agent is running in foreground.

Build the image

docker build -t million12/zabbix-agent .

ENV variables

ZABBIX_SERVER - Zabbix Server address
HOSTNAME - hostname
HOST_METADATA - the metadata value shared by all servers on the same cluster. This value will match the autoregistration action
CONFIG_FILE - config file path. (Used if custom file and path needed)

Usage

Basic

docker run \
-d \
-p 10050:10050 \
million12/zabbix-agent

Mount custom config, set server ip

docker run \
-d \
-p 10050:10050 \
-v /my-zabbix-agent-config.conf:/etc/zabbix_agentd.conf \
-e ZABBIX_SERVER=zabbix_server.ip \
-e HOSTNAME=my.zabbix \
-e CONFIG_FILE=/etc/zabbix_agentd.conf \
million12/zabbix-agent

Read data from Host OS

docker run \
-d \
-p 10050:10050 \
-v /proc:/data/proc \
-v /sys:/data/sys \
-v /dev:/data/dev \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /my-zabbix-agent-config.conf:/etc/zabbix_agentd.conf \
--env="ZABBIX_SERVER=zabbix_server.ip" \
million12/zabbix-agent

Author

Author: Przemyslaw Ozgo ([email protected])
This work is also inspired by bhuisgen's work on his docker images. Many thanks!


Sponsored by Prototype Brewery - the new prototyping tool for building highly-interactive prototypes of your website or web app. Built on top of Neos CMS and Zurb Foundation framework.

docker-zabbix-agent's People

Contributors

pozgo avatar kompa3 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.