librenms / docker

LibreNMS Docker image
MIT License
681 stars 278 forks source link

NAGIOS Plugin doesn't work #161

Open dibu61 opened 3 years ago

dibu61 commented 3 years ago

Behaviour

error on activating plugin check_nwc_health

nwc_health | 1 second |   | CRITICAL - could not find SOAP::Lite module -- | -- | -- | --

Steps to reproduce this issue

  1. Install check_nwc_health
  2. test on CLI (works)
  3. activate in librenms throws error

Expected behaviour

Measurement results should be returned

Actual behaviour

error thrown

Configuration

Docker info

Client: Debug Mode: false

Server: Containers: 7 Running: 7 Paused: 0 Stopped: 0 Images: 5 Server Version: 19.03.11 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc version: init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 5.4.0-65-generic Operating System: Ubuntu Core 16 OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 7.671GiB Name: server2 ID: GFSZ:UTOW:NIYD:KG6A:DZRL:UMWO:H2RF:XNNZ:7CBY:DUDF:4ZLN:7S3P Docker Root Dir: /var/snap/docker/common/var-lib-docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

WARNING: No swap limit support

Logs

> Container logs (set LOG_LEVEL to debug if applicable)

realy needed?

crazy-max commented 3 years ago

@dibu61 I think we would need perl-soap-lite package. Can you try with:

docker-compose exec librenms apk --update-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing add perl-soap-lite
dibu61 commented 3 years ago

Hi,

unfortunately no change.

Just to complete files: here are docker-compose-yml and .env

Following steps done: 1.- your suggestion --> no change 2.- docker-compose kill -> pull -> up -d 3.- docker-compose exec .... --> no change either

docker-info: Client: Debug Mode: false

Server: Containers: 7 Running: 7 Paused: 0 Stopped: 0 Images: 5 Server Version: 19.03.11 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc version: init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 5.4.0-65-generic Operating System: Ubuntu Core 16 OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 7.671GiB Name: server2 ID: GFSZ:UTOW:NIYD:KG6A:DZRL:UMWO:H2RF:XNNZ:7CBY:DUDF:4ZLN:7S3P Docker Root Dir: /var/snap/docker/common/var-lib-docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

env.gz docker-compose.yml.gz