Comments (2)
@wakaru44 if it helps, this is what I have done to get it working for me:
My dockerfile:
# Shinken Docker installation using pip (latest)
FROM rohit01/shinken_thruk_graphite
MAINTAINER Petr Klus
# Install additional packages (NUT for UPS monitoring etc.)
RUN apt-get update && apt-get install -y nut
# upgrade apt-get packages
RUN apt-get upgrade -y
# Add all updated plugins
ADD extra_plugins/* /usr/lib/nagios/plugins/
RUN cd /usr/lib/nagios/plugins/ && \
chmod a+x * && \
chmod u+s check_apt restart_service check_ping check_icmp check_fping apt_update check_nut_plus
# Install shinken modules from shinken.io, add ws-arbiter config
RUN su - shinken -c 'shinken install ws-arbiter'
ADD shinken/ws_arbiter.cfg /etc/shinken/modules/ws_arbiter.cfg
ADD shinken/receiver-master.cfg /etc/shinken/receivers/receiver-master.cfg
You can ignore the NUT install, that is just additional package I wanted there for UPS monitoring.
And then the ws_arbiter.cfg:
## Module: ws-arbiter
## Loaded by: Arbiter, Receiver
# WebService module for the Arbiter and Receiver so you can send (POST) passive
# checks to it :)
define module {
module_name ws-arbiter
module_type ws_arbiter
host 0.0.0.0
port 7760
username anonymous ; If you want auth, set username and password.
#password secret
#routes push_check_result ; restart,reload,acknowledge,downtime,recheck
}
Lastly, the receive-master has ws-arbiter added under modules:
#===============================================================================
# RECEIVER
#===============================================================================
# The receiver manages passive information. It's just a "buffer" which will
# load passive modules (like NSCA) and be read by the arbiter to dispatch data.
#===============================================================================
define receiver {
receiver_name receiver-master
address localhost
port 7773
spare 0
## Optional parameters
timeout 3 ; Ping timeout
data_timeout 120 ; Data send timeout
max_check_attempts 3 ; If ping fails N or more, then the node is dead
check_interval 60 ; Ping node every N seconds
## Modules for Receiver
# - named-pipe = Open the named pipe nagios.cmd
# - nsca = NSCA server
# - tsca = TSCA server
# - ws-arbiter = WebService for pushing results to the arbiter
# - collectd = Receive collectd perfdata
modules ws-arbiter
# Enable https or not
use_ssl 0
# enable certificate/hostname check, will avoid man in the middle attacks
hard_ssl_name_check 0
## Advanced Feature
direct_routing 0 ; If enabled, it will directly send commands to the
; schedulers if it knows about the hostname in the
; command.
realm All
}
from docker_shinken.
+1
from docker_shinken.
Related Issues (20)
- Dockerfile has issues with check_fping
- CRIT reaped unknown pid
- default user/password in README do not work HOT 2
- Monitoring Windows Machines
- Please update webui to webui2 interface HOT 4
- Use smaller base image HOT 3
- Enabling ConfigTool
- FROM debian:jessie HOT 2
- service packs HOT 4
- pip install fails
- sending mail HOT 1
- guide for Play with Docker
- graphs not available
- Shinken alwasy redirects to port 80 HOT 3
- How to set up Apache proxy
- How to run individual containers for scaling.? HOT 1
- not able to login as admin/admin HOT 2
- Shinken docker SSL handshake issue - Remote host HOT 9
- /var/log or /var/log/shinken should be a docker volume HOT 1
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_shinken.