Browse Source

added snmp package; added suid to fping

tags/v1.0.0^0
Robin Thoni 7 years ago
parent
commit
46ccd85e9f
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      zabbix/Dockerfile

+ 5
- 1
zabbix/Dockerfile View File

10
     dpkg -i /tmp/zabbix.deb
10
     dpkg -i /tmp/zabbix.deb
11
 
11
 
12
 RUN apt-get update && apt-get -y install\
12
 RUN apt-get update && apt-get -y install\
13
-        zabbix-server-pgsql &&\
13
+        zabbix-server-pgsql\
14
+        snmp &&\
14
         apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
15
         apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
15
 
16
 
16
 RUN chown -R zabbix:zabbix /etc/zabbix &&\
17
 RUN chown -R zabbix:zabbix /etc/zabbix &&\
22
     chown zabbix:zabbix /var/log/zabbix/ &&\
23
     chown zabbix:zabbix /var/log/zabbix/ &&\
23
     ln -s /dev/stdout /var/log/zabbix/zabbix_server.log
24
     ln -s /dev/stdout /var/log/zabbix/zabbix_server.log
24
 
25
 
26
+RUN chmod u+s /usr/bin/fping &&\
27
+    chmod u+s /usr/bin/fping6
28
+
25
 COPY ./zabbix_server.conf /etc/zabbix/zabbix_server.conf
29
 COPY ./zabbix_server.conf /etc/zabbix/zabbix_server.conf
26
 
30
 
27
 COPY ./vars-vars /etc/vars-vars
31
 COPY ./vars-vars /etc/vars-vars

Loading…
Cancel
Save