GithubHelp home page GithubHelp logo

Comments (6)

hosterholz avatar hosterholz commented on June 19, 2024 1

The format in the readme is wrong. You need to specify the version as sensu-plugins/disk-checks@master

IFS=@ read PLUGIN VERSION <<< "${PLUGIN}"

from docker-sensu.

sstarcher avatar sstarcher commented on June 19, 2024 1

Bad documentation is the cause. I attempted to improve it let me know if this makes sense. https://github.com/sstarcher/docker-sensu#runtime-installation

- RUNTIME_INSTALL=sensu-plugins/sensu-plugins-disk-checks@master
vs
- RUNTIME_INSTALL=sensu-plugins/disk-checks@master

Or you can also do
- RUNTIME_INSTALL=disk-checks

from docker-sensu.

sstarcher avatar sstarcher commented on June 19, 2024

Your command looks correct it's possible that the plugin has compile dependencies that are needed. Please check the logs from the container.

from docker-sensu.

nybos486 avatar nybos486 commented on June 19, 2024

Unfortunately the container crashes/exits as soon as it reaches the end of what appears to be the second apt operation.

I thought that perhaps I needed to apply the runtime install to the server and client containers, when I do, the client crashes at the same place as the server...just following the apt operation.

If you are able to install plugins using RUNTIME_INSTALL inside docker-compose, could you post a working example of the compose file here? Please include your linux, docker, and docker-compose versions if possible.
Server-log-tail.txt


I wouldn't mind applying plugins manually, but methods for achieving this on other installs don't appear to work with this deployment.

On the server in the /etc/sensu/conf.d directory a json file per check:
{ "checks": { "container_count": { "type": "metric", "command": "container-count.sh", "subscribers": [ "docker" ], "interval": 10 } } }
And placing a the check script (container-count.sh in this case) in the /etc/sensu/plugins directory on the client.

Am I missing something?

from docker-sensu.

sstarcher avatar sstarcher commented on June 19, 2024

If the container exists you can still get the logs from the container. The plugins only need to be installed for the client.

As for your second question I believe that should work, but I have not tried it.

from docker-sensu.

nybos486 avatar nybos486 commented on June 19, 2024

When I try that:

sensu-client:
    container_name: mon-client
    image: sstarcher/sensu:latest
    hostname: log1-mon-client
    restart: unless-stopped
    command: client
    volumes:
        - /etc/hosts:/etc/hosts:ro
        - /dev:/host_dev/:ro
        - /proc:/host_proc/:ro
        - /sys:/host_sys/:ro
        - /var/run/docker.sock:/var/run/docker.sock
    ports:
        - 3030:3030
    environment:
        - CONFIG_DIR=/etc/sensu/conf.d
        - CLIENT_NAME=log1
        - CLIENT_SUBSCRIPTIONS=default,web
        - CLIENT_ADDRESS=10.0.4.168
        - CLIENT_KEEPALIVE_HANDLER=default #May need special handler in the future
        - CLIENT_DEREGISTER=false
        - REDIS_HOST=db1
        - REDIS_PORT=6379
        - REDIS_DB=0
        - REDIS_AUTO_RECONNECT=true
        - REDIS_RECONNECT_ON_ERROR=false
        - RUNTIME_INSTALL=sensu-plugins/sensu-plugins-disk-checks@master

I get the following error in the log just prior to the container stopping:

  2018-02-01T16:07:45.702942000Z Unpacking gcc-6 (6.3.0-18) ...
  2018-02-01T16:07:54.564589000Z gzip: stdin: not in gzip format
  2018-02-01T16:07:54.564959000Z tar: Child returned status 1
  2018-02-01T16:07:54.565299000Z tar: Error is not recoverable: exiting now
  2018-02-01T16:07:54.565634000Z /bin/install: line 47: cd: sensu-plugins-sensu-plugins-disk-checks-master: No such file or directory

Am I calling the RUNTIME_INSTALL correctly in the compose file?

from docker-sensu.

Related Issues (20)

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.