Closed hd1080 closed 6 years ago
Thank you. I can replicate this problem. I'll try to find a problem later.
Any update when this problem might be resolved? Would love to use dockbix but I need SNMP to work.
I didn't spend a lot of o time on this issue for now. It looks like a problem with Perl configuration. I'm happy to review any PR, which will solve this problem.
I found the error, and I fixed followind the next steps (using the latest):
Example of adding the ENV Vars: --env="ZS_StartSNMPTrapper=1" --env="ZS_SNMPTrapperFile=/tmp/zabbix_traps.tmp"
Disclaimer: This is a temporary solution, if you recreate the container, do you will need to follow the same process. The best is make a PR. I'm working on.
Thank you Carlos, for your input. Actually, I was removing some dependency of net-snmp-perl
, which caused a problem. Now it's fixed, images have been rebuilt.
Test:
$ docker run \
-d \
--name dockbix \
-p 80:80 \
-p 10051:10051 \
-v /etc/localtime:/etc/localtime:ro \
--link dockbix-db:dockbix.db \
--env="ZS_DBHost=dockbix.db" \
--env="ZS_DBUser=zabbix" \
--env="ZS_DBPassword=my_password" \
--env="XXL_zapix=true" \
--env="XXL_grapher=true" \
--env="ZS_StartSNMPTrapper=1" \
--env="SNMPTRAP_enabled=true" \
monitoringartist/dockbix-xxl:latest
$ docker exec -ti dockbix cat /tmp/zabbix_traps.tmp
$ docker exec -ti dockbix snmptrap -c public -v 2c 127.0.0.1 "" 1.3.6.1.2.1.43.18.2.0.1
$ docker exec -ti dockbix cat /tmp/zabbix_traps.tmp
10:51:30 2018/02/02 mib-2.43.18.2.0.1 Normal "General event" 127.0.0.1 - ZBXTRAP 127.0.0.1 127.0.0.1
Thank you a lot. SNMP is working now 👍
Description
[SNMPTT is not working]
Steps to Reproduce
Expected behavior: [that it works]
Actual behavior: [doesn't work, error message in logs]
Reproduces how often: [several times]
Versions
Server Version: 17.09.0-ce Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 89 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0 runc version: 3f2f8b84a77f73d38244dd690525642a72156c64 init version: 949e6fa Security Options: apparmor seccomp Profile: default Kernel Version: 4.4.0-93-generic Operating System: Ubuntu 16.04.3 LTS OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 2.938GiB
Additional Information
log output:
You Docker knowledge level
Normal