Comments (6)
The format in the readme is wrong. You need to specify the version as sensu-plugins/disk-checks@master
Line 36 in bce368d
from docker-sensu.
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.
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.
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.
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.
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)
- server container not executing handlers HOT 3
- Server defaulting to rabbitmq HOT 2
- Handling sensu-install without build-essentials HOT 3
- Sensu not writing to /var/log/sensu/... HOT 1
- docker-compose up failing for client_1 HOT 2
- Sensu Client doesn't start HOT 15
- Would love an 0.29 tagged release. HOT 1
- Consider switching to the sensu-install tool HOT 6
- Manage multiples datacenters with uchiwa HOT 8
- Add port for sensu-client HOT 2
- All my config is vanished after mounting it
- Gem issues with example docker-compose.yml during client container initialization HOT 7
- Files overwritten on mount HOT 5
- 1.0.0 is using end of life Ubuntu Zesty HOT 3
- sstarcher/sensu:latest container has rebuilt 14 times and counting in the last 24 hours HOT 1
- Upgrade to 1.4? HOT 1
- Config file overwritten HOT 1
- Update to Sensu 1.6.1
- Using sensu-client to check the machine where container is running HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-sensu.