Skip to content

Commit

Permalink
Fix #99
Browse files Browse the repository at this point in the history
  • Loading branch information
jangaraj committed Feb 2, 2018
1 parent 60a1dae commit 356a475
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile/dockbix-xxl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ENV \
ZS_LoadModulePath=/usr/lib/zabbix/modules \
ZS_JavaGateway=127.0.0.1 \
ZS_JavaGatewayPort=10052 \
ZS_SNMPTrapperFile=/tmp/zabbix_traps.tmp \
ZW_ZBX_SERVER=localhost \
ZW_ZBX_SERVER_PORT=10051 \
ZW_ZBX_SERVER_NAME="Zabbix Server" \
Expand Down Expand Up @@ -141,10 +142,10 @@ RUN \
rm -rf ${FPING_VERSION}.tar.gz && \
cd /usr/local/src/zabbix/frontends/php && \
locale/make_mo.sh && \
yum autoremove -y gettext svn gcc automake mariadb-devel zlib-devel \
yum autoremove -y gettext svn gcc automake mariadb-devel \
java-1.8.0-openjdk-devel libxml2-devel libcurl-devel \
OpenIPMI-devel iksemel-devel rubygems ruby-devel \
kernel-headers ruby-devel unixODBC-devel && \
ruby-devel unixODBC-devel && \
yum install -y OpenIPMI-libs && \
chmod +x /config/bootstrap.sh && \
chmod +x /config/ds.sh && \
Expand Down Expand Up @@ -199,7 +200,8 @@ RUN \
grep 'XXL extensions' /usr/local/src/zabbix/frontends/php/include/menu.inc.php && \
sed -i "s#'admin': 0},# 'admin': 0, 'xxl': 0},#g" /usr/local/src/zabbix/frontends/php/js/main.js && \
grep "'xxl': 0}" /usr/local/src/zabbix/frontends/php/js/main.js && \
rm -rf /tmp/*
rm -rf /tmp/* && \
touch /tmp/zabbix_traps.tmp

CMD ["/config/bootstrap.sh"]

Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,23 @@ docker run \
--env="XXL_zapix=true" \
--env="XXL_grapher=true" \
monitoringartist/dockbix-xxl:latest

## SNMP Trapper
docker run \
-d \
--name dockbix \
-p 80:80 \
-p 10051:10051 \
-v /etc/localtime:/etc/localtime:ro \
--link dockbix-db:dockbix.db \
--env="SNMPTRAP_enabled=true" \
--env="ZS_DBHost=dockbix.db" \
--env="ZS_DBUser=zabbix" \
--env="ZS_DBPassword=my_password" \
--env="ZS_StartSNMPTrapper=1" \
--env="XXL_zapix=true" \
--env="XXL_grapher=true" \
monitoringartist/dockbix-xxl:latest
```

#### Up and Running with Docker Compose
Expand Down

0 comments on commit 356a475

Please sign in to comment.