added and configured mod-mongo-live-config :)

Change-Id: If787613ef3124618c57b3f5a26723c017b25c1dd
This commit is contained in:
flavien.peyre 2015-05-08 15:28:14 -04:00 committed by Alexandre Viau
parent 6d10a1e627
commit 39f1a88a9a
4 changed files with 17 additions and 4 deletions

View File

@ -6,8 +6,8 @@ RUN apt-get update && apt-get install -y vim supervisor python-dev libffi-dev li
# libffi-devand libssl-dev are for python-cryptography
### Shinken
RUN apt-get update && apt-get install -y python-pip
RUN useradd shinken && pip install https://github.com/naparuba/shinken/archive/2.4-RC3.zip
RUN apt-get update && apt-get install -y python-pip git
RUN useradd shinken && pip install https://github.com/gst/shinken/archive/19df05f2da13bdc6957ef1adf0660aa9f61c89f7.zip
RUN apt-get install -y python-pycurl
RUN shinken --init
@ -19,6 +19,14 @@ RUN pip install influxdb && shinken install mod-influxdb
RUN shinken install ws-arbiter
RUN pip install pymongo==2.8 && shinken install mod-mongodb
RUN cd /opt && \
git clone https://github.com/savoirfairelinux/mod-mongo-live-config.git && \
cd mod-mongo-live-config && \
git checkout 39e43d9a1a2f80c7db6db085ed0df388dc1fef23 && \
git reset --hard && \
cd /var/lib/shinken/modules && \
ln -s /opt/mod-mongo-live-config/src/mod_mongo_live_config
## plugins
RUN apt-get update && apt-get install -y nagios-plugins nagios-nrpe-plugin
# run permissions for user `shinken`

View File

@ -35,7 +35,7 @@ define arbiter {
# - FileTag = Tag an host if it's on a flat file
# - CSVTag = Tag an host from the content of a CSV file
modules mongodb,ws-arbiter
modules mongodb,ws-arbiter,mongo_live_config
#modules named-pipe, mongodb, nsca, VMWare_auto_linking, ws-arbiter, Collectd, mport-landscape, SnmpBooster, AWS
# Enable https or not

View File

@ -0,0 +1,5 @@
define module {
module_name mongo_live_config
module_type mongo_live_config
hostname mongo
}

View File

@ -32,7 +32,7 @@ define scheduler {
# (does not save, only read)
# - SnmpBooster = Snmp bulk polling module
#modules pickle-retention-file
modules
modules mongo_live_config
## Advanced Features
# Realm is for multi-datacenters