Added mongodb to test env
Change-Id: I5aec0ad853c62c964f73067b3c12916e3509c98f
This commit is contained in:
parent
ecb509ff93
commit
68b745ce90
@ -18,6 +18,7 @@ RUN shinken install auth-cfg-password
|
||||
RUN pip install influxdb && shinken install mod-influxdb
|
||||
RUN shinken install ws-arbiter
|
||||
RUN pip install riemann-client && shinken install mod-riemann
|
||||
RUN pip install pymongo && shinken install mod-mongodb
|
||||
|
||||
## 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
|
||||
ADD etc/apache2/conf-enabled/influxdb.conf /etc/apache2/conf-enabled/influxdb.conf
|
||||
|
||||
### Mongo
|
||||
RUN apt-get install -y mongodb
|
||||
|
||||
### Supervisor
|
||||
RUN apt-get -y install supervisor
|
||||
ADD etc/supervisor /etc/supervisor
|
||||
|
@ -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 named-pipe
|
||||
modules named-pipe,mongodb
|
||||
#modules named-pipe, mongodb, nsca, VMWare_auto_linking, ws-arbiter, Collectd, mport-landscape, SnmpBooster, AWS
|
||||
|
||||
# Enable https or not
|
||||
|
12
tools/test_env/etc/shinken/modules/mongodb.cfg
Normal file
12
tools/test_env/etc/shinken/modules/mongodb.cfg
Normal 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
|
||||
}
|
@ -12,3 +12,6 @@ command=/bin/sh -c "service apache2 start"
|
||||
|
||||
[program:riemann]
|
||||
command=/bin/sh -c "service riemann start"
|
||||
|
||||
[program:mongodb]
|
||||
command=/bin/sh -c "service mongodb start"
|
||||
|
Loading…
Reference in New Issue
Block a user