Added mongodb to test env

Change-Id: I5aec0ad853c62c964f73067b3c12916e3509c98f
This commit is contained in:
aviau 2014-08-12 09:53:17 -04:00
parent ecb509ff93
commit 68b745ce90
4 changed files with 20 additions and 1 deletions

View File

@ -18,6 +18,7 @@ RUN shinken install auth-cfg-password
RUN pip install influxdb && shinken install mod-influxdb RUN pip install influxdb && shinken install mod-influxdb
RUN shinken install ws-arbiter RUN shinken install ws-arbiter
RUN pip install riemann-client && shinken install mod-riemann RUN pip install riemann-client && shinken install mod-riemann
RUN pip install pymongo && shinken install mod-mongodb
## plugins ## plugins
RUN apt-get install -y nagios-plugins RUN apt-get install -y nagios-plugins
@ -57,6 +58,9 @@ RUN apt-get install -y libapache2-mod-proxy-html
RUN a2enmod proxy_http RUN a2enmod proxy_http
ADD etc/apache2/conf-enabled/influxdb.conf /etc/apache2/conf-enabled/influxdb.conf ADD etc/apache2/conf-enabled/influxdb.conf /etc/apache2/conf-enabled/influxdb.conf
### Mongo
RUN apt-get install -y mongodb
### Supervisor ### Supervisor
RUN apt-get -y install supervisor RUN apt-get -y install supervisor
ADD etc/supervisor /etc/supervisor ADD etc/supervisor /etc/supervisor

View File

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

View File

@ -0,0 +1,12 @@
## Module: Mongodb
## Loaded by: Arbiter, WebUI
# In Arbiter: Read objects in a mongodb database (like hosts or services).
# In WebUI: Save/read user preferences.
define module {
module_name mongodb
module_type mongodb
uri mongodb://localhost/?safe=false
database shinken
#username username ;optional
#password password ;optional
}

View File

@ -12,3 +12,6 @@ command=/bin/sh -c "service apache2 start"
[program:riemann] [program:riemann]
command=/bin/sh -c "service riemann start" command=/bin/sh -c "service riemann start"
[program:mongodb]
command=/bin/sh -c "service mongodb start"