Install all packs from monitoring-tools
Change-Id: I299ae3aae907ac8b77f97cb5658a778b9120daf4
This commit is contained in:
parent
a22aa36dd3
commit
96a8bcbd1d
@ -18,7 +18,9 @@ RUN apt-get install -y subversion && \
|
|||||||
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-cinder-http /usr/share/monitoring/packs/sfl/openstack-cinder-http && \
|
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-cinder-http /usr/share/monitoring/packs/sfl/openstack-cinder-http && \
|
||||||
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-keystone-http /usr/share/monitoring/packs/sfl/openstack-keystone-http && \
|
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-keystone-http /usr/share/monitoring/packs/sfl/openstack-keystone-http && \
|
||||||
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-nova-http /usr/share/monitoring/packs/sfl/openstack-nova-http && \
|
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-nova-http /usr/share/monitoring/packs/sfl/openstack-nova-http && \
|
||||||
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-host /usr/share/monitoring/packs/openstack-host && \
|
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/openstack-host /usr/share/monitoring/packs/sfl/openstack-host && \
|
||||||
|
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/linux-system-nrpe /usr/share/monitoring/packs/sfl/linux-system-nrpe && \
|
||||||
|
svn checkout https://github.com/savoirfairelinux/monitoring-tools/tags/${MONITORING_TOOLS_VERSION}/packs/generic-host /usr/share/monitoring/packs/sfl/generic-host && \
|
||||||
apt-get remove -y subversion
|
apt-get remove -y subversion
|
||||||
|
|
||||||
ADD requirements.txt /opt/surveil/requirements.txt
|
ADD requirements.txt /opt/surveil/requirements.txt
|
||||||
|
@ -95,6 +95,14 @@ def main():
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
subprocess.call(
|
||||||
|
[
|
||||||
|
"surveil-pack-upload",
|
||||||
|
"--mongo-uri=" + config.surveil_api_config['mongodb_uri'],
|
||||||
|
"/usr/share/monitoring/packs/sfl/linux-system-nrpe/",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
subprocess.call(
|
subprocess.call(
|
||||||
[
|
[
|
||||||
"surveil-pack-upload",
|
"surveil-pack-upload",
|
||||||
|
@ -102,12 +102,6 @@ RUN cd /plugins/check_cinder && sudo /opt/surveilplugins/env/bin/python setup.py
|
|||||||
RUN cd /plugins/check_ceilometer && sudo /opt/surveilplugins/env/bin/python setup.py install && ln -s /opt/surveilplugins/env/bin/check_ceilometer /usr/lib/monitoring/plugins/sfl/
|
RUN cd /plugins/check_ceilometer && sudo /opt/surveilplugins/env/bin/python setup.py install && ln -s /opt/surveilplugins/env/bin/check_ceilometer /usr/lib/monitoring/plugins/sfl/
|
||||||
RUN cd /plugins/check_nova_host_status && sudo /opt/surveilplugins/env/bin/python setup.py install && ln -s /opt/surveilplugins/env/bin/check_nova_host_status /usr/lib/monitoring/plugins/sfl/
|
RUN cd /plugins/check_nova_host_status && sudo /opt/surveilplugins/env/bin/python setup.py install && ln -s /opt/surveilplugins/env/bin/check_nova_host_status /usr/lib/monitoring/plugins/sfl/
|
||||||
|
|
||||||
## packs
|
|
||||||
RUN sh -c 'gpg --recv-keys --keyserver keyserver.ubuntu.com 2320E8F8 && gpg --export --armor 2320E8F8 | apt-key add -' && \
|
|
||||||
sh -c "echo 'deb http://deb.kaji-project.org/ubuntu14.04/ plugins main' >> /etc/apt/sources.list.d/kaji.list" && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y --force-yes monitoring-packs-sfl-generic-host monitoring-packs-sfl-linux-system-nrpe
|
|
||||||
|
|
||||||
## Add check example plugin
|
## Add check example plugin
|
||||||
ADD plugins/check-example /plugins/check_example
|
ADD plugins/check-example /plugins/check_example
|
||||||
RUN virtualenv /plugins/check_example/env
|
RUN virtualenv /plugins/check_example/env
|
||||||
|
Loading…
Reference in New Issue
Block a user